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

Issue 11229002: Handle type variable in static member. (Closed)

Created:
8 years, 2 months ago by Johnni Winther
Modified:
8 years, 1 month ago
Reviewers:
ahe, Karl Klose, karlklose
CC:
reviews_dartlang.org, aam-me
Visibility:
Public.

Description

Handle type variable in static member. Committed: https://code.google.com/p/dart/source/detail?r=14175

Patch Set 1 #

Total comments: 11

Patch Set 2 : Updated cf. comments. #

Patch Set 3 : Status updated #

Total comments: 3

Patch Set 4 : Test update removed. #

Total comments: 4

Patch Set 5 : Error => warning. #

Total comments: 2

Patch Set 6 : TypeKind.toString() added #

Patch Set 7 : Status updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -19 lines) Patch
M lib/compiler/implementation/elements/elements.dart View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download
M lib/compiler/implementation/resolution/members.dart View 1 2 3 4 5 6 4 chunks +24 lines, -14 lines 0 comments Download
M lib/compiler/implementation/typechecker.dart View 1 2 3 4 5 7 chunks +32 lines, -0 lines 0 comments Download
M lib/compiler/implementation/warnings.dart View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 4 5 6 4 chunks +10 lines, -3 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Johnni Winther
8 years, 2 months ago (2012-10-19 11:33:21 UTC) #1
ahe
LGTM, if you deal with the is check. https://codereview.chromium.org/11229002/diff/1/lib/compiler/implementation/resolution/members.dart File lib/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/11229002/diff/1/lib/compiler/implementation/resolution/members.dart#newcode1341 lib/compiler/implementation/resolution/members.dart:1341: if ...
8 years, 2 months ago (2012-10-19 11:58:04 UTC) #2
karlklose
LGTM. https://codereview.chromium.org/11229002/diff/1/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://codereview.chromium.org/11229002/diff/1/lib/compiler/implementation/elements/elements.dart#newcode164 lib/compiler/implementation/elements/elements.dart:164: bool isInStaticMember() { I find it confusing, that ...
8 years, 2 months ago (2012-10-19 12:05:38 UTC) #3
ahe
https://codereview.chromium.org/11229002/diff/1/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://codereview.chromium.org/11229002/diff/1/lib/compiler/implementation/elements/elements.dart#newcode164 lib/compiler/implementation/elements/elements.dart:164: bool isInStaticMember() { On 2012/10/19 12:05:38, karlklose wrote: > ...
8 years, 2 months ago (2012-10-19 12:22:40 UTC) #4
Johnni Winther
TypeKind added for DartType. PTAL https://codereview.chromium.org/11229002/diff/1/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://codereview.chromium.org/11229002/diff/1/lib/compiler/implementation/elements/elements.dart#newcode164 lib/compiler/implementation/elements/elements.dart:164: bool isInStaticMember() { On ...
8 years, 2 months ago (2012-10-22 09:03:32 UTC) #5
Johnni Winther
PTAL
8 years, 2 months ago (2012-10-22 12:18:56 UTC) #6
Johnni Winther
Ping.
8 years, 2 months ago (2012-10-23 09:36:58 UTC) #7
ahe
I think you should land the tests changes in a separate CL. https://codereview.chromium.org/11229002/diff/7001/tests/language/language_dart2js.status File tests/language/language_dart2js.status ...
8 years, 2 months ago (2012-10-23 11:34:58 UTC) #8
Johnni Winther
Test update moved to another CL. PTAL.
8 years, 2 months ago (2012-10-23 12:09:13 UTC) #9
ahe
LGTM if you address my comment about language_dart2js.status. https://codereview.chromium.org/11229002/diff/12002/lib/compiler/implementation/resolution/members.dart File lib/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/11229002/diff/12002/lib/compiler/implementation/resolution/members.dart#newcode1962 lib/compiler/implementation/resolution/members.dart:1962: void ...
8 years, 2 months ago (2012-10-23 16:17:13 UTC) #10
Johnni Winther
https://codereview.chromium.org/11229002/diff/12002/lib/compiler/implementation/resolution/members.dart File lib/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/11229002/diff/12002/lib/compiler/implementation/resolution/members.dart#newcode1962 lib/compiler/implementation/resolution/members.dart:1962: void checkAndUseType(TypeAnnotation annotation, DartType type) { On 2012/10/23 16:17:13, ...
8 years, 2 months ago (2012-10-24 14:28:35 UTC) #11
Johnni Winther
PTAL
8 years, 1 month ago (2012-10-26 08:12:19 UTC) #12
ahe
LGTM https://codereview.chromium.org/11229002/diff/16001/lib/compiler/implementation/typechecker.dart File lib/compiler/implementation/typechecker.dart (right): https://codereview.chromium.org/11229002/diff/16001/lib/compiler/implementation/typechecker.dart#newcode37 lib/compiler/implementation/typechecker.dart:37: static const TypeKind VOID = const TypeKind('void'); How ...
8 years, 1 month ago (2012-10-26 08:18:40 UTC) #13
Johnni Winther
8 years, 1 month ago (2012-10-29 09:20:14 UTC) #14
https://codereview.chromium.org/11229002/diff/16001/lib/compiler/implementati...
File lib/compiler/implementation/typechecker.dart (right):

https://codereview.chromium.org/11229002/diff/16001/lib/compiler/implementati...
lib/compiler/implementation/typechecker.dart:37: static const TypeKind VOID =
const TypeKind('void');
On 2012/10/26 08:18:40, ahe wrote:
> How about adding a "toString" mehod?

Done.

Powered by Google App Engine
This is Rietveld 408576698