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

Side by Side Diff: runtime/vm/ast.h

Issue 1014273003: Make await for cancel the stream when breaking out of the loop (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/core_patch.dart ('k') | runtime/vm/ast_printer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_AST_H_ 5 #ifndef VM_AST_H_
6 #define VM_AST_H_ 6 #define VM_AST_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after
1849 SequenceNode* finally_block, 1849 SequenceNode* finally_block,
1850 intptr_t try_index) 1850 intptr_t try_index)
1851 : AstNode(token_pos), 1851 : AstNode(token_pos),
1852 try_block_(try_block), 1852 try_block_(try_block),
1853 context_var_(*context_var), 1853 context_var_(*context_var),
1854 catch_block_(catch_block), 1854 catch_block_(catch_block),
1855 finally_block_(finally_block), 1855 finally_block_(finally_block),
1856 try_index_(try_index) { 1856 try_index_(try_index) {
1857 ASSERT(try_block_ != NULL); 1857 ASSERT(try_block_ != NULL);
1858 ASSERT(context_var != NULL); 1858 ASSERT(context_var != NULL);
1859 ASSERT(catch_block_ != NULL || finally_block_ != NULL); 1859 ASSERT(catch_block_ != NULL);
1860 } 1860 }
1861 1861
1862 SequenceNode* try_block() const { return try_block_; } 1862 SequenceNode* try_block() const { return try_block_; }
1863 CatchClauseNode* catch_block() const { return catch_block_; } 1863 CatchClauseNode* catch_block() const { return catch_block_; }
1864 SequenceNode* finally_block() const { return finally_block_; } 1864 SequenceNode* finally_block() const { return finally_block_; }
1865 const LocalVariable& context_var() const { return context_var_; } 1865 const LocalVariable& context_var() const { return context_var_; }
1866 intptr_t try_index() const { return try_index_; } 1866 intptr_t try_index() const { return try_index_; }
1867 1867
1868 virtual void VisitChildren(AstNodeVisitor* visitor) const { 1868 virtual void VisitChildren(AstNodeVisitor* visitor) const {
1869 try_block_->Visit(visitor); 1869 try_block_->Visit(visitor);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
1945 const intptr_t try_index_; 1945 const intptr_t try_index_;
1946 1946
1947 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1947 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1948 }; 1948 };
1949 1949
1950 } // namespace dart 1950 } // namespace dart
1951 1951
1952 #undef DECLARE_COMMON_NODE_FUNCTIONS 1952 #undef DECLARE_COMMON_NODE_FUNCTIONS
1953 1953
1954 #endif // VM_AST_H_ 1954 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « runtime/lib/core_patch.dart ('k') | runtime/vm/ast_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698