Plato on Github
Report Home
lang/compiler/codegen/uop-expr.js
Maintainability
129.37
Lines of code
14
Difficulty
9.00
Estimated Errors
0.09
Function weight
By Complexity
By SLOC
(function(sc) { "use strict"; require("./codegen"); var CodeGen = sc.lang.compiler.CodeGen; CodeGen.addGenerateMethod("UnaryExpression", function(node) { if (node.operator === "`") { return [ "$.Ref(", this.generate(node.arg), ")" ]; } throw new Error("Unknown UnaryExpression: " + node.operator); }); })(sc);