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

Issue 2839513002: Make it possible to represent type schemas in the front end. (Closed)

Created:
3 years, 8 months ago by Paul Berry
Modified:
3 years, 8 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make it possible to represent type schemas in the front end. See https://github.com/dart-lang/sdk/pull/29371/files for more information. R=ahe@google.com Committed: https://github.com/dart-lang/sdk/commit/378538508353890245fc6e1f886ee10b12be25be

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -0 lines) Patch
A pkg/front_end/lib/src/fasta/type_inference/type_schema.dart View 1 chunk +66 lines, -0 lines 7 comments Download
A pkg/front_end/test/fasta/type_inference/type_schema_test.dart View 1 chunk +121 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Paul Berry
Note: I also considered the possibility of putting the new `UnknownType` class inside kernel. On ...
3 years, 8 months ago (2017-04-23 12:56:15 UTC) #3
ahe
lgtm https://codereview.chromium.org/2839513002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_schema.dart File pkg/front_end/lib/src/fasta/type_inference/type_schema.dart (right): https://codereview.chromium.org/2839513002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_schema.dart#newcode49 pkg/front_end/lib/src/fasta/type_inference/type_schema.dart:49: /// purely part of the local inference process. ...
3 years, 8 months ago (2017-04-24 13:21:07 UTC) #4
Paul Berry
https://codereview.chromium.org/2839513002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_schema.dart File pkg/front_end/lib/src/fasta/type_inference/type_schema.dart (right): https://codereview.chromium.org/2839513002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_schema.dart#newcode49 pkg/front_end/lib/src/fasta/type_inference/type_schema.dart:49: /// purely part of the local inference process. On ...
3 years, 8 months ago (2017-04-24 18:33:32 UTC) #5
Paul Berry
Committed patchset #1 (id:1) manually as 378538508353890245fc6e1f886ee10b12be25be (presubmit successful).
3 years, 8 months ago (2017-04-24 18:40:27 UTC) #7
ahe
3 years, 8 months ago (2017-04-24 19:46:05 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2839513002/diff/1/pkg/front_end/lib/src/fasta...
File pkg/front_end/lib/src/fasta/type_inference/type_schema.dart (right):

https://codereview.chromium.org/2839513002/diff/1/pkg/front_end/lib/src/fasta...
pkg/front_end/lib/src/fasta/type_inference/type_schema.dart:60: return
v.defaultDartType(this);
On 2017/04/24 18:33:32, Paul Berry wrote:
> On 2017/04/24 13:21:07, ahe wrote:
> > Perhaps this should throw?
> 
> That's what I had at first but it had a poor interaction with the kernel's
> implementation of DartType.toString(), which uses a visitor to recurse over
the
> type (rather than making recursive calls to toString()).  If this method
throws,
> then calling toString() on a legitimate type schema like List<?> will throw. 
> That seemed bad since we use toString() for debugging so often.
> 
> Incidentally, this is one of the reasons it might be worth moving UnknownType
> into kernel.

Good point. Perhaps add a comment about this problem.

Powered by Google App Engine
This is Rietveld 408576698