Code coverage report for sc/lang/compiler/codegen/uop-expr.js

Statements: 100% (7 / 7)      Branches: 100% (2 / 2)      Functions: 100% (2 / 2)      Lines: 100% (7 / 7)      Ignored: none     

All files » sc/lang/compiler/codegen/ » uop-expr.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 151     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);