Plato on Github
Report Home
lang/compiler/parser/block-expr.js
Maintainability
129.39
Lines of code
24
Difficulty
5.35
Estimated Errors
0.13
Function weight
By Complexity
By SLOC
(function(sc) { "use strict"; require("./parser"); var Node = sc.lang.compiler.Node; var Parser = sc.lang.compiler.Parser; Parser.addParseMethod("BlockExpression", function() { var marker = this.createMarker(); this.expect("("); var expr = this.withScope(function() { return Node.createBlockExpression( this.parseFunctionBody() ); }); this.expect(")"); return marker.update().apply(expr); }); })(sc);