Chromium Code Reviews
DescriptionClean 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 #
Messages
Total messages: 5 (2 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||