| Index: dart/lib/compiler/implementation/scanner/listener.dart
|
| diff --git a/dart/lib/compiler/implementation/scanner/listener.dart b/dart/lib/compiler/implementation/scanner/listener.dart
|
| index c5297c9ba97ac64735932dc74862ad754b74a3f8..ae3453b7986bf1095902d3ae0a50fcf8c2f1d4ca 100644
|
| --- a/dart/lib/compiler/implementation/scanner/listener.dart
|
| +++ b/dart/lib/compiler/implementation/scanner/listener.dart
|
| @@ -1387,7 +1387,11 @@ class NodeListener extends ElementListener {
|
| }
|
|
|
| void endFunctionBody(int count, Token beginToken, Token endToken) {
|
| - pushNode(new Block(makeNodeList(count, beginToken, endToken, null)));
|
| + if (count == 0 && beginToken == null) {
|
| + pushNode(new EmptyStatement(endToken));
|
| + } else {
|
| + pushNode(new Block(makeNodeList(count, beginToken, endToken, null)));
|
| + }
|
| }
|
|
|
| void handleNoFunctionBody(Token token) {
|
|
|