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

Side by Side Diff: pkg/analyzer/lib/plugin/options.dart

Issue 1506963002: Options processing API update (#25126). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/CHANGELOG.md ('k') | pkg/analyzer/lib/src/plugin/plugin_configuration.dart » ('j') | 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 /// Support for client code that wants to consume options contributed to the 5 /// Support for client code that wants to consume options contributed to the
6 /// analysis options file. 6 /// analysis options file.
7 library analyzer.plugin.options; 7 library analyzer.plugin.options;
8 8
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/error.dart'; 10 import 'package:analyzer/src/generated/error.dart';
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 /// Called when an options file is processed. 62 /// Called when an options file is processed.
63 /// 63 ///
64 /// The options file is processed on analyzer initialization and 64 /// The options file is processed on analyzer initialization and
65 /// subsequently when the file is changed on disk. In the event of a 65 /// subsequently when the file is changed on disk. In the event of a
66 /// change notification, note that the notification simply indicates 66 /// change notification, note that the notification simply indicates
67 /// a change on disk. Content in specific option scopes may or may not 67 /// a change on disk. Content in specific option scopes may or may not
68 /// be different. It is up to the implementer to check whether specific 68 /// be different. It is up to the implementer to check whether specific
69 /// options have changed and to handle those changes appropriately. In 69 /// options have changed and to handle those changes appropriately. In
70 /// addition to the [options] map, the associated analysis [context] is 70 /// addition to the [options] map, the associated analysis [context] is
71 /// provided as well to allow for context-specific configuration. 71 /// provided as well to allow for context-specific configuration.
72 void optionsProcessed(AnalysisContext context, Map<String, YamlNode> options); 72 void optionsProcessed(AnalysisContext context, Map<String, Object> options);
73 } 73 }
74 74
75 /// Validates options as defined in an analysis options file. 75 /// Validates options as defined in an analysis options file.
76 /// 76 ///
77 /// Clients may implement this class when implementing plugins. 77 /// Clients may implement this class when implementing plugins.
78 /// 78 ///
79 /// See [OptionsProcessor] for a description of the options file format. 79 /// See [OptionsProcessor] for a description of the options file format.
80 /// 80 ///
81 abstract class OptionsValidator { 81 abstract class OptionsValidator {
82 /// Validate [options], reporting any errors to the given [reporter]. 82 /// Validate [options], reporting any errors to the given [reporter].
83 void validate(ErrorReporter reporter, Map<String, YamlNode> options); 83 void validate(ErrorReporter reporter, Map<String, YamlNode> options);
84 } 84 }
OLDNEW
« no previous file with comments | « pkg/analyzer/CHANGELOG.md ('k') | pkg/analyzer/lib/src/plugin/plugin_configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698