Commit 847c92e
Fine. Track inherited members in manifest and interface ID.
Add an `inherited` map to `ManifestInterface` and populate it from
`InheritanceManager3.getInheritedMap`. Include this map in serialization
and in the ID computation alongside `map`, `implemented`, and
`superImplemented`. The interface ID now changes when only inherited
members change.
Previously, if a superclass member changed (e.g. its signature) but was
overridden in a subclass, the subclass’s interface ID could remain
stable because only its declared/implemented members were considered.
That caused stale analysis results and missed invalidations. By tracking
`inherited`, interface IDs accurately reflect upstream API changes even
when they are shadowed locally.
Other updates:
- Print the `inherited` section in `result_printer`.
- Mark `inheritanceManager` as `@trackedIndirectly` and stop recording
opaque API use on access.
- Bump `AnalysisDriver.DATA_VERSION` to 543 due to the format change.
Change-Id: I54c637bef7b10d7cb27f93ae146c96b62ff6cddd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/448720
Reviewed-by: Johnni Winther <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>1 parent 5f3466e commit 847c92e
File tree
6 files changed
+1281
-6
lines changed- pkg/analyzer
- lib/src
- dart
- analysis
- element
- fine
- test/src/dart/analysis
6 files changed
+1281
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4827 | 4827 | | |
4828 | 4828 | | |
4829 | 4829 | | |
4830 | | - | |
| 4830 | + | |
4831 | 4831 | | |
4832 | | - | |
4833 | 4832 | | |
4834 | 4833 | | |
4835 | 4834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
878 | | - | |
| 878 | + | |
| 879 | + | |
879 | 880 | | |
880 | 881 | | |
881 | 882 | | |
| |||
937 | 938 | | |
938 | 939 | | |
939 | 940 | | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
940 | 950 | | |
941 | 951 | | |
942 | 952 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
| 1158 | + | |
1158 | 1159 | | |
1159 | 1160 | | |
1160 | 1161 | | |
1161 | 1162 | | |
1162 | 1163 | | |
1163 | 1164 | | |
| 1165 | + | |
1164 | 1166 | | |
1165 | 1167 | | |
1166 | 1168 | | |
| |||
1176 | 1178 | | |
1177 | 1179 | | |
1178 | 1180 | | |
| 1181 | + | |
1179 | 1182 | | |
1180 | 1183 | | |
1181 | 1184 | | |
| |||
1185 | 1188 | | |
1186 | 1189 | | |
1187 | 1190 | | |
| 1191 | + | |
1188 | 1192 | | |
1189 | 1193 | | |
1190 | 1194 | | |
| |||
1197 | 1201 | | |
1198 | 1202 | | |
1199 | 1203 | | |
| 1204 | + | |
1200 | 1205 | | |
1201 | 1206 | | |
1202 | 1207 | | |
| |||
1211 | 1216 | | |
1212 | 1217 | | |
1213 | 1218 | | |
1214 | | - | |
| 1219 | + | |
| 1220 | + | |
1215 | 1221 | | |
1216 | 1222 | | |
1217 | 1223 | | |
1218 | 1224 | | |
1219 | 1225 | | |
1220 | | - | |
| 1226 | + | |
1221 | 1227 | | |
1222 | 1228 | | |
1223 | 1229 | | |
| |||
1231 | 1237 | | |
1232 | 1238 | | |
1233 | 1239 | | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
1234 | 1243 | | |
1235 | 1244 | | |
1236 | 1245 | | |
| |||
1240 | 1249 | | |
1241 | 1250 | | |
1242 | 1251 | | |
| 1252 | + | |
1243 | 1253 | | |
1244 | 1254 | | |
1245 | 1255 | | |
| |||
0 commit comments