Skip to content

Commit caf7fba

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Remove V1 'get children'.
Change-Id: I2e2edfb44013c26742f6dcad04737e9844b84337 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423302 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 2e66335 commit caf7fba

File tree

4 files changed

+0
-88
lines changed

4 files changed

+0
-88
lines changed

pkg/analyzer/api.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3010,7 +3010,6 @@ package:analyzer/dart/element/element.dart:
30103010
unit (getter: CompilationUnitElement, deprecated)
30113011
Element (class extends Object implements AnalysisTarget, deprecated):
30123012
new (constructor: Element Function())
3013-
children (getter: List<Element>, deprecated)
30143013
context (getter: AnalysisContext@2)
30153014
declaration (getter: Element?, deprecated)
30163015
displayName (getter: String)

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,6 @@ abstract class DirectiveUriWithUnit extends DirectiveUriWithSource {
223223
/// Clients may not extend, implement or mix-in this class.
224224
@Deprecated(elementModelDeprecationMsg)
225225
abstract class Element implements AnalysisTarget {
226-
/// A list of this element's children.
227-
///
228-
/// There is no guarantee of the order in which the children will be included.
229-
@Deprecated(elementModelDeprecationMsg)
230-
List<Element> get children;
231-
232226
/// The analysis context in which this element is defined.
233227
AnalysisContext get context;
234228

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

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -782,23 +782,6 @@ class CompilationUnitElementImpl extends UriReferencedElementImpl
782782
_accessors = accessors;
783783
}
784784

785-
@Deprecated('Use Element2 instead')
786-
@override
787-
List<Element> get children => [
788-
...super.children,
789-
...libraryImports,
790-
...libraryExports,
791-
...accessors,
792-
...classes,
793-
...enums,
794-
...extensions,
795-
...extensionTypes,
796-
...functions,
797-
...mixins,
798-
...typeAliases,
799-
...topLevelVariables,
800-
];
801-
802785
@override
803786
List<Fragment> get children3 {
804787
return [
@@ -2504,10 +2487,6 @@ abstract class ElementImpl
25042487
reference?.element = this;
25052488
}
25062489

2507-
@Deprecated('Use Element2 instead')
2508-
@override
2509-
List<Element> get children => const [];
2510-
25112490
/// The length of the element's code, or `null` if the element is synthetic.
25122491
int? get codeLength => _codeLength;
25132492

@@ -3532,14 +3511,6 @@ abstract class ExecutableElementImpl extends _ExistingElementImpl
35323511
/// [offset].
35333512
ExecutableElementImpl(String super.name, super.offset, {super.reference});
35343513

3535-
@Deprecated('Use Element2 instead')
3536-
@override
3537-
List<Element> get children => [
3538-
...super.children,
3539-
...typeParameters,
3540-
...parameters,
3541-
];
3542-
35433514
@override
35443515
List<Fragment> get children3 => [
35453516
...typeParameters,
@@ -3794,16 +3765,6 @@ class ExtensionElementImpl extends InstanceElementImpl
37943765
/// element.
37953766
ExtensionElementImpl(super.name, super.nameOffset);
37963767

3797-
@Deprecated('Use Element2 instead')
3798-
@override
3799-
List<Element> get children => [
3800-
...super.children,
3801-
...accessors,
3802-
...fields,
3803-
...methods,
3804-
...typeParameters,
3805-
];
3806-
38073768
@override
38083769
List<Fragment> get children3 => [
38093770
...accessors,
@@ -5113,14 +5074,6 @@ class GenericFunctionTypeElementImpl extends _ExistingElementImpl
51135074
GenericFunctionTypeElementImpl.forOffset(int nameOffset)
51145075
: super("", nameOffset);
51155076

5116-
@Deprecated('Use Element2 instead')
5117-
@override
5118-
List<Element> get children => [
5119-
...super.children,
5120-
...typeParameters,
5121-
...parameters,
5122-
];
5123-
51245077
@override
51255078
List<Fragment> get children3 => [
51265079
...typeParameters,
@@ -5858,17 +5811,6 @@ abstract class InterfaceElementImpl extends InstanceElementImpl
58585811
/// given [offset] in the file that contains the declaration of this element.
58595812
InterfaceElementImpl(super.name, super.offset);
58605813

5861-
@Deprecated('Use Element2 instead')
5862-
@override
5863-
List<Element> get children => [
5864-
...super.children,
5865-
...accessors,
5866-
...fields,
5867-
...constructors,
5868-
...methods,
5869-
...typeParameters,
5870-
];
5871-
58725814
@override
58735815
List<Fragment> get children3 => [
58745816
...accessors,
@@ -6652,13 +6594,6 @@ class LibraryElementImpl extends ElementImpl
66526594
@override
66536595
LibraryElementImpl get baseElement => this;
66546596

6655-
@Deprecated('Use Element2 instead')
6656-
@override
6657-
List<Element> get children => [
6658-
definingCompilationUnit,
6659-
..._partUnits,
6660-
];
6661-
66626597
@override
66636598
List<Element2> get children2 {
66646599
return [
@@ -8658,10 +8593,6 @@ class ParameterElementImpl extends VariableElementImpl
86588593
return element;
86598594
}
86608595

8661-
@Deprecated('Use Element2 instead')
8662-
@override
8663-
List<Element> get children => parameters;
8664-
86658596
@override
86668597
List<Fragment> get children3 => const [];
86678598

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,6 @@ abstract class ExecutableMember extends Member
209209
required this.typeParameters,
210210
});
211211

212-
@Deprecated('Use Element2 instead')
213-
@override
214-
List<Element> get children => parameters;
215-
216212
@override
217213
List<Element2> get children2 {
218214
return [
@@ -789,10 +785,6 @@ abstract class Member
789785

790786
Element2 get baseElement;
791787

792-
@Deprecated('Use Element2 instead')
793-
@override
794-
List<Element> get children => const [];
795-
796788
@override
797789
AnalysisContext get context => _declaration.context;
798790

@@ -1134,10 +1126,6 @@ class ParameterMember extends VariableMember
11341126
@override
11351127
FormalParameterElement get baseElement => _element2;
11361128

1137-
@Deprecated('Use Element2 instead')
1138-
@override
1139-
List<Element> get children => parameters;
1140-
11411129
@override
11421130
List<Element2> get children2 {
11431131
return [

0 commit comments

Comments
 (0)