Skip to content

Commit d47213b

Browse files
scheglovCommit Queue
authored andcommitted
Fine. Remove requirements from the same library.
We analyze the whole library anyway when anything changes in it. Change-Id: I80913e2383998098aa150f048ad2c39310b915e6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425921 Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 3cc0549 commit d47213b

File tree

2 files changed

+14
-48
lines changed

2 files changed

+14
-48
lines changed

pkg/analyzer/lib/src/dart/analysis/driver.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,8 @@ class AnalysisDriver {
14401440
}
14411441

14421442
if (withFineDependencies && requirements != null) {
1443+
requirements.removeReqForLibs({library.file.uri});
1444+
14431445
performance.run('writeResolvedLibrary', (_) {
14441446
var mapSink = BufferedSink();
14451447
mapSink.writeMap(

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

Lines changed: 12 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -7269,10 +7269,6 @@ void f (B b) {
72697269
methods
72707270
isEven: #M5
72717271
isEven=: <null>
7272-
package:test/test.dart
7273-
A
7274-
constructors
7275-
new: #M6
72767272
[status] idle
72777273
''',
72787274
updateFiles: () {
@@ -7296,13 +7292,13 @@ void f (B b) {
72967292
manifest
72977293
A: #M0
72987294
declaredMembers
7299-
_foo.getter: #M7
7295+
_foo.getter: #M6
73007296
B: #M2
73017297
f: #M3
73027298
requirements
73037299
topLevels
73047300
dart:core
7305-
String: #M8
7301+
String: #M7
73067302
[future] getErrors T2
73077303
ErrorsResult #1
73087304
path: /home/test/lib/test.dart
@@ -7318,7 +7314,7 @@ void f (B b) {
73187314
requirements
73197315
topLevels
73207316
dart:core
7321-
String: #M8
7317+
String: #M7
73227318
interfaces
73237319
dart:core
73247320
Object
@@ -7329,10 +7325,6 @@ void f (B b) {
73297325
methods
73307326
isEven: <null>
73317327
isEven=: <null>
7332-
package:test/test.dart
7333-
A
7334-
constructors
7335-
new: #M6
73367328
[status] idle
73377329
''',
73387330
);
@@ -8940,10 +8932,6 @@ void f (B b) {
89408932
methods
89418933
isEven: #M5
89428934
isEven=: <null>
8943-
package:test/test.dart
8944-
A
8945-
constructors
8946-
new: #M6
89478935
[status] idle
89488936
''',
89498937
updateFiles: () {
@@ -8967,13 +8955,13 @@ void f (B b) {
89678955
manifest
89688956
A: #M0
89698957
declaredMembers
8970-
_foo.method: #M7
8958+
_foo.method: #M6
89718959
B: #M2
89728960
f: #M3
89738961
requirements
89748962
topLevels
89758963
dart:core
8976-
String: #M8
8964+
String: #M7
89778965
[future] getErrors T2
89788966
ErrorsResult #1
89798967
path: /home/test/lib/test.dart
@@ -8989,7 +8977,7 @@ void f (B b) {
89898977
requirements
89908978
topLevels
89918979
dart:core
8992-
String: #M8
8980+
String: #M7
89938981
interfaces
89948982
dart:core
89958983
Object
@@ -9000,10 +8988,6 @@ void f (B b) {
90008988
methods
90018989
isEven: <null>
90028990
isEven=: <null>
9003-
package:test/test.dart
9004-
A
9005-
constructors
9006-
new: #M6
90078991
[status] idle
90088992
''',
90098993
);
@@ -9061,11 +9045,6 @@ void f(B b) {
90619045
topLevels
90629046
dart:core
90639047
int: #M4
9064-
interfaces
9065-
package:test/test.dart
9066-
A
9067-
constructors
9068-
new: #M5
90699048
[status] idle
90709049
''',
90719050
updateFiles: () {
@@ -9089,13 +9068,13 @@ void f(B b) {
90899068
manifest
90909069
A: #M0
90919070
declaredMembers
9092-
_foo.method: #M6
9071+
_foo.method: #M5
90939072
B: #M2
90949073
f: #M3
90959074
requirements
90969075
topLevels
90979076
dart:core
9098-
double: #M7
9077+
double: #M6
90999078
[future] getErrors T2
91009079
ErrorsResult #1
91019080
path: /home/test/lib/test.dart
@@ -9109,12 +9088,7 @@ void f(B b) {
91099088
requirements
91109089
topLevels
91119090
dart:core
9112-
double: #M7
9113-
interfaces
9114-
package:test/test.dart
9115-
A
9116-
constructors
9117-
new: #M5
9091+
double: #M6
91189092
[status] idle
91199093
''',
91209094
);
@@ -10213,11 +10187,6 @@ void f (B b) {
1021310187
topLevels
1021410188
dart:core
1021510189
int: #M4
10216-
interfaces
10217-
package:test/test.dart
10218-
A
10219-
constructors
10220-
new: #M5
1022110190
[status] idle
1022210191
''',
1022310192
updateFiles: () {
@@ -10241,13 +10210,13 @@ void f (B b) {
1024110210
manifest
1024210211
A: #M0
1024310212
declaredMembers
10244-
_foo.setter: #M6
10213+
_foo.setter: #M5
1024510214
B: #M2
1024610215
f: #M3
1024710216
requirements
1024810217
topLevels
1024910218
dart:core
10250-
String: #M7
10219+
String: #M6
1025110220
[future] getErrors T2
1025210221
ErrorsResult #1
1025310222
path: /home/test/lib/test.dart
@@ -10263,12 +10232,7 @@ void f (B b) {
1026310232
requirements
1026410233
topLevels
1026510234
dart:core
10266-
String: #M7
10267-
interfaces
10268-
package:test/test.dart
10269-
A
10270-
constructors
10271-
new: #M5
10235+
String: #M6
1027210236
[status] idle
1027310237
''',
1027410238
);

0 commit comments

Comments
 (0)