From 1d174010cc84c63bc06ff67b4f66ecb40653174a Mon Sep 17 00:00:00 2001 From: danrubel Date: Wed, 13 Dec 2017 15:07:05 +0000 Subject: [PATCH] fasta parser parseMethod cleanup Change-Id: I67527349274f7422ca5ce33263c66fb8e88e23f9 Reviewed-on: https://dart-review.googlesource.com/28980 Reviewed-by: Brian Wilkerson Commit-Queue: Dan Rubel --- pkg/front_end/lib/src/fasta/parser/parser.dart | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart index b9139920af9..d31cf005790 100644 --- a/pkg/front_end/lib/src/fasta/parser/parser.dart +++ b/pkg/front_end/lib/src/fasta/parser/parser.dart @@ -3632,12 +3632,10 @@ class Parser { } } else { token = ensureIdentifier(beforeName, IdentifierContext.methodDeclaration); + token = parseQualifiedRestOpt( + token, IdentifierContext.methodDeclarationContinuation); } - // TODO(brianwilkerson): Move the next statement inside the else above - // because operator names can't be qualified. - token = parseQualifiedRestOpt( - token, IdentifierContext.methodDeclarationContinuation); bool isGetter = false; if (getOrSet == null) { token = parseTypeVariablesOpt(token);