C# Class Microsoft.Scripting.Actions.Calls.TypeInferer.ArgumentInputs

Maps a single type parameter to the possible parameters and DynamicMetaObjects we can get inference from. For example for the signature: void Foo{T0, T1}(T0 x, T1 y, IList{T1} z); We would have one ArgumentInput for T0 which holds onto the DMO providing the argument value for x. We would also have one ArgumentInput for T1 which holds onto the 2 DMOs for y and z. Associated with y would be a GenericParameterInferer and associated with z would be a ConstructedParameterInferer.
Exibir arquivo Open project: jschementi/iron

Public Methods

Method Description
AddInput ( DynamicMetaObject value, Type parameterType ) : void
ArgumentInputs ( Type genericParam ) : System
GetBestType ( OverloadResolver resolver, Type>.Dictionary binding, BindingRestrictions>.Dictionary restrictions ) : Type

Method Details

AddInput() public method

public AddInput ( DynamicMetaObject value, Type parameterType ) : void
value System.Dynamic.DynamicMetaObject
parameterType System.Type
return void

ArgumentInputs() public method

public ArgumentInputs ( Type genericParam ) : System
genericParam System.Type
return System

GetBestType() public method

public GetBestType ( OverloadResolver resolver, Type>.Dictionary binding, BindingRestrictions>.Dictionary restrictions ) : Type
resolver OverloadResolver
binding Type>.Dictionary
restrictions BindingRestrictions>.Dictionary
return System.Type