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

Issue 1181153003: Add `.type` to the transformed InstanceMirror. (Closed)

Created:
5 years, 6 months ago by sigurdm
Modified:
5 years, 6 months ago
Reviewers:
eernst
CC:
eernst+reviews_google.com, reviews_dartlang.org
Base URL:
https://github.com/dart-lang/reflectable.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add `.type` to the transformed InstanceMirror. Also add `.qualifiedName` to the transformed ClassMirror. BUG= R=eernst@google.com Committed: https://github.com/dart-lang/reflectable/commit/2cbaea2584b2114b6c68f839102dc80bc9acd2f5

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Clarify comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -4 lines) Patch
M reflectable/lib/src/transformer_implementation.dart View 1 3 chunks +11 lines, -3 lines 0 comments Download
M test_reflectable/test/reflect_type_test.dart View 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
sigurdm
5 years, 6 months ago (2015-06-12 10:52:39 UTC) #3
eernst
lgtm https://codereview.chromium.org/1181153003/diff/20001/reflectable/lib/src/transformer_implementation.dart File reflectable/lib/src/transformer_implementation.dart (right): https://codereview.chromium.org/1181153003/diff/20001/reflectable/lib/src/transformer_implementation.dart#newcode769 reflectable/lib/src/transformer_implementation.dart:769: // library-mirrors. Doesn't the qualified name _always_ include ...
5 years, 6 months ago (2015-06-18 10:15:11 UTC) #4
sigurdm
https://codereview.chromium.org/1181153003/diff/20001/reflectable/lib/src/transformer_implementation.dart File reflectable/lib/src/transformer_implementation.dart (right): https://codereview.chromium.org/1181153003/diff/20001/reflectable/lib/src/transformer_implementation.dart#newcode769 reflectable/lib/src/transformer_implementation.dart:769: // library-mirrors. On 2015/06/18 10:15:11, eernst wrote: > Doesn't ...
5 years, 6 months ago (2015-06-18 10:43:40 UTC) #5
sigurdm
Committed patchset #2 (id:40001) manually as 2cbaea2584b2114b6c68f839102dc80bc9acd2f5 (presubmit successful).
5 years, 6 months ago (2015-06-18 10:44:36 UTC) #6
eernst
5 years, 6 months ago (2015-06-18 12:07:22 UTC) #7
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/1181153003/diff/20001/reflectable/lib/src/tra...
File reflectable/lib/src/transformer_implementation.dart (right):

https://codereview.chromium.org/1181153003/diff/20001/reflectable/lib/src/tra...
reflectable/lib/src/transformer_implementation.dart:769: // library-mirrors.
On 2015/06/18 10:43:40, sigurdm wrote:
> On 2015/06/18 10:15:11, eernst wrote:
> > Doesn't the qualified name _always_ include the library name? However, it
> seems
> > to be a problem that libraries don't have global names: The URI is not good
> > because it contains lots of chars that are not appropriate in identifiers,
> there
> > is no guarantee that we have a 'library' directive in any given library, and
> > prefixes used as "the name of a library" may differ in different importing
> > libraries (and the qualified name seems to be a global concept, so giving
the
> > qualified name as seen from one point of view only may surprise users).
> > 
> > Maybe this problem can simply be pushed along to the analyzer folks, because
> we
> > could use their `qualifiedName`, and then all the problems, if any, could be
> > handled at the same time?
> 
> What I meant was, that an alternative implementation would say:
> owner.qualifiedName + "." + simpleName and save space. Tried to clarify.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698