Commit 3cf0093
[analyzer] Stop implementing some shared types in public API.
The following adjustements are made to the analyzer class hierarchy:
- `SharedNamedFunctionParameterStructure` is moved from the
`implements` clause of `ParameterElement` to the implements clause
of `ParameterElementMixin`, a mixin that is used by all concrete
subtypes of `ParameterElement`, but which is not part of the
analyzer's public API.
- `SharedNamedTypeStructure` is moved from the `implements` clause of
`RecordTypeNamedField` to the implements clause of
`RecordTypeNamedFieldImpl`, the sole concrete subtype of
`RecordTypeNamedField`, which is not part of the analyzer's public
API.
To account for these changes, the analyzer's use of the shared types
`FunctionTypeImpl`, `TypeConstraintGenerator`, and
`TypeConstraintGeneratorMixin` needed to be adjusted so
`ParameterElementMixin` is supplied as a type parameter instead of
`ParameterElement`. This required adding a cast to the
`FunctionTypeImpl` constructor, which I intend to remove in a future
CL.
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: I889b9f87d7d077d10935c4506c454507a480afcd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/402380
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Paul Berry <[email protected]>1 parent 70c0a2e commit 3cf0093
File tree
5 files changed
+15
-15
lines changed- pkg/analyzer/lib
- dart/element
- src/dart/element
5 files changed
+15
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2142 | 2142 | | |
2143 | 2143 | | |
2144 | 2144 | | |
2145 | | - | |
2146 | | - | |
2147 | | - | |
2148 | | - | |
| 2145 | + | |
2149 | 2146 | | |
2150 | 2147 | | |
2151 | 2148 | | |
| |||
2202 | 2199 | | |
2203 | 2200 | | |
2204 | 2201 | | |
2205 | | - | |
2206 | 2202 | | |
2207 | 2203 | | |
2208 | 2204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
608 | | - | |
| 607 | + | |
609 | 608 | | |
610 | | - | |
611 | 609 | | |
612 | 610 | | |
613 | 611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
9188 | 9189 | | |
9189 | 9190 | | |
9190 | 9191 | | |
9191 | | - | |
| 9192 | + | |
| 9193 | + | |
| 9194 | + | |
| 9195 | + | |
9192 | 9196 | | |
9193 | 9197 | | |
9194 | 9198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
1453 | 1455 | | |
1454 | 1456 | | |
1455 | 1457 | | |
1456 | | - | |
| 1458 | + | |
1457 | 1459 | | |
1458 | 1460 | | |
1459 | 1461 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments