2 instantiations of TypeArray
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (2)
84public static readonly TypeArray Empty = new TypeArray(Array.Empty<CType>()); 133result = new TypeArray(types);
233 references to TypeArray
Microsoft.CSharp (233)
Microsoft\CSharp\RuntimeBinder\Errors\ErrorFmt.cs (1)
47public TypeArray typeArgs;
Microsoft\CSharp\RuntimeBinder\Errors\UserStringBuilder.cs (2)
74private void ErrAppendParamList(TypeArray @params, bool isParamArray) 149private void ErrAppendTypeParameters(TypeArray @params, SubstContext pctx)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (6)
617TypeArray typeArgumentsAsTypeArray = typeArguments?.Length > 0 618? TypeArray.Allocate(SymbolTable.GetCTypeArrayFromTypes(typeArguments)) 619: TypeArray.Empty; 623new CMemberLookupResults(TypeArray.Allocate(callingTypes.ToArray()), name)); 868TypeArray typeArgs; 896TypeArray parameters = TypeManager.SubstTypeArray(methprop.Params, type, typeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (7)
104private static BetterType CompareTypes(TypeArray ta1, TypeArray ta2) 203private static TypeArray RearrangeNamedArguments(TypeArray pta, MethPropWithInst mpwi, CType pTypeThrough, ArgInfos args) 255return TypeArray.Allocate(typeList); 293TypeArray pta1 = RearrangeNamedArguments(node1.@params, mpwi1, pTypeThrough, args); 294TypeArray pta2 = RearrangeNamedArguments(node2.@params, mpwi2, pTypeThrough, args);
Microsoft\CSharp\RuntimeBinder\Semantics\CandidateFunctionMember.cs (2)
9public CandidateFunctionMember(MethPropWithInst mpwi, TypeArray @params, byte ctypeLift, bool fExpanded) 19public TypeArray @params;
Microsoft\CSharp\RuntimeBinder\Semantics\Conversions.cs (4)
136TypeArray typeArgsAll = aggDst.TypeArgsAll; 241TypeArray pTypeParams = aggSrc.OwningAggregate.GetTypeVarsAll(); 242TypeArray pSourceArgs = aggSrc.TypeArgsAll; 243TypeArray pTargetArgs = pTarget.TypeArgsAll;
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (13)
35public TypeArray types; 612TypeArray paramsCur = TypeManager.SubstTypeArray(methCur.Params, atsCur); 619new MethPropWithInst(methCur, atsCur, TypeArray.Empty), 629new MethPropWithInst(methCur, atsCur, TypeArray.Empty), 630TypeArray.Allocate(nubParam), 1092TypeArray pTypeArgs = (call as ExprCall)?.MethWithInst.TypeArgs; 1100private void AdjustCallArgumentsForParams(CType callingObjectType, CType type, MethodOrPropertySymbol mp, TypeArray pTypeArgs, Expr argsPtr, out Expr newArgs) 1110TypeArray @params = mp.Params; 1365argInfo.types = TypeArray.Allocate(prgtype); 1368private static bool TryGetExpandedParams(TypeArray @params, int count, out TypeArray ppExpandedParams) 1378ppExpandedParams = TypeArray.Allocate(prgtype); 1402ppExpandedParams = TypeArray.Allocate(prgtype);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (3)
25public static ExprMemberGroup CreateMemGroup(EXPRFLAG flags, Name name, TypeArray typeArgs, SYMKIND symKind, CType parentType, Expr obj, CMemberLookupResults memberLookupResults) => 34obj, new CMemberLookupResults(TypeArray.Allocate((CType)method.GetType()), name)); 66public static ExprMethodInfo CreateMethodInfo(MethodSymbol method, AggregateType methodType, TypeArray methodParameters) =>
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (10)
39private TypeArray _pCurrentTypeArgs; 40private TypeArray _pCurrentParameters; 399MethodOrPropertySymbol methprop, TypeArray pCurrentParameters, AggregateType pCurrentType, ExprMemberGroup pGroup, ArgInfos pArguments) 411TypeArray @params = TypeManager.SubstTypeArray( 481pArguments.types = TypeArray.Allocate(prgTypes); 685TypeArray @params = TypeManager.SubstTypeArray( 711_pArguments.types = TypeArray.Allocate(prgTypes); 861TypeArray typeArgs = _pGroup.TypeArgs; 889TypeArray pTypeVars = methSym.typeVars; 1050TypeArray typeVars = varAgg.TypeArgsAll;
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinderResult.cs (4)
29private static int NumberOfErrorTypes(TypeArray pTypeArgs) 43private static bool IsBetterThanCurrent(TypeArray pTypeArgs1, TypeArray pTypeArgs2) 68public bool IsBetterUninferableResult(TypeArray pTypeArguments)
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookup.cs (3)
404private bool LookupInInterfaces(AggregateType typeStart, TypeArray types) 542TypeArray ifaces; 555ifaces = TypeArray.Empty;
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookupResults.cs (2)
18private TypeArray ContainingTypes { get; }// Types that contain the member we're looking for. 23TypeArray containingTypes,
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (2)
18private readonly TypeArray _containingTypes; 28public CMethodIterator(Name name, TypeArray containingTypes, CType qualifyingType, AggregateSymbol context, int arity, EXPRFLAG flags, symbmask_t mask, ArgInfos nonTrailingNamedArguments)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (18)
33private readonly TypeArray _pMethodTypeParameters; 34private readonly TypeArray _pMethodFormalParameterTypes; 87TypeArray pMethodFormalParameterTypes, 89out TypeArray ppInferredTypeArguments) 121ExpressionBinder exprBinder, TypeArray pMethodFormalParameterTypes, ArgInfos pMethodArguments, TypeArray pMethodTypeParameters) 142private TypeArray GetResults() => TypeArray.Allocate(_pFixedResults); 876TypeArray pSourceArgs = pSource.TypeArgsAll; 877TypeArray pDestArgs = pDest.TypeArgsAll; 1078TypeArray pDestArgs = pConstructedDest.TypeArgsAll; 1238TypeArray pTypeParams = pSource.OwningAggregate.GetTypeVarsAll(); 1239TypeArray pSourceArgs = pSource.TypeArgsAll; 1240TypeArray pDestArgs = pDest.TypeArgsAll; 1408TypeArray pSourceArgs = pConstructedSource.TypeArgsAll; 1545TypeArray pTypeParams = pSource.OwningAggregate.GetTypeVarsAll(); 1546TypeArray pSourceArgs = pSource.TypeArgsAll; 1547TypeArray pDestArgs = pDest.TypeArgsAll;
Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs (1)
72MethWithInst methwithinst = new MethWithInst(meth, pSourceType, TypeArray.Empty);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (10)
2466TypeArray Params) 2518TypeArray paramsCur = TypeManager.SubstTypeArray(method.Params, ats); 2522new MethPropWithInst(method, ats, TypeArray.Empty), 2540new MethPropWithInst(method, ats, TypeArray.Empty), 2541TypeArray.Allocate(rgtype), 2647private ExprCall BindUDBinopCall(Expr arg1, Expr arg2, TypeArray Params, CType typeRet, MethPropWithInst mpwi) 2667private ExprCall BindLiftedUDBinop(ExpressionKind ek, Expr arg1, Expr arg2, TypeArray Params, MethPropWithInst mpwi) 2684TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.Meth().Params, mpwi.GetType()); 2797AggregateType callingType = TypeManager.GetAggregate(agg, TypeArray.Empty); 2813AggregateType pCallingType = TypeManager.GetAggregate(pAgg, TypeArray.Empty);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (9)
235private static CType LoadTypeFromSignature(int[] signature, ref int indexIntoSignatures, TypeArray classTyVars) 262return TypeManager.GetAggregate(agg, TypeArray.Empty); 271return TypeManager.GetAggregate(agg, TypeArray.Allocate(typeArgs)); 277private static TypeArray LoadTypeArrayFromSignature(int[] signature, ref int indexIntoSignatures, TypeArray classTyVars) 292return TypeArray.Allocate(ptypes); 342TypeArray classTyVars = type.GetTypeVarsAll(); 348TypeArray argumentTypes = LoadTypeArrayFromSignature(signature, ref index, classTyVars); 362private static MethodSymbol LookupMethodWhileLoading(AggregateSymbol type, int cMethodTyVars, Name methodName, ACCESS methodAccess, bool isStatic, bool isVirtual, CType returnType, TypeArray argumentTypes)
Microsoft\CSharp\RuntimeBinder\Semantics\SemanticChecker.cs (1)
109TypeArray typeArgs = ((AggregateType)type).TypeArgsAll;
Microsoft\CSharp\RuntimeBinder\Semantics\SubstitutionContext.cs (4)
14public SubstContext(TypeArray typeArgsCls, TypeArray typeArgsMeth, bool denormMeth) 28public SubstContext(AggregateType type, TypeArray typeArgsMeth) 33private SubstContext(AggregateType type, TypeArray typeArgsMeth, bool denormMeth)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\AggregateSymbol.cs (14)
29private TypeArray _ifaces; // The explicit base interfaces for a class or interface. 30private TypeArray _ifacesAll; // Recursive closure of base interfaces ordered so an iface appears before all of its base ifaces. 32private TypeArray _typeVarsThis; // Type variables for this generic class, as declarations. 33private TypeArray _typeVarsAll; // The type variables for this generic class and all containing classes. 269public TypeArray GetTypeVars() 274public void SetTypeVars(TypeArray typeVars) 283TypeArray outerTypeVars; 293outerTypeVars = TypeArray.Empty; 297_typeVarsAll = TypeArray.Concat(outerTypeVars, typeVars); 301public TypeArray GetTypeVarsAll() 326public TypeArray GetIfaces() 331public void SetIfaces(TypeArray ifaces) 336public TypeArray GetIfacesAll() 341public void SetIfacesAll(TypeArray ifacesAll)
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodOrPropertySymbol.cs (2)
52private TypeArray _Params; 53public TypeArray Params
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\MethodSymbol.cs (1)
28public TypeArray typeVars; // All the type variables for a generic method, as declarations.
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\SymbolLoader.cs (3)
376TypeArray pTypeParams = pAggSym.GetTypeVarsAll(); 377TypeArray pSourceArgs = pSource.TypeArgsAll; 378TypeArray pDestArgs = pDest.TypeArgsAll;
Microsoft\CSharp\RuntimeBinder\Semantics\Symbols\TypeParameterSymbol.cs (3)
18private TypeArray _pBounds; 65public void SetBounds(TypeArray pBounds) 70public TypeArray GetBounds()
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MemberGroup.cs (3)
11public ExprMemberGroup(EXPRFLAG flags, Name name, TypeArray typeArgs, SYMKIND symKind, CType parentType, Expr optionalObject, CMemberLookupResults memberLookupResults) 20TypeArgs = typeArgs ?? TypeArray.Empty; 29public TypeArray TypeArgs { get; }
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\MethodInfo.cs (3)
14public ExprMethodInfo(CType type, MethodSymbol method, AggregateType methodType, TypeArray methodParameters) 34TypeArray genericParams = TypeManager.SubstTypeArray(methSym.Params, aggType, methSym.typeVars); 107TypeArray genericInstanceParams = TypeManager.SubstTypeArray(methSym.Params, aggType);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\PropertyInfo.cs (1)
34TypeArray genericInstanceParams = TypeManager.SubstTypeArray(propSym.Params, aggType, null);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (2)
94TypeArray lambdaTypeParams = TypeArray.Allocate(delegateType);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (10)
76TypeArray typeVars = ats.OwningAggregate.GetTypeVars(); 77TypeArray typeArgsThis = ats.TypeArgsThis; 78TypeArray typeArgsAll = ats.TypeArgsAll; 143private static bool CheckConstraintsCore(Symbol symErr, TypeArray typeVars, TypeArray typeArgs, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags) 166private static bool CheckSingleConstraint(Symbol symErr, TypeParameterType var, CType arg, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags) 183TypeArray bnds = TypeManager.SubstTypeArray(var.Bounds, typeArgsCls, typeArgsMeth);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (10)
22private TypeArray _ifacesAll; // This is the result of calling SubstTypeArray on the aggregate's ifacesAll. 23private TypeArray _winrtifacesAll; //This is the list of collection interfaces implemented by a WinRT object. 26public AggregateType(AggregateSymbol parent, TypeArray typeArgsThis, AggregateType outerType) 63TypeArgsAll = outerType != null ? TypeArray.Concat(outerType.TypeArgsAll, typeArgsThis) : typeArgsThis; 152public TypeArray TypeArgsThis { get; } 154public TypeArray TypeArgsAll { get; } 156public TypeArray IfacesAll => _ifacesAll ??= TypeManager.SubstTypeArray(OwningAggregate.GetIfacesAll(), TypeArgsAll); 184public TypeArray WinRTCollectionIfacesAll 201_winrtifacesAll = TypeArray.Allocate(typeList.ToArray()); 316TypeArray typeArgs = TypeArgsAll;
Microsoft\CSharp\RuntimeBinder\Semantics\Types\NullableType.cs (1)
30_ats ??= TypeManager.GetAggregate(TypeManager.GetNullable(), TypeArray.Allocate(UnderlyingType));
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeArray.cs (10)
81private static readonly Dictionary<TypeArrayKey, TypeArray> s_tableTypeArrays = 82new Dictionary<TypeArrayKey, TypeArray>(); 84public static readonly TypeArray Empty = new TypeArray(Array.Empty<CType>()); 107public static TypeArray Allocate(int ctype, TypeArray array, int offset) 125public static TypeArray Allocate(params CType[] types) 131if (!s_tableTypeArrays.TryGetValue(key, out TypeArray result)) 143public static TypeArray Concat(TypeArray pta1, TypeArray pta2)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (43)
91public static AggregateType GetAggregate(AggregateSymbol agg, AggregateType atsOuter, TypeArray typeArgs) 95typeArgs ??= TypeArray.Empty; 116public static AggregateType GetAggregate(AggregateSymbol agg, TypeArray typeArgsAll) 131TypeArray typeArgsOuter = TypeArray.Allocate(cvarOuter, typeArgsAll, 0); 132TypeArray typeArgsInner = TypeArray.Allocate(agg.GetTypeVars().Count, typeArgsAll, cvarOuter); 189private static CType SubstType(CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, bool denormMeth) 197public static AggregateType SubstType(AggregateType typeSrc, TypeArray typeArgsCls) 206private static CType SubstType(CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth) => 210public static TypeArray SubstTypeArray(TypeArray taSrc, SubstContext ctx) 229return TypeArray.Allocate(dsts); 238public static TypeArray SubstTypeArray(TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth) 244public static TypeArray SubstTypeArray(TypeArray taSrc, TypeArray typeArgsCls) => SubstTypeArray(taSrc, typeArgsCls, null); 249TypeArray args = type.TypeArgsAll; 252TypeArray typeArgs = SubstTypeArray(args, ctx); 328public static bool SubstEqualTypes(CType typeDst, CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, bool denormMeth) 341public static bool SubstEqualTypeArrays(TypeArray taDst, TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth) 516public static bool TypeContainsTyVars(CType type, TypeArray typeVars) 577public static CType SubstType(CType typeSrc, AggregateType atsCls, TypeArray typeArgsMeth) => 581public static CType SubstType(CType typeSrc, CType typeCls, TypeArray typeArgsMeth) => 585public static TypeArray SubstTypeArray(TypeArray taSrc, AggregateType atsCls, TypeArray typeArgsMeth) => 589public static TypeArray SubstTypeArray(TypeArray taSrc, AggregateType atsCls) => SubstTypeArray(taSrc, atsCls, null); 592private static bool SubstEqualTypes(CType typeDst, CType typeSrc, CType typeCls, TypeArray typeArgsMeth) => 708TypeArray typeArgs = typeSrc.TypeArgsThis; 709TypeArray typeParams = aggOpenType.TypeArgsThis; 735TypeArray newTypeArgs = TypeArray.Allocate(newTypeArgsTemp);
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeParameterType.cs (1)
56public TypeArray Bounds => Symbol.GetBounds();
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeTable.cs (4)
51private static readonly Dictionary<KeyPair<AggregateSymbol, KeyPair<AggregateType, TypeArray>>, AggregateType> s_aggregateTable = 52new Dictionary<KeyPair<AggregateSymbol, KeyPair<AggregateType, TypeArray>>, AggregateType>(); 67public static AggregateType LookupAggregate(AggregateSymbol aggregate, AggregateType outer, TypeArray args) 74public static void InsertAggregate(AggregateSymbol aggregate, AggregateType outer, TypeArray args, AggregateType ats)
Microsoft\CSharp\RuntimeBinder\Semantics\WithType.cs (4)
195public TypeArray TypeArgs { get; private set; } 207public MethPropWithInst(MethodOrPropertySymbol mps, AggregateType ats, TypeArray typeArgs) 218public void Set(MethodOrPropertySymbol mps, AggregateType ats, TypeArray typeArgs) 237public MethWithInst(MethodSymbol meth, AggregateType ats, TypeArray typeArgs)
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (16)
306private static TypeArray GetMethodTypeParameters(MethodInfo method, MethodSymbol parent) 322((TypeParameterType)ctypes[i]).Symbol.SetBounds(TypeArray.Allocate(GetCTypeArrayFromTypes(t.GetGenericParameterConstraints()))); 325return TypeArray.Allocate(ctypes); 328return TypeArray.Empty; 335private static TypeArray GetAggregateTypeParameters(Type type, AggregateSymbol agg) 384return TypeArray.Allocate(ctypes.ToArray()); 387return TypeArray.Empty; 693TypeArray typeArray = TypeArray.Allocate(types.ToArray()); 904agg.SetTypeVars(TypeArray.Empty); 963typeVar.Symbol.SetBounds(TypeArray.Allocate(GetCTypeArrayFromTypes(t.GetGenericParameterConstraints()))); 1032aggregate.SetIfaces(TypeArray.Allocate(GetCTypeArrayFromTypes(interfaces))); 1246prop.Params = TypeArray.Empty; 1442methodSymbol.typeVars = TypeArray.Empty; 1639private static TypeArray CreateParameterArray(MemberInfo associatedInfo, ParameterInfo[] parameters) 1654return TypeArray.Allocate(types);