Index: runtime/vm/ast.h |
=================================================================== |
--- runtime/vm/ast.h (revision 348) |
+++ runtime/vm/ast.h (working copy) |
@@ -366,6 +366,8 @@ |
ClosureNode(intptr_t token_index, const Function& function, LocalScope* scope) |
: AstNode(token_index), function_(function), scope_(scope) { |
ASSERT(function.IsZoneHandle()); |
+ ASSERT(function.IsClosureFunction()); |
+ ASSERT(!function.IsImplicitClosureFunction()); |
ASSERT(scope_ != NULL); |
} |
@@ -389,6 +391,8 @@ |
StaticImplicitClosureNode(intptr_t token_index, const Function& function) |
: AstNode(token_index), function_(function) { |
ASSERT(function.IsZoneHandle()); |
+ ASSERT(function.IsImplicitClosureFunction()); |
+ ASSERT(function.is_static()); |
} |
const Function& function() const { return function_; } |
@@ -411,6 +415,8 @@ |
AstNode* receiver) |
: AstNode(token_index), function_(function), receiver_(receiver) { |
ASSERT(function.IsZoneHandle()); |
+ ASSERT(function.IsImplicitClosureFunction()); |
+ ASSERT(!function.is_static()); |
} |
const Function& function() const { return function_; } |