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

Unified Diff: runtime/vm/ast.h

Issue 26703002: Final variables induce a setter that throws NSME (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 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
===================================================================
--- runtime/vm/ast.h (revision 28404)
+++ runtime/vm/ast.h (working copy)
@@ -1115,6 +1115,10 @@
virtual AstNode* MakeAssignmentNode(AstNode* rhs);
+ virtual bool IsPotentiallyConst() const {
+ return field_.is_const();
+ }
+
virtual const Instance* EvalConstExpr() const {
ASSERT(field_.is_static());
return field_.is_const() ? &Instance::ZoneHandle(field_.value()) : NULL;
« 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