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

Unified Diff: pkg/front_end/lib/src/incremental_kernel_generator_impl.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/front_end/lib/src/fasta/testing/suite.dart ('k') | pkg/front_end/test/fasta/compile.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
diff --git a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
index efd4ddd002330151ea1545936fbde1c0a366c775..49e3d8577a9c0a1c77f9fcc93caa3144a0eb2268 100644
--- a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
+++ b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
@@ -17,7 +17,6 @@ import 'package:front_end/src/base/source.dart';
import 'package:front_end/src/incremental_resolved_ast_generator_impl.dart';
import 'package:kernel/analyzer/loader.dart';
import 'package:kernel/kernel.dart' hide Source;
-import 'package:kernel/repository.dart';
dynamic unimplemented() {
// TODO(paulberry): get rid of this.
@@ -72,11 +71,11 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator {
var analysisOptions = new _AnalysisOptionsProxy(strongMode);
var context =
new _AnalysisContextProxy(deltaLibraries.newState, analysisOptions);
- var repository = new Repository();
+ var program = new Program();
var loader =
- new DartLoader(repository, kernelOptions, packages, context: context);
+ new DartLoader(program, kernelOptions, packages, context: context);
loader.loadLibrary(uri);
- kernels[uri] = new Program(repository.libraries);
+ kernels[uri] = program;
// TODO(paulberry) rework watch invocation to eliminate race condition,
// include part source files, and prevent watch from being a bottleneck
if (watch != null) await watch(uri, true);
« no previous file with comments | « pkg/front_end/lib/src/fasta/testing/suite.dart ('k') | pkg/front_end/test/fasta/compile.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698