Plato on Github
Report Home
lang/compiler/codegen/envir-expr.js
Maintainability
126.04
Lines of code
18
Difficulty
8.04
Estimated Errors
0.11
Function weight
By Complexity
By SLOC
(function(sc) { "use strict"; require("./codegen"); var CodeGen = sc.lang.compiler.CodeGen; CodeGen.addGenerateMethod("EnvironmentExpression", function(node, opts) { if (!opts) { // getter return "$.Environment('" + node.id.name + "')"; } // setter opts.used = true; return [ "$.Environment('" + node.id.name + "',", this.generate(opts.right), ")" ]; }); })(sc);