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

Unified Diff: lib/src/bootloader.dart

Issue 1414013002: Rogue bad constant fix. (Closed) Base URL: https://github.com/dart-lang/analyzer_cli.git@master
Patch Set: Created 5 years, 2 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: lib/src/bootloader.dart
diff --git a/lib/src/bootloader.dart b/lib/src/bootloader.dart
index a4110120570ff452d61a6c47be69ee8cf1c08929..726004cb3206003e7956ef189d6553396230ea7c 100644
--- a/lib/src/bootloader.dart
+++ b/lib/src/bootloader.dart
@@ -10,6 +10,7 @@ import 'dart:isolate';
import 'package:analyzer/file_system/physical_file_system.dart';
import 'package:analyzer/source/analysis_options_provider.dart';
import 'package:analyzer/src/context/context.dart';
+import 'package:analyzer/src/generated/engine.dart' as engine;
import 'package:analyzer/src/plugin/plugin_configuration.dart';
import 'package:analyzer_cli/src/driver.dart';
import 'package:analyzer_cli/src/options.dart';
@@ -127,9 +128,8 @@ class BootLoader {
void _processAnalysisOptions(CommandLineOptions options) {
// Determine options file path.
- var filePath = options.analysisOptionsFile != null
- ? options.analysisOptionsFile
- : AnalysisOptionsProvider.ANALYSIS_OPTIONS_NAME;
+ var filePath = options.analysisOptionsFile ??
+ engine.AnalysisEngine.ANALYSIS_OPTIONS_FILE;
try {
var file = PhysicalResourceProvider.INSTANCE.getFile(filePath);
AnalysisOptionsProvider analysisOptionsProvider =
« 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