Index: compiler/java/com/google/dart/compiler/parser/DartParser.java |
=================================================================== |
--- compiler/java/com/google/dart/compiler/parser/DartParser.java (revision 1034) |
+++ compiler/java/com/google/dart/compiler/parser/DartParser.java (working copy) |
@@ -870,7 +870,7 @@ |
modifiers = modifiers.makeNative(); |
function = new DartFunction(formals, parseNativeBlock(modifiers), null); |
} else { |
- function = new DartFunction(formals, parseBlock(), null); |
+ function = new DartFunction(formals, parseFunctionStatementBody(true), null); |
} |
doneWithoutConsuming(function); |
return DartMethodDefinition.create(name, function, modifiers, null, typeParameters); |