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

Unified Diff: pkg/analyzer/lib/src/dart/error/lint_codes.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/analysis/driver.dart ('k') | pkg/analyzer/lib/src/lint/registry.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/error/lint_codes.dart
diff --git a/pkg/analyzer/lib/src/dart/error/lint_codes.dart b/pkg/analyzer/lib/src/dart/error/lint_codes.dart
index 0fd6824796bfc385113bf58c6e4cb05960ef7bc2..9faaef6c5d1879938cc95c95aa20a030553ff3eb 100644
--- a/pkg/analyzer/lib/src/dart/error/lint_codes.dart
+++ b/pkg/analyzer/lib/src/dart/error/lint_codes.dart
@@ -22,4 +22,11 @@ class LintCode extends ErrorCode {
@override
ErrorType get type => ErrorType.LINT;
+
+ /**
+ * Overridden so that [LintCode] and its subclasses share the same uniqueName
+ * pattern (we know how to identify a lint even if we don't know the specific
+ * subclass the lint's code is defined in.
+ */
+ String get uniqueName => "LintCode.$name";
}
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | pkg/analyzer/lib/src/lint/registry.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698