declare<T extends AST> method

T declare<T extends AST>(
  1. T ast
)

Declare an AST element in the current context, for most AST elements this is not necessary as they are automatically declared when constructed.

Implementation

T declare<T extends AST>(T ast) {
  _createAST(ast);
  return ast;
}