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

Unified Diff: pkg/front_end/lib/kernel_generator.dart

Issue 2656903007: Clean up - make changes in kernel_generator strong clean. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/kernel_generator.dart
diff --git a/pkg/front_end/lib/kernel_generator.dart b/pkg/front_end/lib/kernel_generator.dart
index 0d20051b35734a5cee880325c70bcedd452ee421..0ae2fb3c232c3972cb42593340d31d6670f90884 100644
--- a/pkg/front_end/lib/kernel_generator.dart
+++ b/pkg/front_end/lib/kernel_generator.dart
@@ -10,6 +10,7 @@ import 'compiler_options.dart';
import 'dart:async';
import 'package:analyzer/src/generated/source.dart' show SourceKind;
+import 'package:analyzer/src/generated/engine.dart' show AnalysisOptionsImpl;
import 'package:analyzer/src/summary/package_bundle_reader.dart'
show InSummarySource;
// TODO(sigmund): move loader logic under front_end/lib/src/kernel/
@@ -144,7 +145,7 @@ Future<DartLoader> _createLoader(CompilerOptions options,
discoveryPath: entry?.path);
var loader = new DartLoader(
repository ?? new Repository(), kernelOptions, packages);
- var patchPaths = {};
+ var patchPaths = <String, List<String>>{};
// TODO(sigmund,paulberry): use ProcessedOptions so that we can resolve the
// URIs correctly even if sdkRoot is inferred and not specified explicitly.
@@ -154,7 +155,8 @@ Future<DartLoader> _createLoader(CompilerOptions options,
options.targetPatches.forEach((uri, patches) {
patchPaths['$uri'] = patches.map(resolve).toList();
});
- loader.context.analysisOptions.patchPaths = patchPaths;
+ AnalysisOptionsImpl analysisOptions = loader.context.analysisOptions;
+ analysisOptions.patchPaths = patchPaths;
return loader;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698