| Index: pkg/compiler/lib/src/tree/nodes.dart
|
| diff --git a/pkg/compiler/lib/src/tree/nodes.dart b/pkg/compiler/lib/src/tree/nodes.dart
|
| index e95497b9c927740a37699a1427bf9265b61bffc6..6eb072163acb07219144fc405b3fa72b20607d95 100644
|
| --- a/pkg/compiler/lib/src/tree/nodes.dart
|
| +++ b/pkg/compiler/lib/src/tree/nodes.dart
|
| @@ -840,9 +840,9 @@ class FunctionExpression extends Expression with StoredTreeElementMixin {
|
| if (body != null) body.accept(visitor);
|
| }
|
|
|
| - bool hasBody() => body.asEmptyStatement() == null;
|
| + bool get hasBody => body.asEmptyStatement() == null;
|
|
|
| - bool hasEmptyBody() {
|
| + bool get hasEmptyBody {
|
| Block block = body.asBlock();
|
| if (block == null) return false;
|
| return block.statements.isEmpty;
|
| @@ -2476,8 +2476,8 @@ class ErrorNode
|
| get initializers => null;
|
| get getOrSet => null;
|
| get isRedirectingFactory => false;
|
| - bool hasBody() => false;
|
| - bool hasEmptyBody() => false;
|
| + bool get hasBody => false;
|
| + bool get hasEmptyBody => false;
|
|
|
| // VariableDefinitions.
|
| get metadata => null;
|
|
|