116 references to TypeManager
Microsoft.CSharp (116)
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (6)
134CType pType = TypeManager.SubstType(agg.getThisType(), pctx); 166SubstContext ctx = new SubstContext(TypeManager.SubstType(meth.swtSlot.GetType(), pctx)); 267ErrAppendParamList(TypeManager.SubstTypeArray(meth.Params, pctx), meth.isParamArray); 275ErrAppendParamList(TypeManager.SubstTypeArray(indexer.Params, pctx), indexer.isParamArray); 285SubstContext ctx = new SubstContext(TypeManager.SubstType(prop.swtSlot.GetType(), pctx)); 395pType = TypeManager.SubstType(pType, pctx);
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (5)
233CType bestType = TypeManager.GetBestAccessibleType(_binder.Context.ContextForMemberLookup, actualType); 356type = TypeManager.GetParameterModifier(type, info.IsOut); 394ctype = TypeManager.GetParameterModifier(SymbolTable.GetCTypeFromType(type.GetElementType()), true); 800Type eventType = TypeManager.SubstType(eventCType, swtEvent.Ats).AssociatedSystemType; 873TypeArray parameters = TypeManager.SubstTypeArray(methprop.Params, type, typeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (11)
727typeFrom = TypeManager.SubstType(convCur.Params[0], atsCur); 728typeTo = TypeManager.SubstType(convCur.RetType, atsCur); 759typeFrom = TypeManager.GetNullable(typeFrom); 761typeTo = TypeManager.GetNullable(typeTo); 883typeFrom = TypeManager.SubstType(uci.Meth.Meth().Params[0], uci.Meth.GetType()); 884typeTo = TypeManager.SubstType(uci.Meth.Meth().RetType, uci.Meth.GetType()); 891typeFrom = TypeManager.GetNullable(typeFrom); 897typeTo = TypeManager.GetNullable(typeTo); 984typeFrom = TypeManager.SubstType(mwiBest.Meth().Params[0], mwiBest.GetType()); 985typeTo = TypeManager.SubstType(mwiBest.Meth().RetType, mwiBest.GetType()); 1017NullableType pConversionNubSourceType = TypeManager.GetNullable(typeFrom);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (13)
408pReturnType = TypeManager.SubstType(mwi.Meth().RetType, mwi.GetType(), mwi.TypeArgs); 439CType pFieldType = TypeManager.SubstType(fwt.Field().GetType(), fwt.GetType()); 494CType pReturnType = TypeManager.SubstType(pwt.Prop().RetType, pwt.GetType()); 600TypeArray paramsCur = TypeManager.SubstTypeArray(methCur.Params, atsCur); 613TypeManager.SubstType(methCur.RetType, atsCur).IsNonNullableValueType && 614canConvert(arg, nubParam = TypeManager.GetNullable(typeParam))) 662CType typeRet = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType()); 665typeRet = TypeManager.GetNullable(typeRet); 683CType typeRet = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType()); 1137CType substDestType = TypeManager.SubstType(@params[index], type, pTypeArgs); 1151CType arrayType = (ArrayType)TypeManager.SubstType(mp.Params[mp.Params.Count - 1], type, pTypeArgs); 1170CType substDestType = TypeManager.SubstType(@params[iDst], type, pTypeArgs); 1218CType substitutedArrayType = TypeManager.SubstType(mp.Params[mp.Params.Count - 1], type, pTypeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (7)
60TypeManager.GetPredefAgg(method.IsConstructor() ? PredefinedType.PT_CONSTRUCTORINFO : PredefinedType.PT_METHODINFO).getThisType(), 65new ExprPropertyInfo(TypeManager.GetPredefAgg(PredefinedType.PT_PROPERTYINFO).getThisType(), prop, propertyType); 69new ExprFieldInfo(field, fieldType, TypeManager.GetPredefAgg(PredefinedType.PT_FIELDINFO).getThisType()); 73new ExprTypeOf(TypeManager.GetPredefAgg(PredefinedType.PT_TYPE).getThisType(), sourceType); 84CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_STRING).getThisType(), ConstVal.Get(str)); 143CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_INT).getThisType(), ConstVal.Get(x)); 147CreateConstant(TypeManager.GetPredefAgg(PredefinedType.PT_BOOL).getThisType(), ConstVal.Get(b));
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (3)
410TypeArray @params = TypeManager.SubstTypeArray( 684TypeArray @params = TypeManager.SubstTypeArray( 999_pCurrentParameters = TypeManager.SubstTypeArray(
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
500TypeManager.TypeContainsTyVars(_typeSrc, null) || 501TypeManager.TypeContainsTyVars(_typeDest, null)))
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (1)
486TypeManager.SubstType(pSrcType, pAggType, pAggType.TypeArgsAll).IsDelegateType;
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (1)
1722_pFixedResults[iParam] = TypeManager.GetBestAccessibleType(_binder.Context.ContextForMemberLookup, pBest);
Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs (1)
67NullableType pNubSourceType = TypeManager.GetNullable(exprSrc.Type);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (29)
240typeSig1 = TypeManager.GetNullable(typeSig1); 267typeSig1 = TypeManager.GetNullable(typeSig1); 324typeSig2 = TypeManager.GetNullable(typeSig2); 352typeSig2 = TypeManager.GetNullable(typeSig2); 641resultType = TypeManager.GetNullable(resultType); 744typeDst = TypeManager.GetNullable(typeDst); 754ptypeSig2 = TypeManager.GetNullable(info.typeRaw2); 779typeDst = TypeManager.GetNullable(typeDst); 789ptypeSig1 = TypeManager.GetNullable(info.typeRaw1); 813typeSig1 = TypeManager.GetNullable(info.typeRaw1); 824typeSig2 = TypeManager.GetNullable(info.typeRaw2); 1174op, mustCast(pArgument, TypeManager.GetNullable(GetPredefindType(ptOp)))), nub); 1437typeSig = TypeManager.GetNullable(typeSig); 1453typeSig = TypeManager.GetNullable(typeSig); 1875CType typeRes = TypeManager.GetNullable(typeBool); 2053NullableType typeDst = TypeManager.GetNullable(GetEnumBinOpType(ek, nonNullableType1, nonNullableType2, out AggregateType typeEnum)); 2064NullableType typeOp = TypeManager.GetNullable(GetPredefindType(ptOp)); 2340if (!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.Meth().Params[0], typeRet) || 2341!TypeManager.SubstEqualTypes(typeRet, pCall.MethWithInst.Meth().Params[1], typeRet)) 2414CType typeRet = TypeManager.SubstType(method.RetType, ats); 2458TypeArray paramsCur = TypeManager.SubstTypeArray(method.Params, ats); 2473rgtype[0] = TypeManager.GetNullable(paramsCur[0]); 2474rgtype[1] = TypeManager.GetNullable(paramsCur[1]); 2577CType typeRetRaw = TypeManager.SubstType(pmethBest.mpwi.Meth().RetType, pmethBest.mpwi.GetType()); 2607CType typeRetRaw = TypeManager.SubstType(mpwi.Meth().RetType, mpwi.GetType()); 2619TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.Meth().Params, mpwi.GetType()); 2637typeRet = TypeManager.GetNullable(typeRetRaw); 2730AggregateType callingType = TypeManager.GetAggregate(agg, TypeArray.Empty); 2745AggregateType pCallingType = TypeManager.GetAggregate(pAgg, TypeArray.Empty);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (6)
241return TypeManager.GetArray(LoadTypeFromSignature(signature, ref indexIntoSignatures, classTyVars), 1, true); 244return TypeManager.GetStdMethTypeVar(signature[indexIntoSignatures++]); 258return TypeManager.GetAggregate(agg, TypeArray.Empty); 267return TypeManager.GetAggregate(agg, TypeArray.Allocate(typeArgs)); 365TypeManager.SubstEqualTypes(methsym.RetType, returnType, null, methsym.typeVars, true) && 366TypeManager.SubstEqualTypeArrays(methsym.Params, argumentTypes, null, methsym.typeVars))
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (1)
76type = TypeManager.SubstType(type, atsCheck);
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\AggregateSymbol.cs (2)
90_atsInst = TypeManager.GetAggregate(this, pOuterType, GetTypeVars()); 356public bool InternalsVisibleTo(Assembly assembly) => TypeManager.InternalsVisibleTo(AssociatedAssembly, assembly);
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (1)
54if (TypeManager.TypeContainsType(Params[ipar], var))
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs (1)
13public static AggregateSymbol GetPredefAgg(PredefinedType pt) => TypeManager.GetPredefAgg(pt);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (3)
33TypeArray genericParams = TypeManager.SubstTypeArray(methSym.Params, aggType, methSym.typeVars); 34CType genericReturn = TypeManager.SubstType(methSym.RetType, aggType, methSym.typeVars); 106TypeArray genericInstanceParams = TypeManager.SubstTypeArray(methSym.Params, aggType);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\PropertyInfo.cs (1)
33TypeArray genericInstanceParams = TypeManager.SubstTypeArray(propSym.Params, aggType, null);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (10)
103CType typeRet = TypeManager.SubstType(mwi.Meth().RetType, mwi.GetType(), mwi.TypeArgs); 421convertL = TypeManager.GetNullable(typeL.UnderlyingEnumType); 428convertL = TypeManager.GetNullable(nubL.UnderlyingType.UnderlyingEnumType); 435convertR = TypeManager.GetNullable(typeR.UnderlyingEnumType); 442convertR = TypeManager.GetNullable(nubR.UnderlyingType.UnderlyingEnumType); 709CType nullableType = TypeManager.GetNullable(underlyingType); 719CType pMethodReturnType = TypeManager.SubstType(method.Meth().RetType, 966ArrayType paramsArrayType = TypeManager.GetArray(paramsArrayElementType, 1, true); 1000CType nubfptype1 = TypeManager.GetNullable(fptype1); 1001CType nubfptype2 = TypeManager.GetNullable(fptype2);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (1)
179TypeArray bnds = TypeManager.SubstTypeArray(var.Bounds, typeArgsCls, typeArgsMeth);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (2)
106_baseType = TypeManager.SubstType(baseClass, TypeArgsAll); 156public TypeArray IfacesAll => _ifacesAll ??= TypeManager.SubstTypeArray(OwningAggregate.GetIfacesAll(), TypeArgsAll);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullableType.cs (2)
30_ats ??= TypeManager.GetAggregate(TypeManager.GetNullable(), TypeArray.Allocate(UnderlyingType));
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (7)
570TypeParameterType typeParamType = TypeManager.GetTypeParameter(typeParam); 596return TypeManager.GetNullable(GetCTypeFromType(t.GetGenericArguments()[0])); 680AggregateType aggType = TypeManager.GetAggregate(agg, typeArray); 701return TypeManager.GetArray( 711return TypeManager.GetPointer(GetCTypeFromType(t.GetElementType())); 833? TypeManager.GetParameterModifier(LoadSymbolsFromType(type.GetElementType()), false) 1648ctype = TypeManager.GetParameterModifier(parameterType, true);