| Index: pkg/analyzer/test/parse_compilation_unit_test.dart
|
| diff --git a/pkg/analyzer/test/parse_compilation_unit_test.dart b/pkg/analyzer/test/parse_compilation_unit_test.dart
|
| index 756c2274d3f6018191d199b1e1dd34f4df729f46..c84b9553b360451de933c6c862e48129e0c29f6a 100644
|
| --- a/pkg/analyzer/test/parse_compilation_unit_test.dart
|
| +++ b/pkg/analyzer/test/parse_compilation_unit_test.dart
|
| @@ -32,4 +32,10 @@ void main() {
|
| error.toString().contains("Error in <unknown source>: Expected to find ';'");
|
| })));
|
| });
|
| +
|
| + test("allows you to specify whether or not to parse function bodies", () {
|
| + var unit = parseCompilationUnit(
|
| + "void main() => print('Hello, world!');", parseFunctionBodies: false);
|
| + expect(unit.toString(), equals("void main() ;"));
|
| + });
|
| }
|
|
|