computeNode method

AstNode computeNode ()

Return the resolved AstNode node that declares this element, or null if this element is synthetic or isn't contained in a compilation unit, such as a LibraryElement.

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

Note: This method cannot be used in an async environment.


AstNode computeNode();