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

Issue 14168003: Implement implicit constructors in mixin applications. (Closed)

Created:
7 years, 8 months ago by karlklose
Modified:
7 years, 7 months ago
Reviewers:
ngeoffray, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Implement implicit constructors in mixin applications. R=kasperl@google.com Committed: https://code.google.com/p/dart/source/detail?r=22367

Patch Set 1 #

Patch Set 2 : Remove debug code and rebase #

Total comments: 30

Patch Set 3 : Use class SynthesizedConstructorElementX. #

Patch Set 4 : Rebase and add the tests again. #

Patch Set 5 : Address comments. #

Total comments: 23

Patch Set 6 : Address comments. #

Patch Set 7 : #

Total comments: 2

Patch Set 8 : Fix bug. #

Patch Set 9 : Fix an assert. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -36 lines) Patch
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/backend.dart View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/elements.dart View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/modelx.dart View 1 2 3 4 5 6 7 8 chunks +76 lines, -11 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/enqueue.dart View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/backend.dart View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -13 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 3 4 5 6 5 chunks +50 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/resolution.dart View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 2 3 4 5 3 chunks +11 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
A tests/language/mixin_super_constructor2_test.dart View 3 1 chunk +39 lines, -0 lines 0 comments Download
A tests/language/mixin_super_constructor_default_test.dart View 3 1 chunk +31 lines, -0 lines 0 comments Download
A + tests/language/mixin_super_constructor_multiple_test.dart View 1 2 3 4 5 6 1 chunk +10 lines, -6 lines 0 comments Download
A tests/language/mixin_super_constructor_named_test.dart View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A tests/language/mixin_super_constructor_positionals_test.dart View 3 1 chunk +38 lines, -0 lines 0 comments Download
A tests/language/mixin_super_constructor_test.dart View 3 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
karlklose
7 years, 8 months ago (2013-04-15 11:57:33 UTC) #1
ahe
DBC https://codereview.chromium.org/14168003/diff/2001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): https://codereview.chromium.org/14168003/diff/2001/sdk/lib/_internal/compiler/implementation/compiler.dart#newcode908 sdk/lib/_internal/compiler/implementation/compiler.dart:908: assert(element is! ForwardingConstructorElement); Can you call a method ...
7 years, 8 months ago (2013-04-15 13:36:46 UTC) #2
kasperl
I can't see the tests in the patch set?
7 years, 8 months ago (2013-04-24 06:01:41 UTC) #3
karlklose
I forgot to add them after resetting the branch. Here they are!
7 years, 8 months ago (2013-04-24 08:45:02 UTC) #4
karlklose
PTAL. https://codereview.chromium.org/14168003/diff/2001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): https://codereview.chromium.org/14168003/diff/2001/sdk/lib/_internal/compiler/implementation/compiler.dart#newcode908 sdk/lib/_internal/compiler/implementation/compiler.dart:908: assert(element is! ForwardingConstructorElement); I changed the code to ...
7 years, 8 months ago (2013-04-25 11:25:53 UTC) #5
kasperl
Almost there, but I think there may be some issues with forwarding constructors forwarding to ...
7 years, 8 months ago (2013-04-25 12:13:12 UTC) #6
karlklose
Thanks for the review! https://codereview.chromium.org/14168003/diff/18001/sdk/lib/_internal/compiler/implementation/elements/elements.dart File sdk/lib/_internal/compiler/implementation/elements/elements.dart (right): https://codereview.chromium.org/14168003/diff/18001/sdk/lib/_internal/compiler/implementation/elements/elements.dart#newcode251 sdk/lib/_internal/compiler/implementation/elements/elements.dart:251: FunctionElement get targetConstructor; On 2013/04/25 ...
7 years, 7 months ago (2013-05-03 09:35:45 UTC) #7
kasperl
LGTM with one comment: https://codereview.chromium.org/14168003/diff/31001/sdk/lib/_internal/compiler/implementation/elements/modelx.dart File sdk/lib/_internal/compiler/implementation/elements/modelx.dart (right): https://codereview.chromium.org/14168003/diff/31001/sdk/lib/_internal/compiler/implementation/elements/modelx.dart#newcode1952 sdk/lib/_internal/compiler/implementation/elements/modelx.dart:1952: addToScope(constructor, compiler); How does this ...
7 years, 7 months ago (2013-05-03 10:22:14 UTC) #8
karlklose
Thanks, Kasper. https://codereview.chromium.org/14168003/diff/31001/sdk/lib/_internal/compiler/implementation/elements/modelx.dart File sdk/lib/_internal/compiler/implementation/elements/modelx.dart (right): https://codereview.chromium.org/14168003/diff/31001/sdk/lib/_internal/compiler/implementation/elements/modelx.dart#newcode1952 sdk/lib/_internal/compiler/implementation/elements/modelx.dart:1952: addToScope(constructor, compiler); It does not, fixed. It ...
7 years, 7 months ago (2013-05-03 11:50:50 UTC) #9
karlklose
7 years, 7 months ago (2013-05-03 12:15:52 UTC) #10
Message was sent while issue was closed.
Committed patchset #9 manually as r22367 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698