@@ -14101,6 +14101,103 @@ class A {
14101
14101
);
14102
14102
}
14103
14103
14104
+ test_dependency_class_unnamedConstructor_change_notUsed() async {
14105
+ configuration
14106
+ ..includeDefaultConstructors()
14107
+ ..withStreamResolvedUnitResults = false;
14108
+ await _runChangeScenarioTA(
14109
+ initialA: r'''
14110
+ class A {
14111
+ A(int _);
14112
+ A.named(int _);
14113
+ }
14114
+ ''',
14115
+ testCode: r'''
14116
+ import 'a.dart';
14117
+ void f() {
14118
+ A.named(0);
14119
+ }
14120
+ ''',
14121
+ operation: _FineOperationTestFileGetErrors(),
14122
+ expectedInitialEvents: r'''
14123
+ [status] working
14124
+ [operation] linkLibraryCycle SDK
14125
+ [future] getErrors T1
14126
+ ErrorsResult #0
14127
+ path: /home/test/lib/test.dart
14128
+ uri: package:test/test.dart
14129
+ flags: isLibrary
14130
+ [operation] linkLibraryCycle
14131
+ package:test/a.dart
14132
+ declaredClasses
14133
+ A: #M0
14134
+ declaredConstructors
14135
+ named: #M1
14136
+ new: #M2
14137
+ interface: #M3
14138
+ requirements
14139
+ topLevels
14140
+ dart:core
14141
+ int: #M4
14142
+ [operation] linkLibraryCycle
14143
+ package:test/test.dart
14144
+ declaredFunctions
14145
+ f: #M5
14146
+ requirements
14147
+ [operation] analyzeFile
14148
+ file: /home/test/lib/test.dart
14149
+ library: /home/test/lib/test.dart
14150
+ [operation] analyzedLibrary
14151
+ file: /home/test/lib/test.dart
14152
+ requirements
14153
+ topLevels
14154
+ dart:core
14155
+ A: <null>
14156
+ package:test/a.dart
14157
+ A: #M0
14158
+ interfaces
14159
+ package:test/a.dart
14160
+ A
14161
+ constructors
14162
+ named: #M1
14163
+ [status] idle
14164
+ ''',
14165
+ updatedA: r'''
14166
+ class A {
14167
+ A(double _);
14168
+ A.named(int _);
14169
+ }
14170
+ ''',
14171
+ expectedUpdatedEvents: r'''
14172
+ [status] working
14173
+ [operation] linkLibraryCycle
14174
+ package:test/a.dart
14175
+ declaredClasses
14176
+ A: #M0
14177
+ declaredConstructors
14178
+ named: #M1
14179
+ new: #M6
14180
+ interface: #M3
14181
+ requirements
14182
+ topLevels
14183
+ dart:core
14184
+ double: #M7
14185
+ int: #M4
14186
+ [future] getErrors T2
14187
+ ErrorsResult #1
14188
+ path: /home/test/lib/test.dart
14189
+ uri: package:test/test.dart
14190
+ flags: isLibrary
14191
+ [operation] readLibraryCycleBundle
14192
+ package:test/test.dart
14193
+ [operation] getErrorsFromBytes
14194
+ file: /home/test/lib/test.dart
14195
+ library: /home/test/lib/test.dart
14196
+ [status] idle
14197
+ ''',
14198
+ );
14199
+ }
14200
+
14104
14201
test_dependency_classTypaAlias_namedConstructor_change_invoked() async {
14105
14202
configuration.withStreamResolvedUnitResults = false;
14106
14203
await _runChangeScenarioTA(
@@ -19403,6 +19500,7 @@ extension type A(int it) {
19403
19500
}
19404
19501
19405
19502
test_dependency_extensionType_namedConstructor_change_invoked() async {
19503
+ configuration.includeDefaultConstructors();
19406
19504
await _runChangeScenarioTA(
19407
19505
initialA: r'''
19408
19506
extension type A(int it) {
@@ -19434,17 +19532,18 @@ void f() {
19434
19532
it: #M2
19435
19533
declaredConstructors
19436
19534
named: #M3
19437
- interface: #M4
19535
+ new: #M4
19536
+ interface: #M5
19438
19537
map
19439
19538
it: #M2
19440
19539
requirements
19441
19540
topLevels
19442
19541
dart:core
19443
- int: #M5
19542
+ int: #M6
19444
19543
[operation] linkLibraryCycle
19445
19544
package:test/test.dart
19446
19545
declaredFunctions
19447
- f: #M6
19546
+ f: #M7
19448
19547
requirements
19449
19548
[operation] analyzeFile
19450
19549
file: /home/test/lib/test.dart
@@ -19485,15 +19584,16 @@ extension type A(int it) {
19485
19584
declaredGetters
19486
19585
it: #M2
19487
19586
declaredConstructors
19488
- named: #M7
19489
- interface: #M4
19587
+ named: #M8
19588
+ new: #M4
19589
+ interface: #M5
19490
19590
map
19491
19591
it: #M2
19492
19592
requirements
19493
19593
topLevels
19494
19594
dart:core
19495
- double: #M8
19496
- int: #M5
19595
+ double: #M9
19596
+ int: #M6
19497
19597
[future] getErrors T2
19498
19598
ErrorsResult #2
19499
19599
path: /home/test/lib/test.dart
@@ -19507,7 +19607,7 @@ extension type A(int it) {
19507
19607
interfaceName: A
19508
19608
constructorName: named
19509
19609
expectedId: #M3
19510
- actualId: #M7
19610
+ actualId: #M8
19511
19611
[operation] analyzeFile
19512
19612
file: /home/test/lib/test.dart
19513
19613
library: /home/test/lib/test.dart
@@ -19528,13 +19628,14 @@ extension type A(int it) {
19528
19628
package:test/a.dart
19529
19629
A
19530
19630
constructors
19531
- named: #M7
19631
+ named: #M8
19532
19632
[status] idle
19533
19633
''',
19534
19634
);
19535
19635
}
19536
19636
19537
19637
test_dependency_extensionType_namedConstructor_change_notUsed() async {
19638
+ configuration.includeDefaultConstructors();
19538
19639
await _runChangeScenarioTA(
19539
19640
initialA: r'''
19540
19641
extension type A(int it) {
@@ -19566,17 +19667,18 @@ void f() {
19566
19667
it: #M2
19567
19668
declaredConstructors
19568
19669
named: #M3
19569
- interface: #M4
19670
+ new: #M4
19671
+ interface: #M5
19570
19672
map
19571
19673
it: #M2
19572
19674
requirements
19573
19675
topLevels
19574
19676
dart:core
19575
- int: #M5
19677
+ int: #M6
19576
19678
[operation] linkLibraryCycle
19577
19679
package:test/test.dart
19578
19680
declaredFunctions
19579
- f: #M6
19681
+ f: #M7
19580
19682
requirements
19581
19683
[operation] analyzeFile
19582
19684
file: /home/test/lib/test.dart
@@ -19598,7 +19700,7 @@ void f() {
19598
19700
package:test/a.dart
19599
19701
A
19600
19702
constructors
19601
- new: #M7
19703
+ new: #M4
19602
19704
[status] idle
19603
19705
''',
19604
19706
updatedA: r'''
@@ -19618,14 +19720,15 @@ extension type A(int it) {
19618
19720
it: #M2
19619
19721
declaredConstructors
19620
19722
named: #M8
19621
- interface: #M4
19723
+ new: #M4
19724
+ interface: #M5
19622
19725
map
19623
19726
it: #M2
19624
19727
requirements
19625
19728
topLevels
19626
19729
dart:core
19627
19730
double: #M9
19628
- int: #M5
19731
+ int: #M6
19629
19732
[future] getErrors T2
19630
19733
ErrorsResult #2
19631
19734
path: /home/test/lib/test.dart
@@ -20427,6 +20530,7 @@ extension type A(int it) {
20427
20530
}
20428
20531
20429
20532
test_dependency_extensionType_unnamedConstructor_change_invoked() async {
20533
+ configuration.includeDefaultConstructors();
20430
20534
await _runChangeScenarioTA(
20431
20535
initialA: r'''
20432
20536
extension type A(int it) {}
@@ -20454,17 +20558,19 @@ void f() {
20454
20558
it: #M1
20455
20559
declaredGetters
20456
20560
it: #M2
20457
- interface: #M3
20561
+ declaredConstructors
20562
+ new: #M3
20563
+ interface: #M4
20458
20564
map
20459
20565
it: #M2
20460
20566
requirements
20461
20567
topLevels
20462
20568
dart:core
20463
- int: #M4
20569
+ int: #M5
20464
20570
[operation] linkLibraryCycle
20465
20571
package:test/test.dart
20466
20572
declaredFunctions
20467
- f: #M5
20573
+ f: #M6
20468
20574
requirements
20469
20575
[operation] analyzeFile
20470
20576
file: /home/test/lib/test.dart
@@ -20486,7 +20592,7 @@ void f() {
20486
20592
package:test/a.dart
20487
20593
A
20488
20594
constructors
20489
- new: #M6
20595
+ new: #M3
20490
20596
[status] idle
20491
20597
''',
20492
20598
updatedA: r'''
@@ -20502,13 +20608,15 @@ extension type A(double it) {}
20502
20608
it: #M7
20503
20609
declaredGetters
20504
20610
it: #M8
20505
- interface: #M9
20611
+ declaredConstructors
20612
+ new: #M9
20613
+ interface: #M10
20506
20614
map
20507
20615
it: #M8
20508
20616
requirements
20509
20617
topLevels
20510
20618
dart:core
20511
- double: #M10
20619
+ double: #M11
20512
20620
[future] getErrors T2
20513
20621
ErrorsResult #2
20514
20622
path: /home/test/lib/test.dart
@@ -20521,8 +20629,8 @@ extension type A(double it) {}
20521
20629
libraryUri: package:test/a.dart
20522
20630
interfaceName: A
20523
20631
constructorName: new
20524
- expectedId: #M6
20525
- actualId: #M11
20632
+ expectedId: #M3
20633
+ actualId: #M9
20526
20634
[operation] analyzeFile
20527
20635
file: /home/test/lib/test.dart
20528
20636
library: /home/test/lib/test.dart
@@ -20543,13 +20651,14 @@ extension type A(double it) {}
20543
20651
package:test/a.dart
20544
20652
A
20545
20653
constructors
20546
- new: #M11
20654
+ new: #M9
20547
20655
[status] idle
20548
20656
''',
20549
20657
);
20550
20658
}
20551
20659
20552
20660
test_dependency_extensionType_unnamedConstructor_change_notUsed() async {
20661
+ configuration.includeDefaultConstructors();
20553
20662
await _runChangeScenarioTA(
20554
20663
initialA: r'''
20555
20664
extension type A(int it) {
@@ -20581,17 +20690,18 @@ void f() {
20581
20690
it: #M2
20582
20691
declaredConstructors
20583
20692
named: #M3
20584
- interface: #M4
20693
+ new: #M4
20694
+ interface: #M5
20585
20695
map
20586
20696
it: #M2
20587
20697
requirements
20588
20698
topLevels
20589
20699
dart:core
20590
- int: #M5
20700
+ int: #M6
20591
20701
[operation] linkLibraryCycle
20592
20702
package:test/test.dart
20593
20703
declaredFunctions
20594
- f: #M6
20704
+ f: #M7
20595
20705
requirements
20596
20706
[operation] analyzeFile
20597
20707
file: /home/test/lib/test.dart
@@ -20628,19 +20738,20 @@ extension type A(double it) {
20628
20738
declaredExtensionTypes
20629
20739
A: #M0
20630
20740
declaredFields
20631
- it: #M7
20632
- declaredGetters
20633
20741
it: #M8
20742
+ declaredGetters
20743
+ it: #M9
20634
20744
declaredConstructors
20635
20745
named: #M3
20636
- interface: #M9
20746
+ new: #M10
20747
+ interface: #M11
20637
20748
map
20638
- it: #M8
20749
+ it: #M9
20639
20750
requirements
20640
20751
topLevels
20641
20752
dart:core
20642
- double: #M10
20643
- int: #M5
20753
+ double: #M12
20754
+ int: #M6
20644
20755
[future] getErrors T2
20645
20756
ErrorsResult #2
20646
20757
path: /home/test/lib/test.dart
@@ -42983,7 +43094,7 @@ const a = A.named();
42983
43094
}
42984
43095
42985
43096
test_manifest_constInitializer_constructorName_unnamed() async {
42986
- configuration.ignoredManifestInstanceMemberNames.remove('new' );
43097
+ configuration.includeDefaultConstructors( );
42987
43098
await _runLibraryManifestScenario(
42988
43099
initialCode: r'''
42989
43100
class A {
@@ -43028,7 +43139,7 @@ const a = A();
43028
43139
}
43029
43140
43030
43141
test_manifest_constInitializer_constructorName_unnamed_notAffected() async {
43031
- configuration.ignoredManifestInstanceMemberNames.remove('new' );
43142
+ configuration.includeDefaultConstructors( );
43032
43143
await _runLibraryManifestScenario(
43033
43144
initialCode: r'''
43034
43145
class A {
0 commit comments