enclosingElement2 property

  1. @Deprecated('Use enclosingElement3 instead')
  2. @override
CompilationUnitElement get enclosingElement2
override

Return 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

@Deprecated('Use enclosingElement3 instead')
@override
CompilationUnitElement get enclosingElement2;