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

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

Issue 10918203: Stop treating finals as const (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/parser.cc » ('j') | runtime/vm/parser.cc » ('J')
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 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 } 1068 }
1069 1069
1070 const Field& field() const { return field_; } 1070 const Field& field() const { return field_; }
1071 1071
1072 virtual void VisitChildren(AstNodeVisitor* visitor) const { } 1072 virtual void VisitChildren(AstNodeVisitor* visitor) const { }
1073 1073
1074 virtual AstNode* MakeAssignmentNode(AstNode* rhs); 1074 virtual AstNode* MakeAssignmentNode(AstNode* rhs);
1075 1075
1076 virtual const Instance* EvalConstExpr() const { 1076 virtual const Instance* EvalConstExpr() const {
1077 ASSERT(field_.is_static()); 1077 ASSERT(field_.is_static());
1078 return field_.is_final() ? &Instance::ZoneHandle(field_.value()) : NULL; 1078 return field_.is_const() ? &Instance::ZoneHandle(field_.value()) : NULL;
1079 } 1079 }
1080 1080
1081 DECLARE_COMMON_NODE_FUNCTIONS(LoadStaticFieldNode); 1081 DECLARE_COMMON_NODE_FUNCTIONS(LoadStaticFieldNode);
1082 1082
1083 private: 1083 private:
1084 const Field& field_; 1084 const Field& field_;
1085 1085
1086 DISALLOW_IMPLICIT_CONSTRUCTORS(LoadStaticFieldNode); 1086 DISALLOW_IMPLICIT_CONSTRUCTORS(LoadStaticFieldNode);
1087 }; 1087 };
1088 1088
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 const LocalVariable& context_var_; 1687 const LocalVariable& context_var_;
1688 1688
1689 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode); 1689 DISALLOW_IMPLICIT_CONSTRUCTORS(InlinedFinallyNode);
1690 }; 1690 };
1691 1691
1692 } // namespace dart 1692 } // namespace dart
1693 1693
1694 #undef DECLARE_COMMON_NODE_FUNCTIONS 1694 #undef DECLARE_COMMON_NODE_FUNCTIONS
1695 1695
1696 #endif // VM_AST_H_ 1696 #endif // VM_AST_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698