@@ -34,7 +34,6 @@ void _checkConsts() {
3434 print ('Checking for expected constants.' );
3535 final ConstFinder finder = ConstFinder (
3636 kernelFilePath: constsDill,
37- targetLibraryUri: 'package:const_finder_fixtures/consts.dart' ,
3837 classLibraryUri: 'package:const_finder_fixtures/target.dart' ,
3938 className: 'Target' ,
4039 );
@@ -43,8 +42,15 @@ void _checkConsts() {
4342 jsonEncode (finder.findInstances ()),
4443 jsonEncode (< String , dynamic > {
4544 'constantInstances' : < Map <String , dynamic >> [
46- < String , dynamic > {'stringValue' : '1' , 'intValue' : 1 },
47- < String , dynamic > {'stringValue' : '2' , 'intValue' : 2 }
45+ < String , dynamic > {'stringValue' : '1' , 'intValue' : 1 , 'targetValue' : null },
46+ < String , dynamic > {'stringValue' : '4' , 'intValue' : 4 , 'targetValue' : null },
47+ < String , dynamic > {'stringValue' : '2' , 'intValue' : 2 },
48+ < String , dynamic > {'stringValue' : '6' , 'intValue' : 6 , 'targetValue' : null },
49+ < String , dynamic > {'stringValue' : '8' , 'intValue' : 8 , 'targetValue' : null },
50+ < String , dynamic > {'stringValue' : '10' , 'intValue' : 10 , 'targetValue' : null },
51+ < String , dynamic > {'stringValue' : '9' , 'intValue' : 9 },
52+ < String , dynamic > {'stringValue' : '7' , 'intValue' : 7 , 'targetValue' : null },
53+ < String , dynamic > {'stringValue' : 'package' , 'intValue' : - 1 , 'targetValue' : null },
4854 ],
4955 'nonConstantLocations' : < dynamic > [],
5056 }),
@@ -55,7 +61,6 @@ void _checkNonConsts() {
5561 print ('Checking for non-constant instances.' );
5662 final ConstFinder finder = ConstFinder (
5763 kernelFilePath: constsAndNonDill,
58- targetLibraryUri: 'package:const_finder_fixtures/consts_and_non.dart' ,
5964 classLibraryUri: 'package:const_finder_fixtures/target.dart' ,
6065 className: 'Target' ,
6166 );
@@ -64,19 +69,34 @@ void _checkNonConsts() {
6469 jsonEncode (finder.findInstances ()),
6570 jsonEncode (< String , dynamic > {
6671 'constantInstances' : < dynamic > [
67- < String , dynamic > {'stringValue' : '1' , 'intValue' : 1 }
72+ < String , dynamic > {'stringValue' : '1' , 'intValue' : 1 , 'targetValue' : null },
73+ < String , dynamic > {'stringValue' : '6' , 'intValue' : 6 , 'targetValue' : null },
74+ < String , dynamic > {'stringValue' : '8' , 'intValue' : 8 , 'targetValue' : null },
75+ < String , dynamic > {'stringValue' : '10' , 'intValue' : 10 , 'targetValue' : null },
76+ < String , dynamic > {'stringValue' : '9' , 'intValue' : 9 },
77+ < String , dynamic > {'stringValue' : '7' , 'intValue' : 7 , 'targetValue' : null },
6878 ],
6979 'nonConstantLocations' : < dynamic > [
7080 < String , dynamic > {
7181 'file' : 'file://$fixtures /lib/consts_and_non.dart' ,
72- 'line' : 12 ,
73- 'column' : 26
82+ 'line' : 14 ,
83+ 'column' : 26 ,
7484 },
7585 < String , dynamic > {
7686 'file' : 'file://$fixtures /lib/consts_and_non.dart' ,
77- 'line' : 14 ,
78- 'column' : 26
87+ 'line' : 17 ,
88+ 'column' : 26 ,
89+ },
90+ < String , dynamic > {
91+ 'file' : 'file://$fixtures /lib/consts_and_non.dart' ,
92+ 'line' : 19 ,
93+ 'column' : 26 ,
7994 },
95+ < String , dynamic > {
96+ 'file' : 'file://$fixtures /pkg/package.dart' ,
97+ 'line' : 10 ,
98+ 'column' : 25 ,
99+ }
80100 ]
81101 }),
82102 );
0 commit comments