Commit 6a927fe
[analyzer] Change types in CollectionLiteralContext to TypeImpl.
The types of the following members of `CollectionLiteralContext` are
all changed to use `TypeImpl` rather than `DartType`:
- `elementType`
- `iterableType`
- `keyType`
- `valueType`
To reduce the number of casts that need to be added, some field types,
getter types, method return types, and method parameter types are
changed to `Impl` types in the following classes, mixins, and
extensions:
- `BodyInferenceContext`
- `ElementsTypesMixin`
- `ErrorDetectionHelpers`
- `ExecutableMember`
- `ExtensionMemberResolver`
- `ExtensionsExtensions`
- `ExtensionsExtensions2`
- `FormalParameterElementMixin`
- `FragmentedFunctionTypedElementMixin`
- `FunctionTypeImpl`
- `GenericFunctionInferenceTest`
- `InstantiatedExtensionWithMember`
- `InterfaceTypeImpl`
- `InvocationInferrer`
- `LeastUpperBoundHelper`
- `LowerBoundTest`
- `MethodMember`
- `NotInstantiatedExtensionsExtensions`
- `NotInstantiatedExtensionsExtensions2`
- `ParameterElementExtension`
- `ParameterElementMixin`
- `ResolverVisitor`
- `StringTypes`
- `TypedLiteralResolver`
- `TypeSystemImpl`
- `TypeSystemOperations`
- `_BoundsTestBase`
- `_InferredCollectionElementTypeInformation`
- `_NotInstantiatedExtension`
- `_ParamInfo`
There is no change to the analyzer public API.
This is part of a larger arc of work to change the analyzer's use of
the shared code so that the type parameters it supplies are not part
of the analyzer public API. See
#59763.
Change-Id: I7a5f7c411e81b829be205f1919c933f8f874e5ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/405404
Commit-Queue: Paul Berry <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>1 parent 939cdfb commit 6a927fe
File tree
29 files changed
+288
-222
lines changed- pkg
- analysis_server/lib/src/services
- completion/dart
- correction/dart
- analyzer
- lib/src
- dart
- ast
- element
- resolver
- generated
- utilities/extensions
- test
- generated
- src/dart/element
29 files changed
+288
-222
lines changedLines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
491 | 492 | | |
492 | 493 | | |
493 | 494 | | |
494 | | - | |
495 | | - | |
496 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
| |||
749 | 751 | | |
750 | 752 | | |
751 | 753 | | |
752 | | - | |
753 | | - | |
754 | | - | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
755 | 758 | | |
756 | 759 | | |
757 | 760 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | | - | |
| 287 | + | |
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
| |||
755 | 759 | | |
756 | 760 | | |
757 | 761 | | |
758 | | - | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
759 | 766 | | |
760 | 767 | | |
761 | 768 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6657 | 6657 | | |
6658 | 6658 | | |
6659 | 6659 | | |
6660 | | - | |
| 6660 | + | |
| 6661 | + | |
6661 | 6662 | | |
6662 | 6663 | | |
6663 | 6664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | | - | |
| 1595 | + | |
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
| |||
3732 | 3732 | | |
3733 | 3733 | | |
3734 | 3734 | | |
3735 | | - | |
| 3735 | + | |
3736 | 3736 | | |
3737 | 3737 | | |
3738 | 3738 | | |
| |||
3887 | 3887 | | |
3888 | 3888 | | |
3889 | 3889 | | |
3890 | | - | |
| 3890 | + | |
3891 | 3891 | | |
3892 | 3892 | | |
3893 | 3893 | | |
| |||
3898 | 3898 | | |
3899 | 3899 | | |
3900 | 3900 | | |
3901 | | - | |
| 3901 | + | |
3902 | 3902 | | |
3903 | 3903 | | |
3904 | 3904 | | |
| |||
4084 | 4084 | | |
4085 | 4085 | | |
4086 | 4086 | | |
4087 | | - | |
| 4087 | + | |
4088 | 4088 | | |
4089 | 4089 | | |
4090 | 4090 | | |
| |||
4663 | 4663 | | |
4664 | 4664 | | |
4665 | 4665 | | |
| 4666 | + | |
| 4667 | + | |
| 4668 | + | |
4666 | 4669 | | |
4667 | 4670 | | |
4668 | 4671 | | |
| |||
5116 | 5119 | | |
5117 | 5120 | | |
5118 | 5121 | | |
5119 | | - | |
| 5122 | + | |
5120 | 5123 | | |
5121 | 5124 | | |
5122 | 5125 | | |
| |||
5246 | 5249 | | |
5247 | 5250 | | |
5248 | 5251 | | |
| 5252 | + | |
| 5253 | + | |
| 5254 | + | |
5249 | 5255 | | |
5250 | 5256 | | |
5251 | 5257 | | |
| |||
5277 | 5283 | | |
5278 | 5284 | | |
5279 | 5285 | | |
5280 | | - | |
| 5286 | + | |
5281 | 5287 | | |
5282 | 5288 | | |
5283 | 5289 | | |
| |||
5361 | 5367 | | |
5362 | 5368 | | |
5363 | 5369 | | |
5364 | | - | |
| 5370 | + | |
5365 | 5371 | | |
5366 | 5372 | | |
5367 | 5373 | | |
| |||
5375 | 5381 | | |
5376 | 5382 | | |
5377 | 5383 | | |
5378 | | - | |
| 5384 | + | |
5379 | 5385 | | |
5380 | 5386 | | |
5381 | 5387 | | |
| |||
8262 | 8268 | | |
8263 | 8269 | | |
8264 | 8270 | | |
| 8271 | + | |
| 8272 | + | |
| 8273 | + | |
| 8274 | + | |
| 8275 | + | |
8265 | 8276 | | |
8266 | 8277 | | |
8267 | 8278 | | |
8268 | | - | |
| 8279 | + | |
8269 | 8280 | | |
8270 | 8281 | | |
8271 | 8282 | | |
| |||
8365 | 8376 | | |
8366 | 8377 | | |
8367 | 8378 | | |
8368 | | - | |
| 8379 | + | |
8369 | 8380 | | |
8370 | 8381 | | |
8371 | 8382 | | |
| |||
8422 | 8433 | | |
8423 | 8434 | | |
8424 | 8435 | | |
| 8436 | + | |
| 8437 | + | |
| 8438 | + | |
| 8439 | + | |
| 8440 | + | |
8425 | 8441 | | |
8426 | 8442 | | |
8427 | 8443 | | |
| |||
9535 | 9551 | | |
9536 | 9552 | | |
9537 | 9553 | | |
| 9554 | + | |
| 9555 | + | |
| 9556 | + | |
9538 | 9557 | | |
9539 | 9558 | | |
9540 | 9559 | | |
| |||
10141 | 10160 | | |
10142 | 10161 | | |
10143 | 10162 | | |
10144 | | - | |
| 10163 | + | |
10145 | 10164 | | |
10146 | 10165 | | |
10147 | 10166 | | |
| |||
10207 | 10226 | | |
10208 | 10227 | | |
10209 | 10228 | | |
10210 | | - | |
| 10229 | + | |
10211 | 10230 | | |
10212 | 10231 | | |
10213 | 10232 | | |
| |||
11116 | 11135 | | |
11117 | 11136 | | |
11118 | 11137 | | |
11119 | | - | |
| 11138 | + | |
11120 | 11139 | | |
11121 | 11140 | | |
11122 | 11141 | | |
| |||
0 commit comments