AssociableToAST

A declaration that can be potentially associated with an AST node.

Inheritors

Functions

Link copied to clipboard
open fun toAst(): Optional<Node>
If the declaration is associated to an AST node return it, otherwise it return empty.
open fun <N : Node?> toAst(clazz: Class<N>): Optional<N>
If the declaration is associated to an AST node and the type matches the expected Class return it, otherwise it returns empty.