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

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

All files » sc/lang/compiler/codegen/ » block-expr.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161     1   1   1 1 1     1      
(function(sc) {
  "use strict";
 
  require("./codegen");
 
  var CodeGen = sc.lang.compiler.CodeGen;
 
  CodeGen.addGenerateMethod("BlockExpression", function(node) {
    var body = this.withFunction([], function() {
      return this.generateStatements(node.body);
    });
 
    return [ "(", body, ")()" ];
  });
})(sc);