Skip to content

Commit 533c074

Browse files
scheglovCommit Queue
authored andcommitted
CQ. Replace 'element2' property name with 'element' in ResolvedAstPrinter.
Change-Id: Id2be78d8fae499a47a7ed5afa4955c1b60a792d5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/452846 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Johnni Winther <[email protected]>
1 parent b92bc35 commit 533c074

File tree

118 files changed

+2419
-2419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+2419
-2419
lines changed

pkg/analyzer/test/generated/simple_resolver_test.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ Annotation
877877
token: A
878878
element: <testLibrary>::@getter::A
879879
staticType: null
880-
element2: <testLibrary>::@getter::A
880+
element: <testLibrary>::@getter::A
881881
''');
882882
}
883883

@@ -900,7 +900,7 @@ Annotation
900900
token: A
901901
element: <testLibrary>::@getter::A
902902
staticType: null
903-
element2: <testLibrary>::@getter::A
903+
element: <testLibrary>::@getter::A
904904
''');
905905
}
906906

@@ -921,7 +921,7 @@ Annotation
921921
token: A
922922
element: <testLibrary>::@getter::A
923923
staticType: null
924-
element2: <testLibrary>::@getter::A
924+
element: <testLibrary>::@getter::A
925925
''');
926926
}
927927

@@ -941,7 +941,7 @@ Annotation
941941
token: A
942942
element: <testLibrary>::@getter::A
943943
staticType: null
944-
element2: <testLibrary>::@getter::A
944+
element: <testLibrary>::@getter::A
945945
''');
946946
}
947947

@@ -993,7 +993,7 @@ Annotation
993993
token: A
994994
element: <testLibrary>::@getter::A
995995
staticType: null
996-
element2: <testLibrary>::@getter::A
996+
element: <testLibrary>::@getter::A
997997
''');
998998
}
999999

@@ -1014,7 +1014,7 @@ Annotation
10141014
token: A
10151015
element: <testLibrary>::@getter::A
10161016
staticType: null
1017-
element2: <testLibrary>::@getter::A
1017+
element: <testLibrary>::@getter::A
10181018
''');
10191019
}
10201020

@@ -1043,7 +1043,7 @@ Annotation
10431043
token: A
10441044
element: <testLibrary>::@getter::A
10451045
staticType: null
1046-
element2: <testLibrary>::@getter::A
1046+
element: <testLibrary>::@getter::A
10471047
''');
10481048
}
10491049

@@ -1064,7 +1064,7 @@ Annotation
10641064
token: A
10651065
element: <testLibrary>::@getter::A
10661066
staticType: null
1067-
element2: <testLibrary>::@getter::A
1067+
element: <testLibrary>::@getter::A
10681068
''');
10691069
}
10701070

@@ -1106,7 +1106,7 @@ Annotation
11061106
token: A
11071107
element: <testLibrary>::@getter::A
11081108
staticType: null
1109-
element2: <testLibrary>::@getter::A
1109+
element: <testLibrary>::@getter::A
11101110
''');
11111111
}
11121112

@@ -1126,7 +1126,7 @@ Annotation
11261126
token: A
11271127
element: <testLibrary>::@getter::A
11281128
staticType: null
1129-
element2: <testLibrary>::@getter::A
1129+
element: <testLibrary>::@getter::A
11301130
''');
11311131
}
11321132

@@ -1172,7 +1172,7 @@ Annotation
11721172
token: A
11731173
element: <testLibrary>::@getter::A
11741174
staticType: null
1175-
element2: <testLibrary>::@getter::A
1175+
element: <testLibrary>::@getter::A
11761176
''');
11771177
}
11781178

pkg/analyzer/test/generated/strong_mode_test.dart

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ MethodInvocation
21072107
asOperator: as
21082108
type: NamedType
21092109
name: num
2110-
element2: dart:core::@class::num
2110+
element: dart:core::@class::num
21112111
type: num
21122112
correspondingParameter: ParameterMember
21132113
baseElement: s@null
@@ -3460,7 +3460,7 @@ void main() {
34603460
FunctionDeclaration
34613461
returnType: NamedType
34623462
name: T
3463-
element2: #E0 T
3463+
element: #E0 T
34643464
type: T
34653465
name: f
34663466
functionExpression: FunctionExpression
@@ -3477,7 +3477,7 @@ FunctionDeclaration
34773477
parameter: SimpleFormalParameter
34783478
type: NamedType
34793479
name: T
3480-
element2: #E0 T
3480+
element: #E0 T
34813481
type: T
34823482
name: x
34833483
declaredElement: <testLibraryFragment> x@9
@@ -3510,7 +3510,7 @@ FunctionDeclaration
35103510
FunctionDeclaration
35113511
returnType: NamedType
35123512
name: T
3513-
element2: #E0 T
3513+
element: #E0 T
35143514
type: T
35153515
name: f
35163516
functionExpression: FunctionExpression
@@ -3522,7 +3522,7 @@ FunctionDeclaration
35223522
extendsKeyword: extends
35233523
bound: NamedType
35243524
name: num
3525-
element2: dart:core::@class::num
3525+
element: dart:core::@class::num
35263526
type: num
35273527
declaredElement: <testLibraryFragment> T@4
35283528
defaultType: num
@@ -3532,7 +3532,7 @@ FunctionDeclaration
35323532
parameter: SimpleFormalParameter
35333533
type: NamedType
35343534
name: T
3535-
element2: #E0 T
3535+
element: #E0 T
35363536
type: T
35373537
name: x
35383538
declaredElement: <testLibraryFragment> x@21
@@ -3581,7 +3581,7 @@ MethodDeclaration
35813581
modifierKeyword: static
35823582
returnType: NamedType
35833583
name: T
3584-
element2: #E0 T
3584+
element: #E0 T
35853585
type: T
35863586
name: f
35873587
typeParameters: TypeParameterList
@@ -3597,7 +3597,7 @@ MethodDeclaration
35973597
parameter: SimpleFormalParameter
35983598
type: NamedType
35993599
name: T
3600-
element2: #E0 T
3600+
element: #E0 T
36013601
type: T
36023602
name: x
36033603
declaredElement: <testLibraryFragment> x@31
@@ -4272,10 +4272,10 @@ MethodInvocation
42724272
arguments
42734273
NamedType
42744274
name: S
4275-
element2: #E0 S
4275+
element: #E0 S
42764276
type: S
42774277
rightBracket: >
4278-
element2: <testLibrary>::@class::C
4278+
element: <testLibrary>::@class::C
42794279
type: C<S>
42804280
element: ConstructorMember
42814281
baseElement: <testLibrary>::@class::C::@constructor::new
@@ -4296,7 +4296,7 @@ MethodInvocation
42964296
arguments
42974297
NamedType
42984298
name: int
4299-
element2: dart:core::@class::int
4299+
element: dart:core::@class::int
43004300
type: int
43014301
rightBracket: >
43024302
argumentList: ArgumentList
@@ -4346,10 +4346,10 @@ MethodInvocation
43464346
arguments
43474347
NamedType
43484348
name: S
4349-
element2: #E0 S
4349+
element: #E0 S
43504350
type: S
43514351
rightBracket: >
4352-
element2: <testLibrary>::@class::C
4352+
element: <testLibrary>::@class::C
43534353
type: C<S>
43544354
element: ConstructorMember
43554355
baseElement: <testLibrary>::@class::C::@constructor::new
@@ -4370,7 +4370,7 @@ MethodInvocation
43704370
arguments
43714371
NamedType
43724372
name: int
4373-
element2: dart:core::@class::int
4373+
element: dart:core::@class::int
43744374
type: int
43754375
rightBracket: >
43764376
argumentList: ArgumentList
@@ -4441,7 +4441,7 @@ class D extends C {
44414441
MethodDeclaration
44424442
returnType: NamedType
44434443
name: T
4444-
element2: #E0 T
4444+
element: #E0 T
44454445
type: T
44464446
name: f
44474447
typeParameters: TypeParameterList
@@ -4457,7 +4457,7 @@ MethodDeclaration
44574457
parameter: SimpleFormalParameter
44584458
type: NamedType
44594459
name: T
4460-
element2: #E0 T
4460+
element: #E0 T
44614461
type: T
44624462
name: y
44634463
declaredElement: <testLibraryFragment> y@66
@@ -5690,9 +5690,9 @@ AssignmentExpression
56905690
literal: 3
56915691
correspondingParameter: <null>
56925692
staticType: int
5693-
readElement2: <null>
5693+
readElement: <null>
56945694
readType: null
5695-
writeElement2: v@15
5695+
writeElement: v@15
56965696
writeType: dynamic
56975697
element: <null>
56985698
staticType: int

pkg/analyzer/test/src/dart/resolution/as_expression_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ AsExpression
3535
asOperator: as
3636
type: NamedType
3737
name: int
38-
element2: dart:core::@class::int
38+
element: dart:core::@class::int
3939
type: int
4040
staticType: int
4141
''');
@@ -59,7 +59,7 @@ AsExpression
5959
asOperator: as
6060
type: NamedType
6161
name: int
62-
element2: dart:core::@class::int
62+
element: dart:core::@class::int
6363
type: int
6464
staticType: int
6565
''');
@@ -86,7 +86,7 @@ AsExpression
8686
asOperator: as
8787
type: NamedType
8888
name: T
89-
element2: #E0 T
89+
element: #E0 T
9090
type: T
9191
staticType: T
9292
''');
@@ -128,7 +128,7 @@ AsExpression
128128
asOperator: as
129129
type: NamedType
130130
name: double
131-
element2: dart:core::@class::double
131+
element: dart:core::@class::double
132132
type: double
133133
staticType: double
134134
''');

0 commit comments

Comments
 (0)