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

Issue 2869003002: Clean up type inference methods. (Closed)

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

Description

Clean up type inference methods. Several minor changes that shouldn't affect functionality: - inferGenericFunctionOrType no longer returns the inferred type; instead, it fills an "inferredTypes" array with the inferred type arguments. - Downwards inference is signaled to inferGenericFunctionOrType by passing `null` for `formalTypes` and `actualTypes`. - inferTypeFromConstraints no longer falls back on instantiateToBounds. This never could have had any effect anyway because it was only invoked for upwards inference, and in that case, all type arguments are already known. - Inferred type arguments are now passed back to KernelConstructorInvocation as a list rather than forcing it to extract them from the inferred class type. If the inferred class type doesn't need to be computed, it isn't. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/6b9b2146ed8f202e815e8c08034c27eaf84ce2bc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -159 lines) Patch
M pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart View 7 chunks +40 lines, -43 lines 0 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_schema_environment.dart View 6 chunks +29 lines, -50 lines 0 comments Download
M pkg/front_end/test/fasta/type_inference/type_schema_environment_test.dart View 2 chunks +35 lines, -64 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
Paul Berry
3 years, 7 months ago (2017-05-08 23:23:25 UTC) #2
scheglov
LGTM
3 years, 7 months ago (2017-05-08 23:36:14 UTC) #3
Paul Berry
3 years, 7 months ago (2017-05-09 12:52:46 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
6b9b2146ed8f202e815e8c08034c27eaf84ce2bc (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698