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

Issue 2823243002: Introduce initial plumbing for type inference in fasta. (Closed)

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

Description

Introduce initial plumbing for type inference in fasta. R=ahe@google.com Committed: https://github.com/dart-lang/sdk/commit/6d737cb68459ebd53010ecded7fa1d3ea04cebea

Patch Set 1 #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -9 lines) Patch
M pkg/front_end/lib/src/fasta/analyzer/analyzer_diet_listener.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 4 chunks +12 lines, -1 line 4 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart View 3 chunks +103 lines, -3 lines 3 comments Download
M pkg/front_end/lib/src/fasta/source/diet_listener.dart View 4 chunks +18 lines, -3 lines 1 comment Download
M pkg/front_end/lib/src/fasta/source/source_loader.dart View 2 chunks +5 lines, -1 line 1 comment Download
A pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart View 1 chunk +51 lines, -0 lines 4 comments Download
M pkg/front_end/test/subpackage_relationships_test.dart View 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Paul Berry
3 years, 8 months ago (2017-04-18 15:07:56 UTC) #2
ahe
lgtm Only nits below. https://codereview.chromium.org/2823243002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2823243002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode14 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:14: import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart' Make relative? https://codereview.chromium.org/2823243002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode89 ...
3 years, 8 months ago (2017-04-18 15:50:00 UTC) #3
Paul Berry
https://codereview.chromium.org/2823243002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2823243002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode14 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:14: import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart' On 2017/04/18 15:49:59, ahe wrote: > Make ...
3 years, 8 months ago (2017-04-18 16:33:17 UTC) #4
Paul Berry
Committed patchset #1 (id:1) manually as 6d737cb68459ebd53010ecded7fa1d3ea04cebea (presubmit successful).
3 years, 8 months ago (2017-04-18 16:38:00 UTC) #6
scheglov
lgtm https://codereview.chromium.org/2823243002/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart File pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart (right): https://codereview.chromium.org/2823243002/diff/1/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart#newcode38 pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart:38: /// Calls back to [inferrer] to perform type ...
3 years, 8 months ago (2017-04-18 20:09:49 UTC) #8
Paul Berry
3 years, 8 months ago (2017-04-18 22:49:14 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/2823243002/diff/1/pkg/front_end/lib/src/fasta...
File pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart (right):

https://codereview.chromium.org/2823243002/diff/1/pkg/front_end/lib/src/fasta...
pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart:38: /// Calls back to
[inferrer] to perform type inference for whatever concrete
On 2017/04/18 20:09:48, scheglov wrote:
> The reference [inferrer] is not resolved here.

Good catch, thanks.  I meant the signature to be:

DartType _inferExpression(KernelTypeInferrer inferrer, DartType typeContext,
bool typeNeeded);

I'll fix in a follow-up CL.

Powered by Google App Engine
This is Rietveld 408576698