enclosingElement3 property

  1. @override
Element get enclosingElement3
inherited

The element that either physically or logically encloses this element.

For LibraryElement returns null, because libraries are the top-level elements in the model.

For CompilationUnitElement returns the CompilationUnitElement that uses part directive to include this element, or null if this element is the defining unit of the library.

Implementation

@override
Element get enclosingElement3 => super.enclosingElement3!;
set enclosingElement3 (Element? element)
inherited

Set the enclosing element of this element to the given element.

Implementation

set enclosingElement3(Element? element) {
  _enclosingElement3 = element as ElementImpl?;
}