enclosingElement property
The element that either physically or logically encloses this element.
This will be null
if this element is a library because libraries are
the top-level elements in the model.
Implementation
@override
Element get enclosingElement => super.enclosingElement!;
void
enclosingElement=(Element? element)
inherited
Set the enclosing element of this element to the given element
.
Implementation
set enclosingElement(Element? element) {
_enclosingElement = element as ElementImpl?;
}