| Index: lib/compiler/implementation/scanner/parser.dart
|
| diff --git a/lib/compiler/implementation/scanner/parser.dart b/lib/compiler/implementation/scanner/parser.dart
|
| index 7086d4466a407710e1b2137824252385deae3839..c70a676dda66737a11b3fe8d7c6aeb765db73c1f 100644
|
| --- a/lib/compiler/implementation/scanner/parser.dart
|
| +++ b/lib/compiler/implementation/scanner/parser.dart
|
| @@ -673,13 +673,19 @@ class Parser {
|
| listener.beginFunction(token);
|
| token = parseModifiers(token);
|
| if (getOrSet === token) token = token.next;
|
| - token = parseReturnTypeOpt(token);
|
| - if (getOrSet === token) token = token.next;
|
| - listener.beginFunctionName(token);
|
| if (optional('operator', token)) {
|
| + listener.handleNoType(token);
|
| + listener.beginFunctionName(token);
|
| token = parseOperatorName(token);
|
| } else {
|
| - token = parseIdentifier(token);
|
| + token = parseReturnTypeOpt(token);
|
| + if (getOrSet === token) token = token.next;
|
| + listener.beginFunctionName(token);
|
| + if (optional('operator', token)) {
|
| + token = parseOperatorName(token);
|
| + } else {
|
| + token = parseIdentifier(token);
|
| + }
|
| }
|
| token = parseQualifiedRestOpt(token);
|
| listener.endFunctionName(token);
|
|
|