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

Issue 11571058: DeclarationMirror extended with metadata. (Closed)

Created:
8 years ago by Johnni Winther
Modified:
7 years, 11 months ago
CC:
reviews_dartlang.org, turnidge, Andrei Mouravski
Visibility:
Public.

Description

DeclarationMirror extended with metadata. InstanceMirror is used for metadata values. InstanceMirrors for null, bool, num, and String constants have a reflectee. Special InstanceMirror classes added for constant lists and maps and type constants. DartdocComment class added to encode comments as metadata. This is not implemented yet. Committed: https://code.google.com/p/dart/source/detail?r=16630

Patch Set 1 #

Total comments: 51

Patch Set 2 : Updated cf. comments. #

Total comments: 4

Patch Set 3 : Rebased #

Patch Set 4 : Use Compiler.internalError #

Patch Set 5 : Updated cf. comments #

Total comments: 2

Patch Set 6 : Updated cf. comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -2 lines) Patch
M sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart View 1 2 3 4 5 8 chunks +234 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart View 1 2 3 4 3 chunks +98 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/mirrors_helper.dart View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/mirrors_test.dart View 1 2 3 4 4 chunks +154 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Johnni Winther
8 years ago (2012-12-19 13:52:21 UTC) #1
Andrei Mouravski
This is awesome! https://codereview.chromium.org/11571058/diff/1/tests/compiler/dart2js/mirrors_helper.dart File tests/compiler/dart2js/mirrors_helper.dart (right): https://codereview.chromium.org/11571058/diff/1/tests/compiler/dart2js/mirrors_helper.dart#newcode26 tests/compiler/dart2js/mirrors_helper.dart:26: class Foo { For the sake ...
8 years ago (2012-12-19 14:42:02 UTC) #2
ahe
LGTM https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart File sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart (right): https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart#newcode133 sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:133: // TODO(johnniwinther): Introduce a special ClassMirror for the ...
8 years ago (2012-12-19 15:44:03 UTC) #3
Andrei Mouravski
Personal clarification comment. https://codereview.chromium.org/11571058/diff/1/tests/compiler/dart2js/mirrors_helper.dart File tests/compiler/dart2js/mirrors_helper.dart (right): https://codereview.chromium.org/11571058/diff/1/tests/compiler/dart2js/mirrors_helper.dart#newcode26 tests/compiler/dart2js/mirrors_helper.dart:26: class Foo { On 2012/12/19 15:44:03, ...
8 years ago (2012-12-19 16:31:19 UTC) #4
ahe
https://codereview.chromium.org/11571058/diff/1/tests/compiler/dart2js/mirrors_helper.dart File tests/compiler/dart2js/mirrors_helper.dart (right): https://codereview.chromium.org/11571058/diff/1/tests/compiler/dart2js/mirrors_helper.dart#newcode26 tests/compiler/dart2js/mirrors_helper.dart:26: class Foo { On 2012/12/19 16:31:19, Andrei Mouravski wrote: ...
8 years ago (2012-12-19 18:11:22 UTC) #5
Johnni Winther
PTAL https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart File sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart (right): https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart#newcode133 sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:133: // TODO(johnniwinther): Introduce a special ClassMirror for the ...
8 years ago (2012-12-20 11:30:34 UTC) #6
Johnni Winther
PTAL
7 years, 11 months ago (2013-01-02 14:48:12 UTC) #7
ahe
Forgot to mail this out. Taking another look right now. https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart File sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart (right): https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart#newcode1621 ...
7 years, 11 months ago (2013-01-03 12:03:05 UTC) #8
ahe
Still LGTM! https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart File sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart (right): https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart#newcode1736 sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:1736: int index = _list.indexOf(key); On 2012/12/20 11:30:35, ...
7 years, 11 months ago (2013-01-03 12:23:01 UTC) #9
Johnni Winther
https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart File sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart (right): https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart#newcode1621 sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:1621: final Dart2JsMirrorSystem mirrors; On 2013/01/03 12:03:05, ahe wrote: > ...
7 years, 11 months ago (2013-01-04 09:14:39 UTC) #10
ahe
Just debating style, you have an LGTM already :-) https://codereview.chromium.org/11571058/diff/20002/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart File sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart (right): https://codereview.chromium.org/11571058/diff/20002/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart#newcode1726 sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:1726: ...
7 years, 11 months ago (2013-01-04 09:20:44 UTC) #11
Johnni Winther
https://codereview.chromium.org/11571058/diff/20002/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart File sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart (right): https://codereview.chromium.org/11571058/diff/20002/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart#newcode1726 sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:1726: List<String> _getKeyList() { On 2013/01/04 09:20:44, ahe wrote: > ...
7 years, 11 months ago (2013-01-04 09:52:06 UTC) #12
gbracha
7 years, 11 months ago (2013-01-04 19:34:30 UTC) #13
Message was sent while issue was closed.
https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/im...
File sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
(right):

https://codereview.chromium.org/11571058/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart:1621:
final Dart2JsMirrorSystem mirrors;
This is interesting collateral damage from the change from interfaces to
classes. When the type was an interface, final foo was just a different way of
defining a getter, and implied nothing about storage. Converting to a class
changes that. So the interface should just define a getter.

Powered by Google App Engine
This is Rietveld 408576698