src/ast/node.js
function Node(kind, docs, location) {
  this.kind = kind;
  if (docs) {
    this.leadingComments = docs;
  }
  if (location) {
    this.loc = location;
  }
}
function Node(kind, docs, location) {
  this.kind = kind;
  if (docs) {
    this.leadingComments = docs;
  }
  if (location) {
    this.loc = location;
  }
}
A generic AST node
@constructor Node
@property {Location|null} loc
@property {Comment[]} leadingComments
@property {Comment[]?} trailingComments
@property {String} kind