AstNode constructor

AstNode({
  1. Map? ast,
  2. String? type,
})

Implementation

AstNode({Map? ast, String? type}) {
  _ast = ast;
  if (type != null) {
    _type = type;
  } else {
    _type = ast?['type'];
  }
}