Skip to content

Commit 3c5193f

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Remove V1 LocalElement, PromotableElement.
Change-Id: Ifd11fcfd740c848e570ef076b20b9e43bbeb0cea Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423066 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 2f478a7 commit 3c5193f

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

pkg/analyzer/api.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3164,17 +3164,12 @@ package:analyzer/dart/element/element.dart:
31643164
effective (getter: Version)
31653165
override (getter: Version?)
31663166
package (getter: Version)
3167-
LocalElement (class extends Object implements Element, deprecated):
3168-
new (constructor: LocalElement Function())
31693167
NamespaceCombinator (class extends Object, sealed (immediate subtypes: HideElementCombinator, ShowElementCombinator)):
31703168
end (getter: int)
31713169
offset (getter: int)
31723170
PartElement (class extends Object implements _ExistingElement, deprecated):
31733171
new (constructor: PartElement Function())
31743172
uri (getter: DirectiveUri)
3175-
PromotableElement (class extends Object implements LocalElement, VariableElement, deprecated):
3176-
new (constructor: PromotableElement Function())
3177-
name (getter: String)
31783173
ShowElementCombinator (class extends Object implements NamespaceCombinator):
31793174
new (constructor: ShowElementCombinator Function())
31803175
shownNames (getter: List<String>)

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -856,13 +856,6 @@ class LibraryLanguageVersion {
856856
}
857857
}
858858

859-
/// An element that can be (but is not required to be) defined within a method
860-
/// or function (an [ExecutableElement]).
861-
///
862-
/// Clients may not extend, implement or mix-in this class.
863-
@Deprecated('Use LocalElement2 instead')
864-
abstract class LocalElement implements Element {}
865-
866859
/// An object that controls how namespaces are combined.
867860
///
868861
/// Clients may not extend, implement or mix-in this class.
@@ -884,17 +877,6 @@ abstract class PartElement implements _ExistingElement {
884877
DirectiveUri get uri;
885878
}
886879

887-
/// A variable that might be subject to type promotion. This might be a local
888-
/// variable or a parameter.
889-
///
890-
/// Clients may not extend, implement or mix-in this class.
891-
@Deprecated('Use PromotableElement2 instead')
892-
abstract class PromotableElement implements LocalElement, VariableElement {
893-
// Promotable elements are guaranteed to have a name.
894-
@override
895-
String get name;
896-
}
897-
898880
/// A combinator that cause some of the names in a namespace to be visible (and
899881
/// the rest hidden) when being imported.
900882
///

0 commit comments

Comments
 (0)