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

Unified Diff: runtime/vm/ast.h

Issue 958243003: Fix async machinery (issue 22445 and possibly others to be triaged later). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | « no previous file | runtime/vm/ast_transformer.h » ('j') | runtime/vm/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 44105)
+++ runtime/vm/ast.h (working copy)
@@ -159,8 +159,18 @@
class AwaitNode : public AstNode {
public:
- AwaitNode(intptr_t token_pos, AstNode* expr)
- : AstNode(token_pos), expr_(expr) { }
+ AwaitNode(intptr_t token_pos,
+ AstNode* expr,
+ LocalScope* try_scope,
+ int16_t try_index,
+ LocalScope* outer_try_scope,
+ intptr_t outer_try_index)
+ : AstNode(token_pos),
+ expr_(expr),
+ try_scope_(try_scope),
+ try_index_(try_index),
+ outer_try_scope_(outer_try_scope),
+ outer_try_index_(outer_try_index) { }
void VisitChildren(AstNodeVisitor* visitor) const {
expr_->Visit(visitor);
@@ -167,11 +177,19 @@
}
AstNode* expr() const { return expr_; }
+ LocalScope* try_scope() const { return try_scope_; }
+ int16_t try_index() const { return try_index_; }
+ LocalScope* outer_try_scope() const { return outer_try_scope_; }
+ int16_t outer_try_index() const { return outer_try_index_; }
DECLARE_COMMON_NODE_FUNCTIONS(AwaitNode);
private:
AstNode* expr_;
+ LocalScope* try_scope_;
+ int16_t try_index_;
+ LocalScope* outer_try_scope_;
+ int16_t outer_try_index_;
DISALLOW_COPY_AND_ASSIGN(AwaitNode);
};
« no previous file with comments | « no previous file | runtime/vm/ast_transformer.h » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698