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

Unified Diff: pkg/kernel/test/closures/suite.dart

Issue 2665723002: Implement canonical name scheme in kernel. (Closed)
Patch Set: Address Kevin's comments Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/kernel/test/closures/kernel_chain.dart ('k') | pkg/kernel/test/frontend_bench.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/test/closures/suite.dart
diff --git a/pkg/kernel/test/closures/suite.dart b/pkg/kernel/test/closures/suite.dart
index 76e2c5117b044678cc22255351b7fdca6c535425..a7850f7679bde6ef610d24279401f131e8aabe47 100644
--- a/pkg/kernel/test/closures/suite.dart
+++ b/pkg/kernel/test/closures/suite.dart
@@ -15,8 +15,6 @@ import 'package:kernel/analyzer/loader.dart'
import 'package:kernel/target/targets.dart' show Target, TargetFlags, getTarget;
-import 'package:kernel/repository.dart' show Repository;
-
import 'kernel_chain.dart'
show MatchExpectation, Print, ReadDill, SanityCheck, WriteDill;
@@ -70,7 +68,7 @@ class TestContext extends ChainContext {
];
Future<DartLoader> createLoader() async {
- Repository repository = new Repository();
+ Program repository = new Program();
return new DartLoader(repository, options, await loadPackagesFile(packages),
dartSdk: dartSdk);
}
@@ -144,7 +142,8 @@ class Kernel extends Step<TestDescription, Program, TestContext> {
"vm", new TargetFlags(strongMode: testContext.options.strongMode));
String path = description.file.path;
Uri uri = Uri.base.resolve(path);
- Program program = loader.loadProgram(uri, target: target);
+ loader.loadProgram(uri, target: target);
+ var program = loader.program;
for (var error in loader.errors) {
return fail(program, "$error");
}
« no previous file with comments | « pkg/kernel/test/closures/kernel_chain.dart ('k') | pkg/kernel/test/frontend_bench.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698