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

Side by Side Diff: pkg/analyzer/lib/src/task/options.dart

Issue 2342733002: Break up another large file (Closed)
Patch Set: fixed floating comment Created 4 years, 3 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
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.src.task.options; 5 library analyzer.src.task.options;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/analyzer.dart'; 9 import 'package:analyzer/analyzer.dart';
10 import 'package:analyzer/plugin/options.dart'; 10 import 'package:analyzer/plugin/options.dart';
(...skipping 11 matching lines...) Expand all
22 import 'package:source_span/source_span.dart'; 22 import 'package:source_span/source_span.dart';
23 import 'package:yaml/yaml.dart'; 23 import 'package:yaml/yaml.dart';
24 24
25 /// The errors produced while parsing an analysis options file. 25 /// The errors produced while parsing an analysis options file.
26 /// 26 ///
27 /// The list will be empty if there were no errors, but will not be `null`. 27 /// The list will be empty if there were no errors, but will not be `null`.
28 final ListResultDescriptor<AnalysisError> ANALYSIS_OPTIONS_ERRORS = 28 final ListResultDescriptor<AnalysisError> ANALYSIS_OPTIONS_ERRORS =
29 new ListResultDescriptor<AnalysisError>( 29 new ListResultDescriptor<AnalysisError>(
30 'ANALYSIS_OPTIONS_ERRORS', AnalysisError.NO_ERRORS); 30 'ANALYSIS_OPTIONS_ERRORS', AnalysisError.NO_ERRORS);
31 31
32 /**
33 * The descriptor used to associate error processors with analysis contexts in
34 * configuration data.
35 */
36 final ListResultDescriptor<ErrorProcessor> CONFIGURED_ERROR_PROCESSORS =
37 new ListResultDescriptor<ErrorProcessor>(
38 'configured.errors', const <ErrorProcessor>[]);
39
32 final _OptionsProcessor _processor = new _OptionsProcessor(); 40 final _OptionsProcessor _processor = new _OptionsProcessor();
33 41
34 void applyToAnalysisOptions( 42 void applyToAnalysisOptions(
35 AnalysisOptionsImpl options, Map<String, Object> optionMap) { 43 AnalysisOptionsImpl options, Map<String, Object> optionMap) {
36 _processor.applyToAnalysisOptions(options, optionMap); 44 _processor.applyToAnalysisOptions(options, optionMap);
37 } 45 }
38 46
39 /// Configure this [context] based on configuration details specified in 47 /// Configure this [context] based on configuration details specified in
40 /// the given [options]. If [options] is `null`, default values are applied. 48 /// the given [options]. If [options] is `null`, default values are applied.
41 void configureContextOptions( 49 void configureContextOptions(
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 } 622 }
615 }); 623 });
616 } else if (config is Map) { 624 } else if (config is Map) {
617 options.strongMode = true; 625 options.strongMode = true;
618 config.forEach((k, v) => _applyStrongModeOption(options, k, v)); 626 config.forEach((k, v) => _applyStrongModeOption(options, k, v));
619 } else { 627 } else {
620 options.strongMode = config is bool ? config : false; 628 options.strongMode = config is bool ? config : false;
621 } 629 }
622 } 630 }
623 } 631 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/html_work_manager.dart ('k') | pkg/analyzer/lib/src/task/options_work_manager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698