1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1 1 1 1 2 1 1 | (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); |