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

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: Updated cf. comments. 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/dart_messages/lib/generated/shared_messages.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/dart_messages/lib/generated/shared_messages.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698