1 type derived from TypeSystemContext
System.Private.TypeLoader (1)
Internal\Runtime\TypeLoader\TypeLoaderTypeSystemContext.cs (1)
15public partial class TypeLoaderTypeSystemContext : TypeSystemContext
87 references to TypeSystemContext
System.Private.TypeLoader (87)
Internal\Runtime\TypeLoader\NativeLayoutInfoLoadContext.cs (1)
25public TypeSystemContext _typeSystemContext;
Internal\Runtime\TypeLoader\TypeBuilder.cs (27)
895var szArrayCache = TypeSystemContext.GetArrayTypesCache(false, -1); 906var mdArrayCache = TypeSystemContext.GetArrayTypesCache(true, i); 911TypeSystemContext.PointerTypesCache.Reserve(TypeSystemContext.PointerTypesCache.Count + newPointerTypesCount); 912TypeSystemContext.ByRefTypesCache.Reserve(TypeSystemContext.ByRefTypesCache.Count + newByRefTypesCount); 913TypeSystemContext.FunctionPointerTypesCache.Reserve(TypeSystemContext.FunctionPointerTypesCache.Count + newFunctionPointerTypesCount); 935TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(typeAsFunctionPointerType.RuntimeTypeHandle); 944TypeSystemContext.GetArrayTypesCache(true, ((ArrayType)typeAsParameterizedType).Rank).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 946TypeSystemContext.GetArrayTypesCache(false, -1).AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 953TypeSystemContext.ByRefTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 962TypeSystemContext.PointerTypesCache.AddOrGetExisting(typeAsParameterizedType.RuntimeTypeHandle); 1013private unsafe IntPtr BuildGenericLookupTarget(TypeSystemContext typeSystemContext, IntPtr context, IntPtr signature, out IntPtr auxResult) 1127TypeSystemContext context = TypeSystemContextFactory.Create(); 1154TypeSystemContext context = TypeSystemContextFactory.Create(); 1178if (!TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle)) 1180TypeSystemContext context = TypeSystemContextFactory.Create(); 1187TypeSystemContext.PointerTypesCache.AddOrGetExisting(pointerTypeHandle); 1198if (!TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out byRefTypeHandle)) 1200TypeSystemContext context = TypeSystemContextFactory.Create(); 1207TypeSystemContext.ByRefTypesCache.AddOrGetExisting(byRefTypeHandle); 1218var key = new TypeSystemContext.FunctionPointerTypeKey(returnTypeHandle, parameterHandles, isUnmanaged); 1219if (!TypeSystemContext.FunctionPointerTypesCache.TryGetValue(key, out runtimeTypeHandle)) 1221TypeSystemContext context = TypeSystemContextFactory.Create(); 1232TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(runtimeTypeHandle); 1262TypeSystemContext context = TypeSystemContextFactory.Create();
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.ConstructedGenericMethodsLookup.cs (2)
155TypeSystemContext context = _methodToLookup.Context; 193TypeSystemContext context = _methodToLookup.Context;
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.cs (15)
242var key = new TypeSystemContext.FunctionPointerTypeKey(returnTypeHandle, parameterHandles, isUnmanaged); 243if (TypeSystemContext.FunctionPointerTypesCache.TryGetValue(key, out runtimeTypeHandle)) 250TypeSystemContext.FunctionPointerTypesCache.AddOrGetExisting(runtimeTypeHandle); 281if (TypeSystemContext.GetArrayTypesCache(isMdArray, rank).TryGetValue(elementTypeHandle, out arrayTypeHandle)) 297if (TypeSystemContext.GetArrayTypesCache(isMdArray, rank).TryGetValue(elementTypeHandle, out arrayTypeHandle)) 303TypeSystemContext.GetArrayTypesCache(isMdArray, rank).AddOrGetExisting(arrayTypeHandle); 317if (TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle)) 326if (TypeSystemContext.PointerTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle)) 332TypeSystemContext.PointerTypesCache.AddOrGetExisting(pointerTypeHandle); 346if (TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out byRefTypeHandle)) 355if (TypeSystemContext.ByRefTypesCache.TryGetValue(pointeeTypeHandle, out pointerTypeHandle)) 361TypeSystemContext.ByRefTypesCache.AddOrGetExisting(pointerTypeHandle); 370TypeSystemContext context = TypeSystemContextFactory.Create(); 380TypeSystemContext context = TypeSystemContextFactory.Create(); 410TypeSystemContext context = TypeSystemContextFactory.Create();
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (3)
124TypeSystemContext context = TypeSystemContextFactory.Create(); 172TypeSystemContext context = slotMethod.Context; 509TypeSystemContext context = slotMethod.Context;
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.LdTokenResultLookup.cs (1)
192public MethodDesc GetMethodDescForRuntimeMethodHandle(TypeSystemContext context, RuntimeMethodHandle runtimeMethodHandle)
Internal\Runtime\TypeLoader\TypeSystemContextFactory.cs (5)
19private static WeakGCHandle<TypeSystemContext?> s_cachedContext = new WeakGCHandle<TypeSystemContext?>(null); 23public static TypeSystemContext Create() 27if (s_cachedContext.TryGetTarget(out TypeSystemContext? context)) 55public static void Recycle(TypeSystemContext context)
Internal\TypeSystem\RuntimeGenericParameterDesc.cs (1)
25public override TypeSystemContext Context => _associatedTypeOrMethod.Context;
Internal\TypeSystem\RuntimeMethodDesc.cs (1)
32public override TypeSystemContext Context
Internal\TypeSystem\RuntimeNoMetadataType.cs (5)
29private TypeSystemContext _context; 38public unsafe NoMetadataType(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, int instantiationLength, ReadOnlySpan<Runtime.GenericVariance> runtimeVarianceData, int hashcode) 65public unsafe NoMetadataType(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, DefType genericTypeDefinitionAsDefType, Instantiation instantiation, int hashcode) 70private void Init(TypeSystemContext context, RuntimeTypeHandle genericTypeDefinition, DefType genericTypeDefinitionAsDefType, Instantiation instantiation, int hashcode) 98public override TypeSystemContext Context
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\CanonTypes.cs (5)
43private TypeSystemContext _context; 45public CanonBaseType(TypeSystemContext context) 50public sealed override TypeSystemContext Context 84public CanonType(TypeSystemContext context) 168public UniversalCanonType(TypeSystemContext context)
src\runtime\src\coreclr\tools\Common\TypeSystem\Canon\StandardCanonicalizationAlgorithm.cs (1)
84TypeSystemContext context = typeToConvert.Context;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ArrayType.cs (1)
193public override TypeSystemContext Context
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\FieldForInstantiatedType.cs (1)
25public override TypeSystemContext Context
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\FunctionPointerType.cs (1)
30public override TypeSystemContext Context
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedMethod.cs (1)
40public override TypeSystemContext Context
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\InstantiatedType.cs (1)
47public override TypeSystemContext Context
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodDesc.cs (1)
338public override TypeSystemContext Context => _returnType.Context;
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MethodForInstantiatedType.cs (1)
33public override TypeSystemContext Context
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ModuleDesc.cs (2)
15public override TypeSystemContext Context 28public ModuleDesc(TypeSystemContext context, IAssemblyDesc assembly)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\ParameterizedType.cs (1)
23public override TypeSystemContext Context
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\RuntimeInterfacesAlgorithm.cs (1)
12/// The algorithms are expected to be directly used by <see cref="TypeSystemContext"/> derivatives
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\SignatureVariable.cs (5)
10private TypeSystemContext _context; 13internal SignatureVariable(TypeSystemContext context, int index) 27public override TypeSystemContext Context 43internal SignatureTypeVariable(TypeSystemContext context, int index) : base(context, index) 91internal SignatureMethodVariable(TypeSystemContext context, int index) : base(context, index)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemContext.cs (2)
598private TypeSystemContext _context; 599public SignatureVariableHashtable(TypeSystemContext context)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\TypeSystemEntity.cs (1)
11public abstract TypeSystemContext Context { get; }
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\VirtualMethodAlgorithm.cs (1)
13/// The algorithms are expected to be directly used by <see cref="TypeSystemContext"/> derivatives