mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
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:
parent
941b3b25c3
commit
1d174010cc
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue