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

Issue 9695057: Allow "const ... native" constructors and "const factory ... native" constructors in dartc (Closed)

Created:
8 years, 9 months ago by zundel
Modified:
8 years, 9 months ago
Reviewers:
scheglov
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Allow "const ... native" constructors and "const factory ... native" constructors in dartc These are used in the VM and frog core library implementations. Committed: https://code.google.com/p/dart/source/detail?r=5428

Patch Set 1 : # #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -9 lines) Patch
M compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java View 4 chunks +15 lines, -8 lines 2 comments Download
M frog/lib/date_implementation.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
zundel
Apparently the VM team has had a request to add this to the spec and ...
8 years, 9 months ago (2012-03-13 18:44:28 UTC) #1
scheglov
LGTM https://chromiumcodereview.appspot.com/9695057/diff/7/compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java File compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java (right): https://chromiumcodereview.appspot.com/9695057/diff/7/compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java#newcode479 compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java:479: if (dartBlock != null && !(dartBlock instanceof DartNativeBlock)) ...
8 years, 9 months ago (2012-03-13 19:07:09 UTC) #2
zundel
8 years, 9 months ago (2012-03-13 19:21:09 UTC) #3
https://chromiumcodereview.appspot.com/9695057/diff/7/compiler/java/com/googl...
File compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java (right):

https://chromiumcodereview.appspot.com/9695057/diff/7/compiler/java/com/googl...
compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java:479: if
(dartBlock != null && !(dartBlock instanceof DartNativeBlock)) {
On 2012/03/13 19:07:09, scheglov wrote:
> Just formally repeat here offline discussion.
> What if "dartBlock" is null?
> We will not show error in this case.

Done.

Powered by Google App Engine
This is Rietveld 408576698