Index: pkg/front_end/lib/src/fasta/parser/identifier_context.dart |
diff --git a/pkg/front_end/lib/src/fasta/parser/identifier_context.dart b/pkg/front_end/lib/src/fasta/parser/identifier_context.dart |
index 5908d9285d4823531609f01626fdf93a3f872272..a19c1ad27dbd69d6b7227d345b29a19020452030 100644 |
--- a/pkg/front_end/lib/src/fasta/parser/identifier_context.dart |
+++ b/pkg/front_end/lib/src/fasta/parser/identifier_context.dart |
@@ -95,17 +95,13 @@ class IdentifierContext { |
static const enumValueDeclaration = |
const IdentifierContext._('enumValueDeclaration', inDeclaration: true); |
- /// Identifier is the name being declared by a named mixin declaration (e.g. |
- /// `Foo` in `class Foo = X with Y;`). |
- static const namedMixinDeclaration = const IdentifierContext._( |
- 'namedMixinDeclaration', |
+ /// Identifier is the name being declared by a class declaration or a named |
+ /// mixin application, for example, `Foo` in `class Foo = X with Y;`. |
+ static const classOrNamedMixinDeclaration = const IdentifierContext._( |
+ 'classOrNamedMixinDeclaration', |
inDeclaration: true, |
isBuiltInIdentifierAllowed: false); |
- /// Identifier is the name being declared by a class declaration. |
- static const classDeclaration = const IdentifierContext._('classDeclaration', |
- inDeclaration: true, isBuiltInIdentifierAllowed: false); |
- |
/// Identifier is the name of a type variable being declared (e.g. `Foo` in |
/// `class C<Foo extends num> {}`). |
static const typeVariableDeclaration = const IdentifierContext._( |