Skip to content

Commit 30e49d6

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Remove V1 PropertyInducingElement.
Change-Id: Idd9a797bae88a25b4934a24c16c7095d3e181396 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423209 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 1d23faf commit 30e49d6

File tree

4 files changed

+1
-51
lines changed

4 files changed

+1
-51
lines changed

pkg/analyzer/api.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3267,13 +3267,6 @@ package:analyzer/dart/element/element.dart:
32673267
PromotableElement (class extends Object implements LocalElement, VariableElement, deprecated):
32683268
new (constructor: PromotableElement Function())
32693269
name (getter: String)
3270-
PropertyInducingElement (class extends Object implements VariableElement, deprecated):
3271-
new (constructor: PropertyInducingElement Function())
3272-
displayName (getter: String)
3273-
hasInitializer (getter: bool)
3274-
isAugmentation (getter: bool)
3275-
library (getter: LibraryElement)
3276-
name (getter: String)
32773270
ShowElementCombinator (class extends Object implements NamespaceCombinator):
32783271
new (constructor: ShowElementCombinator Function())
32793272
shownNames (getter: List<String>)

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

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,43 +1271,6 @@ abstract class PromotableElement implements LocalElement, VariableElement {
12711271
String get name;
12721272
}
12731273

1274-
/// A variable that has an associated getter and possibly a setter. Note that
1275-
/// explicitly defined variables implicitly define a synthetic getter and that
1276-
/// non-`final` explicitly defined variables implicitly define a synthetic
1277-
/// setter. Symmetrically, synthetic fields are implicitly created for
1278-
/// explicitly defined getters and setters. The following rules apply:
1279-
///
1280-
/// * Every explicit variable is represented by a non-synthetic
1281-
/// [PropertyInducingElement].
1282-
/// * Every explicit variable induces a getter and possibly a setter, both of
1283-
/// which are represented by synthetic [PropertyAccessorElement]s.
1284-
/// * Every explicit getter or setter is represented by a non-synthetic
1285-
/// [PropertyAccessorElement].
1286-
/// * Every explicit getter or setter (or pair thereof if they have the same
1287-
/// name) induces a variable that is represented by a synthetic
1288-
/// [PropertyInducingElement].
1289-
///
1290-
/// Clients may not extend, implement or mix-in this class.
1291-
@Deprecated('Use PropertyInducingElement2 instead')
1292-
abstract class PropertyInducingElement implements VariableElement {
1293-
@override
1294-
String get displayName;
1295-
1296-
/// Whether the variable has an initializer at declaration.
1297-
bool get hasInitializer;
1298-
1299-
/// Whether the element is an augmentation.
1300-
///
1301-
/// If `true`, declaration has the explicit `augment` modifier.
1302-
bool get isAugmentation;
1303-
1304-
@override
1305-
LibraryElement get library;
1306-
1307-
@override
1308-
String get name;
1309-
}
1310-
13111274
/// A combinator that cause some of the names in a namespace to be visible (and
13121275
/// the rest hidden) when being imported.
13131276
///

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9676,10 +9676,7 @@ abstract class PropertyInducingElementImpl2 extends VariableElementImpl2
96769676
/// Common base class for all analyzer-internal classes that implement
96779677
/// `PropertyInducingElement`.
96789678
abstract class PropertyInducingElementOrMember
9679-
implements
9680-
// ignore:deprecated_member_use_from_same_package,analyzer_use_new_elements
9681-
PropertyInducingElement,
9682-
VariableElementOrMember {
9679+
implements VariableElementOrMember {
96839680
@override
96849681
TypeImpl get type;
96859682
}

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,6 @@ class FieldMember extends VariableMember
541541
@override
542542
bool get isAbstract => declaration.isAbstract;
543543

544-
@override
545-
bool get isAugmentation => declaration.isAugmentation;
546-
547544
@override
548545
bool get isCovariant => declaration.isCovariant;
549546

0 commit comments

Comments
 (0)