Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1095)

Unified Diff: pkg/compiler/lib/src/tree/nodes.dart

Issue 1768143003: Use specific messages for const constructor with body. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..cad13ba2d21a6d5bf09b167b8a1544b02f4d60ff 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;

Powered by Google App Engine
This is Rietveld 408576698