Plato on Github
Report Home
lang/compiler/codegen/list-expr.js
Maintainability
125.44
Lines of code
22
Difficulty
6.40
Estimated Errors
0.09
Function weight
By Complexity
By SLOC
(function(sc) { "use strict"; require("./codegen"); var CodeGen = sc.lang.compiler.CodeGen; CodeGen.addGenerateMethod("ListExpression", function(node) { var result = [ "$.Array(", this.insertArrayElement(node.elements), ]; if (node.immutable) { result.push(",true"); } result.push(")"); return result; }); })(sc);