Code coverage report for 6to5/generation/generators/base.js

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

All files » 6to5/generation/generators/ » base.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 201 417     1 419     1 920 166   754 754 754 754 754      
exports.File = function (node, print) {
  print(node.program);
};
 
exports.Program = function (node, print) {
  print.sequence(node.body);
};
 
exports.BlockStatement = function (node, print) {
  if (node.body.length === 0) {
    this.push("{}");
  } else {
    this.push("{");
    this.newline();
    print.sequence(node.body, { indent: true });
    this.removeLast("\n");
    this.rightBrace();
  }
};