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

Unified Diff: runtime/vm/ast.h

Issue 63983005: Simplify the desugaring of catch clauses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporated final review comments. Created 7 years, 1 month 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/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
diff --git a/runtime/vm/ast.h b/runtime/vm/ast.h
index 378eb039e8ad74f3432a96eb11837f69dc60ff91..662e2ddb14fe7211a06274e4b8ac5fcaf499564f 100644
--- a/runtime/vm/ast.h
+++ b/runtime/vm/ast.h
@@ -1672,14 +1672,12 @@ class TryCatchNode : public AstNode {
public:
TryCatchNode(intptr_t token_pos,
SequenceNode* try_block,
- SourceLabel* end_catch_label,
const LocalVariable* context_var,
CatchClauseNode* catch_block,
SequenceNode* finally_block,
intptr_t try_index)
: AstNode(token_pos),
try_block_(try_block),
- end_catch_label_(end_catch_label),
context_var_(*context_var),
catch_block_(catch_block),
finally_block_(finally_block),
@@ -1687,11 +1685,9 @@ class TryCatchNode : public AstNode {
ASSERT(try_block_ != NULL);
ASSERT(context_var != NULL);
ASSERT(catch_block_ != NULL || finally_block_ != NULL);
- ASSERT(end_catch_label_ != NULL);
}
SequenceNode* try_block() const { return try_block_; }
- SourceLabel* end_catch_label() const { return end_catch_label_; }
CatchClauseNode* catch_block() const { return catch_block_; }
SequenceNode* finally_block() const { return finally_block_; }
const LocalVariable& context_var() const { return context_var_; }
@@ -1711,7 +1707,6 @@ class TryCatchNode : public AstNode {
private:
SequenceNode* try_block_;
- SourceLabel* end_catch_label_;
const LocalVariable& context_var_;
CatchClauseNode* catch_block_;
SequenceNode* finally_block_;
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698