OLD | NEW |
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 stats.print(outSink); | 238 stats.print(outSink); |
239 } | 239 } |
240 | 240 |
241 return allResult; | 241 return allResult; |
242 } | 242 } |
243 | 243 |
244 /// Perform analysis in build mode according to the given [options]. | 244 /// Perform analysis in build mode according to the given [options]. |
245 ErrorSeverity _buildModeAnalyze(CommandLineOptions options) { | 245 ErrorSeverity _buildModeAnalyze(CommandLineOptions options) { |
246 return _analyzeAllTag.makeCurrentWhile(() { | 246 return _analyzeAllTag.makeCurrentWhile(() { |
247 if (options.buildModePersistentWorker) { | 247 if (options.buildModePersistentWorker) { |
248 new WorkerLoop.std(dartSdkPath: options.dartSdkPath).run(); | 248 new AnalyzerWorkerLoop.std(dartSdkPath: options.dartSdkPath).run(); |
249 } else { | 249 } else { |
250 return new BuildMode(options, stats).analyze(); | 250 return new BuildMode(options, stats).analyze(); |
251 } | 251 } |
252 }); | 252 }); |
253 } | 253 } |
254 | 254 |
255 /// Determine whether the context created during a previous call to | 255 /// Determine whether the context created during a previous call to |
256 /// [_analyzeAll] can be re-used in order to analyze using [options]. | 256 /// [_analyzeAll] can be re-used in order to analyze using [options]. |
257 bool _canContextBeReused(CommandLineOptions options) { | 257 bool _canContextBeReused(CommandLineOptions options) { |
258 // TODO(paulberry): add a command-line option that disables context re-use. | 258 // TODO(paulberry): add a command-line option that disables context re-use. |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 for (var package in packages) { | 783 for (var package in packages) { |
784 var packageName = path.basename(package.path); | 784 var packageName = path.basename(package.path); |
785 var realPath = package.resolveSymbolicLinksSync(); | 785 var realPath = package.resolveSymbolicLinksSync(); |
786 result[packageName] = [ | 786 result[packageName] = [ |
787 PhysicalResourceProvider.INSTANCE.getFolder(realPath) | 787 PhysicalResourceProvider.INSTANCE.getFolder(realPath) |
788 ]; | 788 ]; |
789 } | 789 } |
790 return result; | 790 return result; |
791 } | 791 } |
792 } | 792 } |
OLD | NEW |