declare method
A
declare()
Declare this AST element in the current context if it hasn't already.
This also forces limited type checking on expressions that don't declare anything.
Implementation
A declare() => currentContext.declare(this);