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

Issue 9600059: Resolve constructors with type arguments. (Closed)

Created:
8 years, 9 months ago by ahe
Modified:
8 years, 9 months ago
Reviewers:
karlklose, ngeoffray
CC:
reviews_dartlang.org, compiler-dev_dartlang.org
Visibility:
Public.

Description

Resolve constructors with type arguments. Committed: https://code.google.com/p/dart/source/detail?r=5131

Patch Set 1 #

Total comments: 5

Patch Set 2 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -57 lines) Patch
M dart/frog/leg/elements/elements.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M dart/frog/leg/resolver.dart View 1 3 chunks +82 lines, -38 lines 0 comments Download
M dart/frog/leg/scanner/parser.dart View 1 chunk +1 line, -2 lines 0 comments Download
M dart/tests/co19/co19-leg.status View 1 3 chunks +1 line, -4 lines 0 comments Download
M dart/tests/corelib/corelib-leg.status View 1 2 chunks +3 lines, -3 lines 0 comments Download
M dart/tests/language/language-leg.status View 1 7 chunks +10 lines, -9 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ahe
8 years, 9 months ago (2012-03-06 21:02:49 UTC) #1
ngeoffray
LGTM https://chromiumcodereview.appspot.com/9600059/diff/1/dart/frog/leg/resolver.dart File dart/frog/leg/resolver.dart (right): https://chromiumcodereview.appspot.com/9600059/diff/1/dart/frog/leg/resolver.dart#newcode1417 dart/frog/leg/resolver.dart:1417: compiler.resolver.toResolve.add(cls); You don't need to add it to ...
8 years, 9 months ago (2012-03-07 11:32:06 UTC) #2
ahe
Hi Nicolas, Thank you for taking a look. Am I right? Cheers, Peter https://chromiumcodereview.appspot.com/9600059/diff/1/dart/frog/leg/resolver.dart File ...
8 years, 9 months ago (2012-03-07 11:34:31 UTC) #3
ngeoffray
https://chromiumcodereview.appspot.com/9600059/diff/1/dart/frog/leg/resolver.dart File dart/frog/leg/resolver.dart (right): https://chromiumcodereview.appspot.com/9600059/diff/1/dart/frog/leg/resolver.dart#newcode1417 dart/frog/leg/resolver.dart:1417: compiler.resolver.toResolve.add(cls); On 2012/03/07 11:34:32, ahe wrote: > On 2012/03/07 ...
8 years, 9 months ago (2012-03-07 11:37:41 UTC) #4
karlklose
LGTM.
8 years, 9 months ago (2012-03-07 12:45:35 UTC) #5
ahe
8 years, 9 months ago (2012-03-07 21:04:09 UTC) #6
Hi Nicolas and Karl,

Thank you for your suggestions.

Cheers,
Peter

https://chromiumcodereview.appspot.com/9600059/diff/1/dart/frog/leg/resolver....
File dart/frog/leg/resolver.dart (right):

https://chromiumcodereview.appspot.com/9600059/diff/1/dart/frog/leg/resolver....
dart/frog/leg/resolver.dart:1417: compiler.resolver.toResolve.add(cls);
On 2012/03/07 11:37:41, ngeoffray wrote:
> On 2012/03/07 11:34:32, ahe wrote:
> > On 2012/03/07 11:32:06, ngeoffray wrote:
> > > You don't need to add it to the list of classes to resolve if you already
> > > resolved it. 
> > 
> > I think I do for its supertypes.
> 
> I see. Initially, toResolve was only for delaying resolution of type
> annotations. Why isn't the element.resolve method making sure the supertypes
are
> computed?

OK. This is somewhat complicated. I have implemented it, but I think it should
be its own CL.

Powered by Google App Engine
This is Rietveld 408576698