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

Side by Side Diff: tests/compiler/dart2js/kernel/constructors_test.dart

Issue 2846433003: Run closed_world2_test using the normal compiler pipeline. (Closed)
Patch Set: Created 3 years, 8 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'package:compiler/src/compiler.dart' show Compiler; 5 import 'package:compiler/src/compiler.dart' show Compiler;
6 import 'package:compiler/src/elements/elements.dart'; 6 import 'package:compiler/src/elements/elements.dart';
7 import 'package:test/test.dart'; 7 import 'package:test/test.dart';
8 8
9 import 'helper.dart' show check; 9 import 'helper.dart' show check;
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 } 64 }
65 65
66 main() => new Foo(); 66 main() => new Foo();
67 '''; 67 ''';
68 return check(code, lookup: defaultConstructorFor('Foo')); 68 return check(code, lookup: defaultConstructorFor('Foo'));
69 });*/ 69 });*/
70 } 70 }
71 71
72 defaultConstructorFor(String className) => (Compiler compiler) { 72 defaultConstructorFor(String className) => (Compiler compiler) {
73 ClassElement clazz = compiler.mainApp.find(className); 73 LibraryElement mainApp = compiler.mainApp;
74 ClassElement clazz = mainApp.find(className);
74 return clazz.lookupDefaultConstructor(); 75 return clazz.lookupDefaultConstructor();
75 }; 76 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698