Skip to content

Commit 8c65536

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Remove V1 LocalVariableElement.
Change-Id: I3a3fc0d3c28e7b20e7d0b8e41f71b05e628ae0d6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423064 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 24b2a16 commit 8c65536

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

pkg/analyzer/api.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3166,10 +3166,6 @@ package:analyzer/dart/element/element.dart:
31663166
package (getter: Version)
31673167
LocalElement (class extends Object implements Element, deprecated):
31683168
new (constructor: LocalElement Function())
3169-
LocalVariableElement (class extends Object implements PromotableElement, deprecated):
3170-
new (constructor: LocalVariableElement Function())
3171-
hasInitializer (getter: bool)
3172-
name (getter: String)
31733169
NamespaceCombinator (class extends Object, sealed (immediate subtypes: HideElementCombinator, ShowElementCombinator)):
31743170
end (getter: int)
31753171
offset (getter: int)

pkg/analyzer/lib/dart/element/element.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -864,18 +864,6 @@ class LibraryLanguageVersion {
864864
@Deprecated('Use LocalElement2 instead')
865865
abstract class LocalElement implements Element {}
866866

867-
/// A local variable.
868-
///
869-
/// Clients may not extend, implement or mix-in this class.
870-
@Deprecated('Use LocalVariableFragment and LocalVariableElement2 instead')
871-
abstract class LocalVariableElement implements PromotableElement {
872-
/// Whether the variable has an initializer at declaration.
873-
bool get hasInitializer;
874-
875-
@override
876-
String get name;
877-
}
878-
879867
/// An object that controls how namespaces are combined.
880868
///
881869
/// Clients may not extend, implement or mix-in this class.

pkg/analyzer/lib/src/dart/element/element.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7278,11 +7278,7 @@ class LocalFunctionFragmentImpl extends FunctionElementImpl
72787278
}
72797279

72807280
class LocalVariableElementImpl extends NonParameterVariableElementImpl
7281-
implements
7282-
// ignore: deprecated_member_use_from_same_package,analyzer_use_new_elements
7283-
LocalVariableElement,
7284-
LocalVariableFragment,
7285-
VariableElementOrMember {
7281+
implements LocalVariableFragment, VariableElementOrMember {
72867282
late LocalVariableElementImpl2 _element2 = switch (this) {
72877283
BindPatternVariableElementImpl() => BindPatternVariableElementImpl2(this),
72887284
JoinPatternVariableElementImpl() => JoinPatternVariableElementImpl2(this),

0 commit comments

Comments
 (0)