File tree Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Expand file tree Collapse file tree 4 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -3365,7 +3365,7 @@ package:analyzer/dart/element/element.dart:
33653365 new (constructor: JoinPatternVariableElement Function())
33663366 isConsistent (getter: bool)
33673367 variables (getter: List<PatternVariableElement>)
3368- LabelElement (class extends Object implements Element):
3368+ LabelElement (class extends Object implements Element, deprecated ):
33693369 new (constructor: LabelElement Function())
33703370 enclosingElement3 (getter: ExecutableElement, deprecated)
33713371 name (getter: String)
Original file line number Diff line number Diff line change @@ -1635,6 +1635,7 @@ abstract class JoinPatternVariableElement implements PatternVariableElement {
16351635/// A label associated with a statement.
16361636///
16371637/// Clients may not extend, implement or mix-in this class.
1638+ @Deprecated ('Use LabelElement2 instead' )
16381639abstract class LabelElement implements Element {
16391640 @Deprecated (elementModelDeprecationMsg)
16401641 @override
Original file line number Diff line number Diff line change @@ -6817,9 +6817,11 @@ class JoinPatternVariableElementImpl2 extends PatternVariableElementImpl2
68176817 super ._wrappedElement as JoinPatternVariableElementImpl ;
68186818}
68196819
6820- /// A concrete implementation of a [LabelElement] .
68216820class LabelElementImpl extends ElementImpl
6822- implements LabelElement , LabelFragment {
6821+ implements
6822+ // ignore:deprecated_member_use_from_same_package
6823+ LabelElement ,
6824+ LabelFragment {
68236825 late final LabelElementImpl2 element2 = LabelElementImpl2 (this );
68246826
68256827 /// A flag indicating whether this label is associated with a `switch` member
Original file line number Diff line number Diff line change @@ -462,12 +462,6 @@ extension JoinPatternVariableElementImplExtension
462462 }
463463}
464464
465- extension LabelElement2Extension on LabelElement2 {
466- LabelElement get asElement {
467- return firstFragment as LabelElement ;
468- }
469- }
470-
471465extension LibraryElement2Extension on LibraryElement2 {
472466 LibraryElement get asElement {
473467 return this as LibraryElement ;
You can’t perform that action at this time.
0 commit comments