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)
72private void ErrAppendParamList(TypeArray @params, bool isParamArray) 144private void ErrAppendTypeParameters(TypeArray @params, SubstContext pctx)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (6)
601TypeArray typeArgumentsAsTypeArray = typeArguments?.Length > 0 602? TypeArray.Allocate(SymbolTable.GetCTypeArrayFromTypes(typeArguments)) 603: TypeArray.Empty; 607new CMemberLookupResults(TypeArray.Allocate(callingTypes.ToArray()), name)); 845TypeArray typeArgs; 873TypeArray parameters = TypeManager.SubstTypeArray(methprop.Params, type, typeArgs);
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (7)
103private static BetterType CompareTypes(TypeArray ta1, TypeArray ta2) 201private static TypeArray RearrangeNamedArguments(TypeArray pta, MethPropWithInst mpwi, CType pTypeThrough, ArgInfos args) 253return TypeArray.Allocate(typeList); 290TypeArray pta1 = RearrangeNamedArguments(node1.@params, mpwi1, pTypeThrough, args); 291TypeArray 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)
134TypeArray typeArgsAll = aggDst.TypeArgsAll; 237TypeArray pTypeParams = aggSrc.OwningAggregate.GetTypeVarsAll(); 238TypeArray pSourceArgs = aggSrc.TypeArgsAll; 239TypeArray pTargetArgs = pTarget.TypeArgsAll;
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (13)
35public TypeArray types; 600TypeArray paramsCur = TypeManager.SubstTypeArray(methCur.Params, atsCur); 607new MethPropWithInst(methCur, atsCur, TypeArray.Empty), 617new MethPropWithInst(methCur, atsCur, TypeArray.Empty), 618TypeArray.Allocate(nubParam), 1068TypeArray pTypeArgs = (call as ExprCall)?.MethWithInst.TypeArgs; 1075private void AdjustCallArgumentsForParams(CType callingObjectType, CType type, MethodOrPropertySymbol mp, TypeArray pTypeArgs, Expr argsPtr, out Expr newArgs) 1085TypeArray @params = mp.Params; 1339argInfo.types = TypeArray.Allocate(prgtype); 1342private static bool TryGetExpandedParams(TypeArray @params, int count, out TypeArray ppExpandedParams) 1352ppExpandedParams = TypeArray.Allocate(prgtype); 1376ppExpandedParams = 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) => 33obj, new CMemberLookupResults(TypeArray.Allocate((CType)method.GetType()), name)); 58public static ExprMethodInfo CreateMethodInfo(MethodSymbol method, AggregateType methodType, TypeArray methodParameters) =>
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (10)
38private TypeArray _pCurrentTypeArgs; 39private TypeArray _pCurrentParameters; 398MethodOrPropertySymbol methprop, TypeArray pCurrentParameters, AggregateType pCurrentType, ExprMemberGroup pGroup, ArgInfos pArguments) 410TypeArray @params = TypeManager.SubstTypeArray( 480pArguments.types = TypeArray.Allocate(prgTypes); 684TypeArray @params = TypeManager.SubstTypeArray( 710_pArguments.types = TypeArray.Allocate(prgTypes); 860TypeArray typeArgs = _pGroup.TypeArgs; 888TypeArray pTypeVars = methSym.typeVars; 1049TypeArray 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)
403private bool LookupInInterfaces(AggregateType typeStart, TypeArray types) 541TypeArray ifaces; 554ifaces = TypeArray.Empty;
Microsoft\CSharp\RuntimeBinder\Semantics\MemberLookupResults.cs (2)
16private TypeArray ContainingTypes { get; }// Types that contain the member we're looking for. 21TypeArray containingTypes,
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (2)
17private readonly TypeArray _containingTypes; 27public 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)
32private readonly TypeArray _pMethodTypeParameters; 33private readonly TypeArray _pMethodFormalParameterTypes; 86TypeArray pMethodFormalParameterTypes, 88out TypeArray ppInferredTypeArguments) 120ExpressionBinder exprBinder, TypeArray pMethodFormalParameterTypes, ArgInfos pMethodArguments, TypeArray pMethodTypeParameters) 141private TypeArray GetResults() => TypeArray.Allocate(_pFixedResults); 875TypeArray pSourceArgs = pSource.TypeArgsAll; 876TypeArray pDestArgs = pDest.TypeArgsAll; 1077TypeArray pDestArgs = pConstructedDest.TypeArgsAll; 1237TypeArray pTypeParams = pSource.OwningAggregate.GetTypeVarsAll(); 1238TypeArray pSourceArgs = pSource.TypeArgsAll; 1239TypeArray pDestArgs = pDest.TypeArgsAll; 1407TypeArray pSourceArgs = pConstructedSource.TypeArgsAll; 1544TypeArray pTypeParams = pSource.OwningAggregate.GetTypeVarsAll(); 1545TypeArray pSourceArgs = pSource.TypeArgsAll; 1546TypeArray pDestArgs = pDest.TypeArgsAll;
Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs (1)
70MethWithInst methwithinst = new MethWithInst(meth, pSourceType, TypeArray.Empty);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (10)
2407TypeArray Params) 2458TypeArray paramsCur = TypeManager.SubstTypeArray(method.Params, ats); 2462new MethPropWithInst(method, ats, TypeArray.Empty), 2480new MethPropWithInst(method, ats, TypeArray.Empty), 2481TypeArray.Allocate(rgtype), 2583private ExprCall BindUDBinopCall(Expr arg1, Expr arg2, TypeArray Params, CType typeRet, MethPropWithInst mpwi) 2602private ExprCall BindLiftedUDBinop(ExpressionKind ek, Expr arg1, Expr arg2, TypeArray Params, MethPropWithInst mpwi) 2619TypeArray paramsRaw = TypeManager.SubstTypeArray(mpwi.Meth().Params, mpwi.GetType()); 2730AggregateType callingType = TypeManager.GetAggregate(agg, TypeArray.Empty); 2745AggregateType pCallingType = TypeManager.GetAggregate(pAgg, TypeArray.Empty);
Microsoft\CSharp\RuntimeBinder\Semantics\PredefinedMembers.cs (9)
231private static CType LoadTypeFromSignature(int[] signature, ref int indexIntoSignatures, TypeArray classTyVars) 258return TypeManager.GetAggregate(agg, TypeArray.Empty); 267return TypeManager.GetAggregate(agg, TypeArray.Allocate(typeArgs)); 272private static TypeArray LoadTypeArrayFromSignature(int[] signature, ref int indexIntoSignatures, TypeArray classTyVars) 287return TypeArray.Allocate(ptypes); 334TypeArray classTyVars = type.GetTypeVarsAll(); 340TypeArray argumentTypes = LoadTypeArrayFromSignature(signature, ref index, classTyVars); 353private 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)
106TypeArray 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)
363TypeArray pTypeParams = pAggSym.GetTypeVarsAll(); 364TypeArray pSourceArgs = pSource.TypeArgsAll; 365TypeArray 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)
13public ExprMethodInfo(CType type, MethodSymbol method, AggregateType methodType, TypeArray methodParameters) 33TypeArray genericParams = TypeManager.SubstTypeArray(methSym.Params, 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 (2)
93TypeArray lambdaTypeParams = TypeArray.Allocate(delegateType);
Microsoft\CSharp\RuntimeBinder\Semantics\TypeBind.cs (10)
75TypeArray typeVars = ats.OwningAggregate.GetTypeVars(); 76TypeArray typeArgsThis = ats.TypeArgsThis; 77TypeArray typeArgsAll = ats.TypeArgsAll; 140private static bool CheckConstraintsCore(Symbol symErr, TypeArray typeVars, TypeArray typeArgs, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags) 162private static bool CheckSingleConstraint(Symbol symErr, TypeParameterType var, CType arg, TypeArray typeArgsCls, TypeArray typeArgsMeth, CheckConstraintsFlags flags) 179TypeArray 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)
89public static AggregateType GetAggregate(AggregateSymbol agg, AggregateType atsOuter, TypeArray typeArgs) 93typeArgs ??= TypeArray.Empty; 113public static AggregateType GetAggregate(AggregateSymbol agg, TypeArray typeArgsAll) 128TypeArray typeArgsOuter = TypeArray.Allocate(cvarOuter, typeArgsAll, 0); 129TypeArray typeArgsInner = TypeArray.Allocate(agg.GetTypeVars().Count, typeArgsAll, cvarOuter); 182private static CType SubstType(CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, bool denormMeth) 189public static AggregateType SubstType(AggregateType typeSrc, TypeArray typeArgsCls) 197private static CType SubstType(CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth) => 200public static TypeArray SubstTypeArray(TypeArray taSrc, SubstContext ctx) 219return TypeArray.Allocate(dsts); 227public static TypeArray SubstTypeArray(TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth) 232public static TypeArray SubstTypeArray(TypeArray taSrc, TypeArray typeArgsCls) => SubstTypeArray(taSrc, typeArgsCls, null); 236TypeArray args = type.TypeArgsAll; 239TypeArray typeArgs = SubstTypeArray(args, ctx); 313public static bool SubstEqualTypes(CType typeDst, CType typeSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth, bool denormMeth) 326public static bool SubstEqualTypeArrays(TypeArray taDst, TypeArray taSrc, TypeArray typeArgsCls, TypeArray typeArgsMeth) 501public static bool TypeContainsTyVars(CType type, TypeArray typeVars) 557public static CType SubstType(CType typeSrc, AggregateType atsCls, TypeArray typeArgsMeth) => 560public static CType SubstType(CType typeSrc, CType typeCls, TypeArray typeArgsMeth) => 563public static TypeArray SubstTypeArray(TypeArray taSrc, AggregateType atsCls, TypeArray typeArgsMeth) => 566public static TypeArray SubstTypeArray(TypeArray taSrc, AggregateType atsCls) => SubstTypeArray(taSrc, atsCls, null); 568private static bool SubstEqualTypes(CType typeDst, CType typeSrc, CType typeCls, TypeArray typeArgsMeth) => 681TypeArray typeArgs = typeSrc.TypeArgsThis; 682TypeArray typeParams = aggOpenType.TypeArgsThis; 708TypeArray 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)
299private static TypeArray GetMethodTypeParameters(MethodInfo method, MethodSymbol parent) 315((TypeParameterType)ctypes[i]).Symbol.SetBounds(TypeArray.Allocate(GetCTypeArrayFromTypes(t.GetGenericParameterConstraints()))); 318return TypeArray.Allocate(ctypes); 321return TypeArray.Empty; 327private static TypeArray GetAggregateTypeParameters(Type type, AggregateSymbol agg) 376return TypeArray.Allocate(ctypes.ToArray()); 379return TypeArray.Empty; 679TypeArray typeArray = TypeArray.Allocate(types.ToArray()); 884agg.SetTypeVars(TypeArray.Empty); 943typeVar.Symbol.SetBounds(TypeArray.Allocate(GetCTypeArrayFromTypes(t.GetGenericParameterConstraints()))); 1011aggregate.SetIfaces(TypeArray.Allocate(GetCTypeArrayFromTypes(interfaces))); 1221prop.Params = TypeArray.Empty; 1415methodSymbol.typeVars = TypeArray.Empty; 1609private static TypeArray CreateParameterArray(MemberInfo associatedInfo, ParameterInfo[] parameters) 1624return TypeArray.Allocate(types);