| Index: lib/compiler/implementation/scanner/listener.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/scanner/listener.dart (revision 7365)
|
| +++ lib/compiler/implementation/scanner/listener.dart (working copy)
|
| @@ -1459,9 +1459,14 @@
|
|
|
| FunctionExpression parseNode(DiagnosticListener listener) {
|
| if (cachedNode != null) return cachedNode;
|
| - cachedNode = parse(listener,
|
| - getCompilationUnit(),
|
| - (p) => p.parseFunction(beginToken, getOrSet));
|
| + FunctionExpression parseFunction(Parser p) {
|
| + if (isMember()) {
|
| + return p.parseMember(beginToken);
|
| + } else {
|
| + return p.parseFunction(beginToken, getOrSet);
|
| + }
|
| + }
|
| + cachedNode = parse(listener, getCompilationUnit(), parseFunction);
|
| return cachedNode;
|
| }
|
|
|
|
|