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

Side by Side Diff: pkg/analyzer_cli/test/driver_test.dart

Issue 2196393003: Mark analyzer_cli as strong-mode clean (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « pkg/analyzer_cli/lib/src/options.dart ('k') | 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.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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer_cli/lib/src/options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698