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

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

Issue 2821943003: Fix an issue with restoring certain lint issues from summary files. (Closed)
Patch Set: use const instead of final Created 3 years, 8 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/dart/error/lint_codes.dart ('k') | no next file » | 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 172767ba598e2f68d70fb65bc8c080cfab55045b..241108baf384df689d3a45ea74d253b75fcfc5c6 100644
--- a/pkg/analyzer/lib/src/lint/registry.dart
+++ b/pkg/analyzer/lib/src/lint/registry.dart
@@ -45,6 +45,11 @@ 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:
« no previous file with comments | « pkg/analyzer/lib/src/dart/error/lint_codes.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698