| 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.test.driver; | 5 library analyzer_cli.test.driver; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:analyzer/plugin/options.dart'; | 9 import 'package:analyzer/plugin/options.dart'; |
| 10 import 'package:analyzer/source/analysis_options_provider.dart'; | 10 import 'package:analyzer/source/analysis_options_provider.dart'; |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 // None | 511 // None |
| 512 } | 512 } |
| 513 | 513 |
| 514 @override | 514 @override |
| 515 void registerExtensions(RegisterExtension register) { | 515 void registerExtensions(RegisterExtension register) { |
| 516 register(OPTIONS_PROCESSOR_EXTENSION_POINT_ID, processor); | 516 register(OPTIONS_PROCESSOR_EXTENSION_POINT_ID, processor); |
| 517 } | 517 } |
| 518 } | 518 } |
| 519 | 519 |
| 520 class TestProcessor extends OptionsProcessor { | 520 class TestProcessor extends OptionsProcessor { |
| 521 Map<String, YamlNode> options; | 521 Map<String, Object> options; |
| 522 Exception exception; | 522 Exception exception; |
| 523 | 523 |
| 524 @override | 524 @override |
| 525 void onError(Exception exception) { | 525 void onError(Exception exception) { |
| 526 this.exception = exception; | 526 this.exception = exception; |
| 527 } | 527 } |
| 528 | 528 |
| 529 @override | 529 @override |
| 530 void optionsProcessed( | 530 void optionsProcessed(AnalysisContext context, Map<String, Object> options) { |
| 531 AnalysisContext context, Map<String, YamlNode> options) { | |
| 532 this.options = options; | 531 this.options = options; |
| 533 } | 532 } |
| 534 } | 533 } |
| 535 | 534 |
| 536 class TestSource implements Source { | 535 class TestSource implements Source { |
| 537 TestSource(); | 536 TestSource(); |
| 538 | 537 |
| 539 @override | 538 @override |
| 540 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); | 539 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); |
| 541 } | 540 } |
| OLD | NEW |