unit property

CompilationUnit unit

Return the resolved CompilationUnit that declares this element, or null if this element is synthetic.

This method is expensive, because resolved AST might have been already evicted from cache, so parsing and resolving will be performed.

Implementation

CompilationUnit get unit;