Remove unused IdentifierContext instance
Change-Id: Ib7f82b2d9a3d367f20bb5e9be7456ef8693bd69f
Reviewed-on: https://dart-review.googlesource.com/56042
Reviewed-by: Peter von der Ahé <ahe@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
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 e0fdaec..787bc90 100644
--- a/pkg/front_end/lib/src/fasta/parser/identifier_context.dart
+++ b/pkg/front_end/lib/src/fasta/parser/identifier_context.dart
@@ -145,15 +145,6 @@
static const operatorName =
const MethodDeclarationIdentifierContext.continuation();
- /// Identifier is the name being declared by a local function declaration that
- /// uses a "get" or "set" keyword.
- ///
- /// TODO(paulberry,ahe): Does this ever occur in valid Dart, or does it only
- /// occur as part of error recovery? If it's only as part of error recovery,
- /// perhaps we should just re-use localFunctionDeclaration.
- static const localAccessorDeclaration =
- const IdentifierContext('localAccessorDeclaration', inDeclaration: true);
-
/// Identifier is the start of the name being declared by a local function
/// declaration.
static const localFunctionDeclaration =
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart
index ea2c485..87c29d8 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -2031,8 +2031,6 @@
} else if (context == IdentifierContext.literalSymbol ||
context == IdentifierContext.literalSymbolContinuation) {
followingValues = ['.', ';'];
- } else if (context == IdentifierContext.localAccessorDeclaration) {
- followingValues = ['(', '{', '=>'];
} else {
return false;
}
@@ -2072,8 +2070,6 @@
List<String> initialKeywords;
if (context == IdentifierContext.labelDeclaration) {
initialKeywords = statementKeywords();
- } else if (context == IdentifierContext.localAccessorDeclaration) {
- initialKeywords = statementKeywords();
} else if (context ==
IdentifierContext.localFunctionDeclarationContinuation) {
initialKeywords = statementKeywords();