Skip to content

Commit 77dd4fb

Browse files
scheglovCommit Queue
authored andcommitted
Fine. Remove library self-dependency from 'instances'.
We already re-compute the library element when its API signature changes, and re-analyze the library when any of its files changes. Change-Id: I400096d7a94a8d3c12866c36994e6f2f324bf614 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/430980 Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 4a64532 commit 77dd4fb

File tree

2 files changed

+1
-101
lines changed

2 files changed

+1
-101
lines changed

pkg/analyzer/lib/src/fine/requirements.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,9 +791,7 @@ class RequirementsManifest {
791791

792792
for (var libUri in bundleLibraryUriList) {
793793
topLevels.remove(libUri);
794-
}
795-
796-
for (var libUri in bundleLibraryUriList) {
794+
instances.remove(libUri);
797795
interfaces.remove(libUri);
798796
}
799797
}

pkg/analyzer/test/src/dart/analysis/driver_test.dart

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -6656,10 +6656,6 @@ class B extends A {
66566656
instances
66576657
package:test/a.dart
66586658
A
6659-
package:test/test.dart
6660-
B
6661-
requestedMethods
6662-
noSuchMethod: <null>
66636659
interfaces
66646660
package:test/a.dart
66656661
A
@@ -6738,10 +6734,6 @@ class A {
67386734
instances
67396735
package:test/a.dart
67406736
A
6741-
package:test/test.dart
6742-
B
6743-
requestedMethods
6744-
noSuchMethod: <null>
67456737
interfaces
67466738
package:test/a.dart
67476739
A
@@ -8740,16 +8732,6 @@ void f (B b) {
87408732
topLevels
87418733
dart:core
87428734
int: #M5
8743-
instances
8744-
package:test/test.dart
8745-
A
8746-
requestedFields
8747-
_foo: #M1
8748-
requestedMethods
8749-
noSuchMethod: <null>
8750-
B
8751-
requestedMethods
8752-
noSuchMethod: <null>
87538735
[status] idle
87548736
''',
87558737
updateFiles: () {
@@ -8799,16 +8781,6 @@ void f (B b) {
87998781
topLevels
88008782
dart:core
88018783
String: #M8
8802-
instances
8803-
package:test/test.dart
8804-
A
8805-
requestedFields
8806-
_foo: #M6
8807-
requestedMethods
8808-
noSuchMethod: <null>
8809-
B
8810-
requestedMethods
8811-
noSuchMethod: <null>
88128784
[status] idle
88138785
''',
88148786
);
@@ -10425,15 +10397,6 @@ void f (B b) {
1042510397
topLevels
1042610398
dart:core
1042710399
int: #M4
10428-
instances
10429-
package:test/test.dart
10430-
A
10431-
requestedMethods
10432-
noSuchMethod: <null>
10433-
allDeclaredMethods: #M1
10434-
B
10435-
requestedMethods
10436-
noSuchMethod: <null>
1043710400
[status] idle
1043810401
''',
1043910402
updateFiles: () {
@@ -10481,15 +10444,6 @@ void f (B b) {
1048110444
topLevels
1048210445
dart:core
1048310446
String: #M6
10484-
instances
10485-
package:test/test.dart
10486-
A
10487-
requestedMethods
10488-
noSuchMethod: <null>
10489-
allDeclaredMethods: #M5
10490-
B
10491-
requestedMethods
10492-
noSuchMethod: <null>
1049310447
[status] idle
1049410448
''',
1049510449
);
@@ -10548,15 +10502,6 @@ void f(B b) {
1054810502
topLevels
1054910503
dart:core
1055010504
int: #M4
10551-
instances
10552-
package:test/test.dart
10553-
A
10554-
requestedMethods
10555-
noSuchMethod: <null>
10556-
allDeclaredMethods: #M1
10557-
B
10558-
requestedMethods
10559-
noSuchMethod: <null>
1056010505
[status] idle
1056110506
''',
1056210507
updateFiles: () {
@@ -10602,15 +10547,6 @@ void f(B b) {
1060210547
topLevels
1060310548
dart:core
1060410549
double: #M6
10605-
instances
10606-
package:test/test.dart
10607-
A
10608-
requestedMethods
10609-
noSuchMethod: <null>
10610-
allDeclaredMethods: #M5
10611-
B
10612-
requestedMethods
10613-
noSuchMethod: <null>
1061410550
[status] idle
1061510551
''',
1061610552
);
@@ -10680,12 +10616,6 @@ void f(B b) {
1068010616
B: <null>
1068110617
package:test/a.dart
1068210618
B: #M0
10683-
instances
10684-
package:test/test.dart
10685-
A
10686-
requestedMethods
10687-
noSuchMethod: <null>
10688-
allDeclaredMethods: #M2
1068910619
[status] idle
1069010620
''',
1069110621
updateFiles: () {
@@ -10746,14 +10676,6 @@ void f(B b) {
1074610676
_foo: <null>
1074710677
requestedMethods
1074810678
_foo: <null>
10749-
package:test/test.dart
10750-
A
10751-
requestedGetters
10752-
_foo: <null>
10753-
requestedMethods
10754-
_foo: <null>
10755-
noSuchMethod: <null>
10756-
allDeclaredMethods: #M4
1075710679
[status] idle
1075810680
''',
1075910681
);
@@ -11779,16 +11701,6 @@ void f (B b) {
1177911701
topLevels
1178011702
dart:core
1178111703
int: #M5
11782-
instances
11783-
package:test/test.dart
11784-
A
11785-
requestedFields
11786-
_foo: #M1
11787-
requestedMethods
11788-
noSuchMethod: <null>
11789-
B
11790-
requestedMethods
11791-
noSuchMethod: <null>
1179211704
[status] idle
1179311705
''',
1179411706
updateFiles: () {
@@ -11838,16 +11750,6 @@ void f (B b) {
1183811750
topLevels
1183911751
dart:core
1184011752
String: #M8
11841-
instances
11842-
package:test/test.dart
11843-
A
11844-
requestedFields
11845-
_foo: #M6
11846-
requestedMethods
11847-
noSuchMethod: <null>
11848-
B
11849-
requestedMethods
11850-
noSuchMethod: <null>
1185111753
[status] idle
1185211754
''',
1185311755
);

0 commit comments

Comments
 (0)