constructor(cfg) {
    this.name = cfg.name;
    this.methodNode = cfg.methodNode;
    this.fullNode = cfg.fullNode;
    this.commentNodes = cfg.commentNodes || [];
    this.parent = cfg.parent;
    this.kind = cfg.kind || 'method';
    this.static = cfg.static || false;
  }
@param {Object} cfg
  @param {String} cfg.name Method name
  @param {Object} cfg.methodNode
  @param {Object} cfg.fullNode Node to remove after converting to class
  @param {Object[]} cfg.commentNodes Nodes to extract comments from
  @param {Object} cfg.parent
  @param {String} [cfg.kind] Either 'get' or 'set' (optional)
  @param {Boolean} [cfg.static] True to make static method (optional)