fasta parser parseMethod cleanup

Change-Id: I67527349274f7422ca5ce33263c66fb8e88e23f9
Reviewed-on: https://dart-review.googlesource.com/28980
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Dan Rubel <danrubel@google.com>
This commit is contained in:
danrubel 2017-12-13 15:07:05 +00:00 committed by commit-bot@chromium.org
parent 941b3b25c3
commit 1d174010cc

View file

@ -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);