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

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

Issue 23482004: Evaluates arguments before throwing a NoSuchMethodError in constructor (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | « no previous file | runtime/vm/flow_graph_builder.h » ('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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 } 207 }
208 208
209 void VisitChildren(AstNodeVisitor* visitor) const; 209 void VisitChildren(AstNodeVisitor* visitor) const;
210 210
211 void Add(AstNode* node) { 211 void Add(AstNode* node) {
212 nodes_.Add(node); 212 nodes_.Add(node);
213 } 213 }
214 intptr_t length() const { return nodes_.length(); } 214 intptr_t length() const { return nodes_.length(); }
215 AstNode* NodeAt(intptr_t index) const { return nodes_[index]; } 215 AstNode* NodeAt(intptr_t index) const { return nodes_[index]; }
216 void SetNodeAt(intptr_t index, AstNode* node) { nodes_[index] = node; } 216 void SetNodeAt(intptr_t index, AstNode* node) { nodes_[index] = node; }
217 const Array& names() const { 217 const Array& names() const { return names_; }
218 return names_;
219 }
220 void set_names(const Array& names) { 218 void set_names(const Array& names) {
221 names_ = names.raw(); 219 names_ = names.raw();
222 } 220 }
221 const GrowableArray<AstNode*>& nodes() const { return nodes_; }
223 222
224 DECLARE_COMMON_NODE_FUNCTIONS(ArgumentListNode); 223 DECLARE_COMMON_NODE_FUNCTIONS(ArgumentListNode);
225 224
226 private: 225 private:
227 GrowableArray<AstNode*> nodes_; 226 GrowableArray<AstNode*> nodes_;
228 Array& names_; 227 Array& names_;
229 228
230 DISALLOW_COPY_AND_ASSIGN(ArgumentListNode); 229 DISALLOW_COPY_AND_ASSIGN(ArgumentListNode);
231 }; 230 };
232 231
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 const intptr_t try_index_; 1752 const intptr_t try_index_;
1754 1753
1755 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1754 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1756 }; 1755 };
1757 1756
1758 } // namespace dart 1757 } // namespace dart
1759 1758
1760 #undef DECLARE_COMMON_NODE_FUNCTIONS 1759 #undef DECLARE_COMMON_NODE_FUNCTIONS
1761 1760
1762 #endif // VM_AST_H_ 1761 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698