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

Issue 23490019: API changes to make TypedefMirror a direct descendant of TypeMirror. (Closed)

Created:
7 years, 3 months ago by rmacnak
Modified:
7 years, 3 months ago
Reviewers:
ahe, gbracha
CC:
reviews_dartlang.org, Michael Lippautz (Google)
Visibility:
Public.

Description

API changes to make TypedefMirror a direct descendant of TypeMirror. BUG=http://dartbug.com/11616

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -7 lines) Patch
M sdk/lib/mirrors/mirrors.dart View 5 chunks +25 lines, -7 lines 5 comments Download

Messages

Total messages: 5 (0 generated)
rmacnak
7 years, 3 months ago (2013-08-29 17:12:06 UTC) #1
gbracha
lgtm
7 years, 3 months ago (2013-08-31 06:14:12 UTC) #2
rmacnak
Ping
7 years, 3 months ago (2013-09-05 18:55:09 UTC) #3
ahe
LGTM. I added some extra comments to the CL, but that is to open the ...
7 years, 3 months ago (2013-09-05 20:48:25 UTC) #4
rmacnak
7 years, 3 months ago (2013-09-05 22:43:29 UTC) #5
https://chromiumcodereview.appspot.com/23490019/diff/1/sdk/lib/mirrors/mirror...
File sdk/lib/mirrors/mirrors.dart (right):

https://chromiumcodereview.appspot.com/23490019/diff/1/sdk/lib/mirrors/mirror...
sdk/lib/mirrors/mirrors.dart:649: Map<Symbol, TypeMirror> get types;
On 2013/09/05 20:48:26, ahe wrote:
> I assume this goes away again after the "mirrors overhaul" CL.
> 
> PS: This is where I got stuck the first time I looked at this CL ;-)

Right, this would be covered by LibraryMirror.declarations.

https://chromiumcodereview.appspot.com/23490019/diff/1/sdk/lib/mirrors/mirror...
sdk/lib/mirrors/mirrors.dart:922: MethodMirror get callMethod;
On 2013/09/05 20:48:26, ahe wrote:
> This method makes little sense to me. Do you know what it is for?

The methods of closures are special. reflect(()=>null).type.methods[#call]
doesn't work. I think there are plans to specify that function application is
just sugar for invoking call, then this will be unnecessary.

Powered by Google App Engine
This is Rietveld 408576698