Plato on Github
Report Home
lang/compiler/parser/this-expr.js
Maintainability
120.03
Lines of code
22
Difficulty
7.83
Estimated Errors
0.15
Function weight
By Complexity
By SLOC
(function(sc) { "use strict"; require("./parser"); var Keywords = sc.lang.compiler.Keywords; var Node = sc.lang.compiler.Node; var Parser = sc.lang.compiler.Parser; Parser.addParseMethod("ThisExpression", function() { var marker = this.createMarker(); var node = this.lex(); if (Keywords[node.value] !== "function") { this.throwUnexpected(node); } return marker.update().apply( Node.createThisExpression(node.value) ); }); })(sc);