jspm_packages/npm/babel-core@5.8.38/lib/generation/generators/methods.js
function _method(node, print) {
  var value = node.value;
  var kind = node.kind;
  var key = node.key;

  if (kind === "method" || kind === "init") {
    if (value.generator) {
      this.push("*");
    }
  }

  if (kind === "get" || kind === "set") {
    this.push(kind + " ");
  }

  if (value.async) this.push("async ");

  if (node.computed) {
    this.push("[");
    print.plain(key);
    this.push("]");
  } else {
    print.plain(key);
  }

  this._params(value, print);
  this.space();
  print.plain(value.body);
}
function _method(node, print) {
  var value = node.value;
  var kind = node.kind;
  var key = node.key;

  if (kind === "method" || kind === "init") {
    if (value.generator) {
      this.push("*");
    }
  }

  if (kind === "get" || kind === "set") {
    this.push(kind + " ");
  }

  if (value.async) this.push("async ");

  if (node.computed) {
    this.push("[");
    print.plain(key);
    this.push("]");
  } else {
    print.plain(key);
  }

  this._params(value, print);
  this.space();
  print.plain(value.body);
}
function _method ( node , print ) { var value = node . value ; var kind = node . kind ; var key = node . key ; if ( kind === "method" || kind === "init" ) { if ( value . generator ) { this . push ( "*" ) ; } } if ( kind === "get" || kind === "set" ) { this . push ( kind + " " ) ; } if ( value . async ) this . push ( "async " ) ; if ( node . computed ) { this . push ( "[" ) ; print . plain ( key ) ; this . push ( "]" ) ; } else { print . plain ( key ) ; } this . _params ( value , print ) ; this . space ( ) ; print . plain ( value . body ) ; }
Prints method-like nodes, prints key, value, and body, handles async, generator, computed, and get or set.
Prints method - like nodes prints key value and body handles async generator computed and get or set .