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

Unified Diff: pkg/front_end/lib/src/fasta/parser/identifier_context.dart

Issue 2948383002: Remove peeking from parseTypedef and parseClassOrNamedMixinApplication. (Closed)
Patch Set: Addressed comments and then some. 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/fasta/ast_builder.dart ('k') | pkg/front_end/lib/src/fasta/parser/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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._(
« no previous file with comments | « pkg/analyzer/lib/src/fasta/ast_builder.dart ('k') | pkg/front_end/lib/src/fasta/parser/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698