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

Issue 1181413005: Implement newInstance in the transformer. (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

Implement newInstance in the transformer. I implement named and optional arguments by copying the code generating the default values. This is not perfect. This applies on top of https://codereview.chromium.org/1182083002 BUG= R=eernst@google.com Committed: https://github.com/dart-lang/reflectable/commit/4e682d506bd14c5ab5df3763639a717ba4ed0b75

Patch Set 1 : #

Total comments: 12

Patch Set 2 : rebase #

Patch Set 3 : Address review #

Total comments: 10

Patch Set 4 : Address review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -3 lines) Patch
M reflectable/lib/src/mirrors_unimpl.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M reflectable/lib/src/transformer_implementation.dart View 1 2 3 2 chunks +77 lines, -0 lines 0 comments Download
M test_reflectable/.status View 1 chunk +2 lines, -1 line 0 comments Download
M test_reflectable/pubspec.yaml View 1 1 chunk +2 lines, -0 lines 0 comments Download
A test_reflectable/test/new_instance_default_values_test.dart View 1 1 chunk +31 lines, -0 lines 0 comments Download
A test_reflectable/test/new_instance_test.dart View 1 2 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
sigurdm
5 years, 6 months ago (2015-06-16 12:58:00 UTC) #3
eernst
LGTM, along with a couple of remarks: It would be nice to get documentation for ...
5 years, 6 months ago (2015-06-18 13:35:41 UTC) #4
sigurdm
I am not doing everything you asked in the comments (as detailed in my responses), ...
5 years, 6 months ago (2015-06-19 07:50:54 UTC) #5
eernst
LGTM, with a couple of remarks about `newInstanceString`: Suggested small adjustment of terminology, and commented ...
5 years, 6 months ago (2015-06-19 09:22:21 UTC) #6
sigurdm
https://codereview.chromium.org/1181413005/diff/60001/reflectable/lib/src/transformer_implementation.dart File reflectable/lib/src/transformer_implementation.dart (right): https://codereview.chromium.org/1181413005/diff/60001/reflectable/lib/src/transformer_implementation.dart#newcode256 reflectable/lib/src/transformer_implementation.dart:256: int positionalCount = type.normalParameterTypes.length; On 2015/06/19 09:22:21, eernst wrote: ...
5 years, 6 months ago (2015-06-19 10:52:00 UTC) #7
sigurdm
5 years, 6 months ago (2015-06-19 10:52:17 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 (id:80001) manually as
4e682d506bd14c5ab5df3763639a717ba4ed0b75 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698