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

Side by Side Diff: lib/src/driver.dart

Issue 1410413002: Options file name 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library analyzer_cli.src.driver; 5 library analyzer_cli.src.driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 10
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 fileSystem.File _getOptionsFile(CommandLineOptions options) { 446 fileSystem.File _getOptionsFile(CommandLineOptions options) {
447 fileSystem.File file; 447 fileSystem.File file;
448 String filePath = options.analysisOptionsFile; 448 String filePath = options.analysisOptionsFile;
449 if (filePath != null) { 449 if (filePath != null) {
450 file = PhysicalResourceProvider.INSTANCE.getFile(filePath); 450 file = PhysicalResourceProvider.INSTANCE.getFile(filePath);
451 if (!file.exists) { 451 if (!file.exists) {
452 printAndFail('Options file not found: $filePath', 452 printAndFail('Options file not found: $filePath',
453 exitCode: ErrorSeverity.ERROR.ordinal); 453 exitCode: ErrorSeverity.ERROR.ordinal);
454 } 454 }
455 } else { 455 } else {
456 filePath = AnalysisOptionsProvider.ANALYSIS_OPTIONS_NAME; 456 filePath = AnalysisEngine.ANALYSIS_OPTIONS_FILE;
457 file = PhysicalResourceProvider.INSTANCE.getFile(filePath); 457 file = PhysicalResourceProvider.INSTANCE.getFile(filePath);
458 } 458 }
459 return file; 459 return file;
460 } 460 }
461 461
462 Map<String, List<fileSystem.Folder>> _getPackageMap(Packages packages) { 462 Map<String, List<fileSystem.Folder>> _getPackageMap(Packages packages) {
463 if (packages == null) { 463 if (packages == null) {
464 return null; 464 return null;
465 } 465 }
466 466
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 for (var package in packages) { 631 for (var package in packages) {
632 var packageName = path.basename(package.path); 632 var packageName = path.basename(package.path);
633 var realPath = package.resolveSymbolicLinksSync(); 633 var realPath = package.resolveSymbolicLinksSync();
634 result[packageName] = [ 634 result[packageName] = [
635 PhysicalResourceProvider.INSTANCE.getFolder(realPath) 635 PhysicalResourceProvider.INSTANCE.getFolder(realPath)
636 ]; 636 ];
637 } 637 }
638 return result; 638 return result;
639 } 639 }
640 } 640 }
OLDNEW
« 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