Index: pkg/analyzer/lib/src/error/codes.dart |
diff --git a/pkg/analyzer/lib/src/error/codes.dart b/pkg/analyzer/lib/src/error/codes.dart |
index 227ef736980364649aea885478729dc7099fe5f9..06d6ae3d7af7a926896acd173100560f907773d6 100644 |
--- a/pkg/analyzer/lib/src/error/codes.dart |
+++ b/pkg/analyzer/lib/src/error/codes.dart |
@@ -2204,6 +2204,19 @@ class CompileTimeErrorCode extends ErrorCode { |
*/ |
class HintCode extends ErrorCode { |
/** |
+ * When an abstract supertype member is references with `super` as its target, |
+ * it cannot be overridden, so it is always a runtime error. |
+ * |
+ * Parameters: |
+ * 0: the display name for the kind of the referenced element |
+ * 1: the name of the referenced element |
+ */ |
+ static const HintCode ABSTRACT_SUPER_MEMBER_REFERENCE = const HintCode( |
+ 'ABSTRACT_SUPER_MEMBER_REFERENCE', |
+ "The {0} '{1}' is always abstract in the supertype.", |
+ null); |
+ |
+ /** |
* This hint is generated anywhere where the |
* [StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE] would have been generated, |
* if we used propagated information for the warnings. |