Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (13)
417pReturnType = TypeManager.SubstType(mwi.Meth().RetType, mwi.GetType(), mwi.TypeArgs);
449CType pFieldType = TypeManager.SubstType(fwt.Field().GetType(), fwt.GetType());
505CType pReturnType = TypeManager.SubstType(pwt.Prop().RetType, pwt.GetType());
612TypeArray paramsCur = TypeManager.SubstTypeArray(methCur.Params, atsCur);
625TypeManager.SubstType(methCur.RetType, atsCur).IsNonNullableValueType &&
626canConvert(arg, nubParam = TypeManager.GetNullable(typeParam)))
675CType typeRet = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType());
678typeRet = TypeManager.GetNullable(typeRet);
697CType typeRet = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType());
1162CType substDestType = TypeManager.SubstType(@params[index], type, pTypeArgs);
1176CType arrayType = (ArrayType)TypeManager.SubstType(mp.Params[mp.Params.Count - 1], type, pTypeArgs);
1195CType substDestType = TypeManager.SubstType(@params[iDst], type, pTypeArgs);
1243CType substitutedArrayType = TypeManager.SubstType(mp.Params[mp.Params.Count - 1], type, pTypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (29)
251typeSig1 = TypeManager.GetNullable(typeSig1);
278typeSig1 = TypeManager.GetNullable(typeSig1);
335typeSig2 = TypeManager.GetNullable(typeSig2);
363typeSig2 = TypeManager.GetNullable(typeSig2);
657resultType = TypeManager.GetNullable(resultType);
763typeDst = TypeManager.GetNullable(typeDst);
773ptypeSig2 = TypeManager.GetNullable(info.typeRaw2);
799typeDst = TypeManager.GetNullable(typeDst);
809ptypeSig1 = TypeManager.GetNullable(info.typeRaw1);
834typeSig1 = TypeManager.GetNullable(info.typeRaw1);
845typeSig2 = TypeManager.GetNullable(info.typeRaw2);
1199op, mustCast(pArgument, TypeManager.GetNullable(GetPredefindType(ptOp)))), nub);
1464typeSig = TypeManager.GetNullable(typeSig);
1480typeSig = TypeManager.GetNullable(typeSig);
1919CType typeRes = TypeManager.GetNullable(typeBool);
2103NullableType typeDst = TypeManager.GetNullable(GetEnumBinOpType(ek, nonNullableType1, nonNullableType2, out AggregateType typeEnum));
2114NullableType typeOp = TypeManager.GetNullable(GetPredefindType(ptOp));
2397if (!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.Meth().Params[0], typeRet) ||
2398!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.Meth().Params[1], typeRet))
2473CType typeRet = TypeManager.SubstType(method.RetType, ats);
2518TypeArray paramsCur = TypeManager.SubstTypeArray(method.Params, ats);
2533rgtype[0] = TypeManager.GetNullable(paramsCur[0]);
2534rgtype[1] = TypeManager.GetNullable(paramsCur[1]);
2640CType typeRetRaw = TypeManager.SubstType(pmethBest.mpwi.Meth().RetType, pmethBest.mpwi.GetType());
2672CType typeRetRaw = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType());
2684TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.Meth().Params, mpwi.GetType());
2702typeRet = TypeManager.GetNullable(typeRetRaw);
2797AggregateType callingType = TypeManager.GetAggregate(agg, TypeArray.Empty);
2813AggregateType pCallingType = TypeManager.GetAggregate(pAgg, TypeArray.Empty);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (6)
245return TypeManager.GetArray(LoadTypeFromSignature(signature, ref indexIntoSignatures, classTyVars), 1, true);
248return TypeManager.GetStdMethTypeVar(signature[indexIntoSignatures++]);
262return TypeManager.GetAggregate(agg, TypeArray.Empty);
271return TypeManager.GetAggregate(agg, TypeArray.Allocate(typeArgs));
374TypeManager.SubstEqualTypes(methsym.RetType, returnType, null, methsym.typeVars, true) &&
375TypeManager.SubstEqualTypeArrays(methsym.Params, argumentTypes, null, methsym.typeVars))