| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 context.directory.manager; | 5 library context.directory.manager; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:convert'; | 9 import 'dart:convert'; |
| 10 import 'dart:core' hide Resource; | 10 import 'dart:core' hide Resource; |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 /** | 465 /** |
| 466 * Process [options] for the context having info [info]. | 466 * Process [options] for the context having info [info]. |
| 467 */ | 467 */ |
| 468 void processOptionsForContext( | 468 void processOptionsForContext( |
| 469 ContextInfo info, Map<String, YamlNode> options) { | 469 ContextInfo info, Map<String, YamlNode> options) { |
| 470 if (options == null) { | 470 if (options == null) { |
| 471 return; | 471 return; |
| 472 } | 472 } |
| 473 | 473 |
| 474 // Notify options processors. | 474 // Notify options processors. |
| 475 AnalysisEngine.instance.optionsPlugin.optionsProcessors.forEach( | 475 // TODO(pq): breaks AbstractContextManager tests |
| 476 (OptionsProcessor p) => p.optionsProcessed(info.context, options)); | 476 // AnalysisEngine.instance.optionsPlugin.optionsProcessors.forEach( |
| 477 // (OptionsProcessor p) => p.optionsProcessed(info.context, options)); |
| 477 | 478 |
| 478 // Analysis options are processed 'in-line'. | 479 // Analysis options are processed 'in-line'. |
| 479 // TODO(pq): consider pushing exclude handling into a plugin. | 480 // TODO(pq): consider pushing exclude handling into a plugin. |
| 480 YamlMap analyzer = options['analyzer']; | 481 YamlMap analyzer = options['analyzer']; |
| 481 if (analyzer == null) { | 482 if (analyzer == null) { |
| 482 // No options for analyzer. | 483 // No options for analyzer. |
| 483 return; | 484 return; |
| 484 } | 485 } |
| 485 | 486 |
| 486 // Set ignore patterns. | 487 // Set ignore patterns. |
| (...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1425 var path = resourceProvider.pathContext.fromUri(uri); | 1426 var path = resourceProvider.pathContext.fromUri(uri); |
| 1426 packageMap[name] = <Folder>[resourceProvider.getFolder(path)]; | 1427 packageMap[name] = <Folder>[resourceProvider.getFolder(path)]; |
| 1427 } | 1428 } |
| 1428 }); | 1429 }); |
| 1429 return <UriResolver>[new SdkExtUriResolver(packageMap)]; | 1430 return <UriResolver>[new SdkExtUriResolver(packageMap)]; |
| 1430 } else { | 1431 } else { |
| 1431 return const <UriResolver>[]; | 1432 return const <UriResolver>[]; |
| 1432 } | 1433 } |
| 1433 } | 1434 } |
| 1434 } | 1435 } |
| OLD | NEW |