Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: tests/compiler/dart2js/equivalence/check_functions.dart

Issue 3005823002: Handle forwarding constructors to unnamed mixin applications (Closed)
Patch Set: Updated cf. comments Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Equivalence test functions for data objects. 5 /// Equivalence test functions for data objects.
6 6
7 library dart2js.equivalence.functions; 7 library dart2js.equivalence.functions;
8 8
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import 'package:compiler/src/common/resolution.dart'; 10 import 'package:compiler/src/common/resolution.dart';
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 fragment2.invokeMain, areJsNodesEquivalent, js.nodeToString); 1016 fragment2.invokeMain, areJsNodesEquivalent, js.nodeToString);
1017 } else if (fragment1 is DeferredFragment && fragment2 is DeferredFragment) { 1017 } else if (fragment1 is DeferredFragment && fragment2 is DeferredFragment) {
1018 check(fragment1, fragment2, 'name', fragment1.name, fragment2.name); 1018 check(fragment1, fragment2, 'name', fragment1.name, fragment2.name);
1019 } 1019 }
1020 } 1020 }
1021 1021
1022 void checkEmitterLibraries( 1022 void checkEmitterLibraries(
1023 Library library1, Library library2, TestStrategy strategy) { 1023 Library library1, Library library2, TestStrategy strategy) {
1024 check(library1, library2, 'uri', library1.uri, library2.uri); 1024 check(library1, library2, 'uri', library1.uri, library2.uri);
1025 checkLists(library1.classes, library2.classes, 'classes', 1025 checkLists(library1.classes, library2.classes, 'classes',
1026 (a, b) => a.element.name == b.element.name, 1026 (a, b) => a.name.key == b.name.key,
1027 onSameElement: (a, b) => checkEmitterClasses(a, b, strategy)); 1027 onSameElement: (a, b) => checkEmitterClasses(a, b, strategy));
1028 checkLists(library1.statics, library2.statics, 'statics', 1028 checkLists(library1.statics, library2.statics, 'statics',
1029 (a, b) => a.name.key == b.name.key, 1029 (a, b) => a.name.key == b.name.key,
1030 onSameElement: (a, b) => checkEmitterMethods(a, b, strategy)); 1030 onSameElement: (a, b) => checkEmitterMethods(a, b, strategy));
1031 checkLists( 1031 checkLists(
1032 library1.staticFieldsForReflection, 1032 library1.staticFieldsForReflection,
1033 library2.staticFieldsForReflection, 1033 library2.staticFieldsForReflection,
1034 'staticFieldsForReflection on $library1/$library2', 1034 'staticFieldsForReflection on $library1/$library2',
1035 (a, b) => a.name.key == b.name.key, 1035 (a, b) => a.name.key == b.name.key,
1036 onSameElement: checkEmitterFields); 1036 onSameElement: checkEmitterFields);
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 print(' ${js.nodeToString(node1)}'); 1220 print(' ${js.nodeToString(node1)}');
1221 print(' ${js.nodeToString(node2)}'); 1221 print(' ${js.nodeToString(node2)}');
1222 } 1222 }
1223 return expectedValue == label2; 1223 return expectedValue == label2;
1224 } else { 1224 } else {
1225 labelsMap[label1] = label2; 1225 labelsMap[label1] = label2;
1226 return true; 1226 return true;
1227 } 1227 }
1228 } 1228 }
1229 } 1229 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698