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

Issue 18670003: Remove support for conflicting constructors. (Closed)

Created:
7 years, 5 months ago by Johnni Winther
Modified:
7 years, 5 months ago
Reviewers:
karlklose, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove support for conflicting constructors. This removes the support for constructors with the same name as members. For instance: class Foo { Foo.bar(); static bar() {} } R=ahe@google.com Committed: https://code.google.com/p/dart/source/detail?r=24914

Patch Set 1 #

Total comments: 9

Patch Set 2 : Rebased #

Patch Set 3 : Updated cf. comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -202 lines) Patch
M sdk/lib/_internal/compiler/implementation/closure.dart View 1 2 1 chunk +11 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart View 1 chunk +1 line, -8 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/elements.dart View 1 2 1 chunk +14 lines, -13 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/elements/modelx.dart View 2 chunks +2 lines, -11 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/enqueue.dart View 1 chunk +0 lines, -9 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart View 1 1 chunk +5 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_backend/namer.dart View 2 chunks +9 lines, -9 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart View 1 6 chunks +1 line, -24 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart View 1 2 chunks +2 lines, -8 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors/mirrors_util.dart View 1 1 chunk +0 lines, -3 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 4 chunks +3 lines, -44 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/scanner/class_element_parser.dart View 2 chunks +7 lines, -9 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/typechecker.dart View 1 1 chunk +1 line, -4 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 1 chunk +0 lines, -6 lines 0 comments Download
M tests/co19/co19-dart2js.status View 2 chunks +0 lines, -6 lines 0 comments Download
M tests/compiler/dart2js/deprecated_features_test.dart View 2 chunks +2 lines, -10 lines 0 comments Download
M tests/compiler/dart2js/find_my_name_test.dart View 1 chunk +3 lines, -1 line 0 comments Download
M tests/compiler/dart2js/mirrors_test.dart View 11 chunks +11 lines, -19 lines 0 comments Download
M tests/compiler/dart2js/patch_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/simple_inferrer_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/language/language.status View 1 1 chunk +0 lines, -3 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +0 lines, -3 lines 0 comments Download
M tests/utils/dummy_compiler_test.dart View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Johnni Winther
7 years, 5 months ago (2013-07-04 11:49:42 UTC) #1
Johnni Winther
Ping
7 years, 5 months ago (2013-07-11 09:49:10 UTC) #2
ahe
Hi Johnni, Could you provide an example of what you're removing support for? Cheers, Peter
7 years, 5 months ago (2013-07-11 09:50:10 UTC) #3
Johnni Winther
On 2013/07/11 09:50:10, ahe wrote: > Hi Johnni, > > Could you provide an example ...
7 years, 5 months ago (2013-07-11 09:56:34 UTC) #4
ahe
AWESOME! LGTM https://codereview.chromium.org/18670003/diff/1/sdk/lib/_internal/compiler/implementation/closure.dart File sdk/lib/_internal/compiler/implementation/closure.dart (right): https://codereview.chromium.org/18670003/diff/1/sdk/lib/_internal/compiler/implementation/closure.dart#newcode678 sdk/lib/_internal/compiler/implementation/closure.dart:678: Elements.reconstructConstructorName(enclosingElement)); I suspect we could simplify this. ...
7 years, 5 months ago (2013-07-11 10:09:41 UTC) #5
Johnni Winther
Committed patchset #3 manually as r24914 (presubmit successful).
7 years, 5 months ago (2013-07-11 13:05:52 UTC) #6
Johnni Winther
https://codereview.chromium.org/18670003/diff/1/sdk/lib/_internal/compiler/implementation/closure.dart File sdk/lib/_internal/compiler/implementation/closure.dart (right): https://codereview.chromium.org/18670003/diff/1/sdk/lib/_internal/compiler/implementation/closure.dart#newcode678 sdk/lib/_internal/compiler/implementation/closure.dart:678: Elements.reconstructConstructorName(enclosingElement)); On 2013/07/11 10:09:42, ahe wrote: > I suspect ...
7 years, 5 months ago (2013-07-11 13:09:18 UTC) #7
ahe
7 years, 5 months ago (2013-07-11 13:51:03 UTC) #8
Message was sent while issue was closed.
Johhni, this is good news.  In theory, reflection should not require the
reconstructConstructorName variants, but I guess in practice there are some
vestiges.  I'll see if I can get them removed.

Powered by Google App Engine
This is Rietveld 408576698