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

Unified Diff: pkg/analyzer/lib/src/lint/registry.dart

Issue 2933753002: Run the sorter to reduce code churn (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/workspace.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/lint/registry.dart
diff --git a/pkg/analyzer/lib/src/lint/registry.dart b/pkg/analyzer/lib/src/lint/registry.dart
index 241108baf384df689d3a45ea74d253b75fcfc5c6..24b5e47697bb866b2a0d0eda0e2cc6cb29d34797 100644
--- a/pkg/analyzer/lib/src/lint/registry.dart
+++ b/pkg/analyzer/lib/src/lint/registry.dart
@@ -45,11 +45,6 @@ class Registry extends Object with IterableMixin<LintRule> {
LintRule operator [](String name) => _ruleMap[name];
/**
- * Return the lint rule with the given [name].
- */
- LintRule getRule(String name) => _ruleMap[name];
-
- /**
* Return a list of the lint rules explicitly enabled by the given [config].
*
* For example:
@@ -63,6 +58,11 @@ class Registry extends Object with IterableMixin<LintRule> {
.where((rule) => config.ruleConfigs.any((rc) => rc.enables(rule.name)));
/**
+ * Return the lint rule with the given [name].
+ */
+ LintRule getRule(String name) => _ruleMap[name];
+
+ /**
* Add the given lint [rule] to this registry.
*/
void register(LintRule rule) {
« no previous file with comments | « pkg/analyzer/lib/src/generated/workspace.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698