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

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

Issue 8585004: Support correct factory syntax in the VM as decribed in the spec. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assert.h" 9 #include "vm/assert.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 const TypeArguments& type_arguments, 1667 const TypeArguments& type_arguments,
1668 const Function& constructor, 1668 const Function& constructor,
1669 ArgumentListNode* arguments) 1669 ArgumentListNode* arguments)
1670 : AstNode(token_index), 1670 : AstNode(token_index),
1671 type_arguments_(type_arguments), 1671 type_arguments_(type_arguments),
1672 constructor_(constructor), 1672 constructor_(constructor),
1673 arguments_(arguments) { 1673 arguments_(arguments) {
1674 ASSERT(type_arguments_.IsZoneHandle()); 1674 ASSERT(type_arguments_.IsZoneHandle());
1675 ASSERT(constructor_.IsZoneHandle()); 1675 ASSERT(constructor_.IsZoneHandle());
1676 ASSERT(arguments_ != NULL); 1676 ASSERT(arguments_ != NULL);
1677 ASSERT(type_arguments_.IsNull() ||
1678 (type_arguments_.Length() ==
1679 Class::Handle(constructor_.owner()).NumTypeArguments()));
1680 } 1677 }
1681 1678
1682 const TypeArguments& type_arguments() const { return type_arguments_; } 1679 const TypeArguments& type_arguments() const { return type_arguments_; }
1683 const Function& constructor() const { return constructor_; } 1680 const Function& constructor() const { return constructor_; }
1684 ArgumentListNode* arguments() const { return arguments_; } 1681 ArgumentListNode* arguments() const { return arguments_; }
1685 1682
1686 virtual void VisitChildren(AstNodeVisitor* visitor) const { 1683 virtual void VisitChildren(AstNodeVisitor* visitor) const {
1687 arguments()->Visit(visitor); 1684 arguments()->Visit(visitor);
1688 } 1685 }
1689 1686
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1882 const LocalVariable& context_var_; 1879 const LocalVariable& context_var_;
1883 1880
1884 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1881 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1885 }; 1882 };
1886 1883
1887 } // namespace dart 1884 } // namespace dart
1888 1885
1889 #undef DECLARE_COMMON_NODE_FUNCTIONS 1886 #undef DECLARE_COMMON_NODE_FUNCTIONS
1890 1887
1891 #endif // VM_AST_H_ 1888 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/class_finalizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698