Sha256: 25293ffacc90ce1e97079e0b9c6991d782ecf03e055c8006f722cb9d81fe3a99

Contents?: true

Size: 859 Bytes

Versions: 8

Compression:

Stored size: 859 Bytes

Contents

/**
 * Print File.program
 */

"use strict";

exports.__esModule = true;
exports.File = File;
exports.Program = Program;
exports.BlockStatement = BlockStatement;
exports.Noop = Noop;

function File(node, print) {
  print.plain(node.program);
}

/**
 * Print all nodes in a Program.body.
 */

function Program(node, print) {
  print.sequence(node.body);
}

/**
 * Print BlockStatement, collapses empty blocks, prints body.
 */

function BlockStatement(node, print) {
  this.push("{");
  if (node.body.length) {
    this.newline();
    print.sequence(node.body, { indent: true });
    if (!this.format.retainLines) this.removeLast("\n");
    this.rightBrace();
  } else {
    print.printInnerComments();
    this.push("}");
  }
}

/**
 * What is my purpose?
 * Why am I here?
 * Why are any of us here?
 * Does any of this really matter?
 */

function Noop() {}

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
ilog-0.4.1 node_modules/babel/node_modules/babel-core/lib/generation/generators/base.js
ilog-0.4.0 node_modules/babel/node_modules/babel-core/lib/generation/generators/base.js
ilog-0.3.3 node_modules/babel/node_modules/babel-core/lib/generation/generators/base.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/babel-core/lib/generation/generators/base.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/babel-core/lib/generation/generators/base.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/babel-core/lib/generation/generators/base.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/babel-core/lib/generation/generators/base.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/babel-core/lib/generation/generators/base.js