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

Issue 12210010: Give correct warnings/errors on type expressions. (Closed)

Created:
7 years, 10 months ago by Johnni Winther
Modified:
7 years, 4 months ago
Reviewers:
ahe, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Give correct warnings/errors on type expressions. BUG=http://dartbug.com/5029

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebased #

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -89 lines) Patch
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 18 chunks +101 lines, -82 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 2 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Johnni Winther
7 years, 10 months ago (2013-02-05 08:32:19 UTC) #1
ahe
I think I understand what is going on, but I need to more carefully study ...
7 years, 10 months ago (2013-02-05 08:39:52 UTC) #2
Johnni Winther
https://codereview.chromium.org/12210010/diff/1/tests/co19/co19-dart2js.status File tests/co19/co19-dart2js.status (right): https://codereview.chromium.org/12210010/diff/1/tests/co19/co19-dart2js.status#newcode113 tests/co19/co19-dart2js.status:113: Language/12_Statements/10_Try_A03_t01: Crash # Issue 8325 On 2013/02/05 08:39:52, ahe ...
7 years, 10 months ago (2013-02-05 08:46:12 UTC) #3
ahe
On 2013/02/05 08:46:12, Johnni Winther wrote: > https://codereview.chromium.org/12210010/diff/1/tests/co19/co19-dart2js.status > File tests/co19/co19-dart2js.status (right): > > https://codereview.chromium.org/12210010/diff/1/tests/co19/co19-dart2js.status#newcode113 ...
7 years, 10 months ago (2013-02-05 08:58:55 UTC) #4
Johnni Winther
On 2013/02/05 08:58:55, ahe wrote: > On 2013/02/05 08:46:12, Johnni Winther wrote: > > https://codereview.chromium.org/12210010/diff/1/tests/co19/co19-dart2js.status ...
7 years, 10 months ago (2013-02-05 09:02:20 UTC) #5
ahe
On 2013/02/05 09:02:20, Johnni Winther wrote: > Yes, the fix is probably easy, but I ...
7 years, 10 months ago (2013-02-05 09:06:16 UTC) #6
ahe
7 years, 10 months ago (2013-02-05 11:26:28 UTC) #7
I have written a rather long explanation of why you shouldn't change for loops
to for-in in CL 12087134.

Otherwise, LGTM

https://codereview.chromium.org/12210010/diff/1/sdk/lib/_internal/compiler/im...
File sdk/lib/_internal/compiler/implementation/resolution/members.dart (right):

https://codereview.chromium.org/12210010/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/resolution/members.dart:1350:
this.isTypeExpression = true;
I don't think it is safe to call resolveTypeExpression from
resolveTypeAnnotation and vice versa. I cannot convince myself that is good. So
it would ease my mind if you could store the old value and restore it after the
call.

But no need to use try/finally.

https://codereview.chromium.org/12210010/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/resolution/members.dart:1387: bool
hasTypeArgumentMismatch = resolveTypeArguments(
The old name was funnier ;-)

https://codereview.chromium.org/12210010/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/resolution/members.dart:1487: for
(Node typeArgument in node.typeArguments.nodes) {
Please avoid for-in.

https://codereview.chromium.org/12210010/diff/1/sdk/lib/_internal/compiler/im...
sdk/lib/_internal/compiler/implementation/resolution/members.dart:3074: for
(TypeAnnotation interface in interfaces.nodes){
Please avoid for-in.

Powered by Google App Engine
This is Rietveld 408576698