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

Issue 26703002: Final variables induce a setter that throws NSME (Closed)

Created:
7 years, 2 months ago by hausner
Modified:
7 years, 2 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Final variables induce a setter that throws NSME Clean up handling of const and final variables. They induce a setter that throws a NSME, rather than a compile-time error. Delay the AST conversion of loading a const field into loading the literal value. The conversion is now done when we know that the load in on the right hand side of an expression. R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=28408

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -111 lines) Patch
M runtime/vm/ast.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 2 11 chunks +83 lines, -108 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/language.status View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
hausner
7 years, 2 months ago (2013-10-09 15:57:30 UTC) #1
srdjan
lgtm https://codereview.chromium.org/26703002/diff/6001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/26703002/diff/6001/runtime/vm/parser.cc#newcode3369 runtime/vm/parser.cc:3369: // Static const and static final fields must ...
7 years, 2 months ago (2013-10-09 17:07:39 UTC) #2
hausner
https://codereview.chromium.org/26703002/diff/6001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/26703002/diff/6001/runtime/vm/parser.cc#newcode3369 runtime/vm/parser.cc:3369: // Static const and static final fields must have ...
7 years, 2 months ago (2013-10-09 17:15:19 UTC) #3
hausner
7 years, 2 months ago (2013-10-09 17:33:15 UTC) #4
Message was sent while issue was closed.
Committed patchset #4 manually as r28408.

Powered by Google App Engine
This is Rietveld 408576698