Internal\Runtime\TypeLoader\TypeLoaderEnvironment.GVMResolution.cs (13)
48internal static InstantiatedMethod GVMLookupForSlotWorker(DefType targetType, InstantiatedMethod slotMethod)
56DefType currentType = targetType;
125DefType targetType = (DefType)context.ResolveRuntimeTypeHandle(type);
163private static InstantiatedMethod FindMatchingInterfaceSlot(NativeFormatModuleInfo module, NativeReader nativeLayoutReader, ref NativeParser entryParser, ref ExternalReferencesTable extRefs, InstantiatedMethod slotMethod, DefType targetType, bool variantDispatch, bool defaultMethods)
254DefType interfaceImplType;
260interfaceImplType = (DefType)context.ResolveRuntimeTypeHandle(targetTypeHandle);
272interfaceImplType = (DefType)interfaceImplType.BaseType;
278interfaceImplType = (DefType)currentIfaceType;
287foreach (DefType instIntf in targetType.RuntimeInterfaces)
293foreach (DefType intfOnIntf in instIntf.RuntimeInterfaces)
329private static InstantiatedMethod ResolveInterfaceGenericVirtualMethodSlot(DefType targetType, InstantiatedMethod slotMethod, bool lookForDefaultImplementation)
455private static InstantiatedMethod ResolveGenericVirtualMethodTarget(DefType targetType, InstantiatedMethod slotMethod)
Internal\TypeSystem\RuntimeMethodDesc.cs (4)
17public RuntimeMethodDesc(bool unboxingStub, bool asyncVariant, bool returnDroppingAsyncThunk, DefType owningType,
68private DefType _owningType;
140return Context.ResolveRuntimeMethod(UnboxingStub, AsyncVariant, ReturnDroppingAsyncThunk, (DefType)owningTypeDefinition, _nameAndSignature);
150method = instantiatedOwningType.Context.ResolveRuntimeMethod(UnboxingStub, AsyncVariant, ReturnDroppingAsyncThunk, (DefType)instantiatedOwningType, _nameAndSignature);
Internal\TypeSystem\TypeSystemContext.Runtime.cs (14)
209DefType typeDef = (DefType)ResolveRuntimeTypeHandle(typeDefRuntimeTypeHandle);
281private DefType _typeDefinition;
285public GenericTypeInstanceKey(DefType typeDefinition, Instantiation instantiation)
326private DefType _owningType;
330public RuntimeMethodKey(bool unboxingStub, bool asyncVariant, bool returnDroppingAsyncThunk, DefType owningType, MethodNameAndSignature nameAndSignature)
432MethodDesc typicalMethod = key._owningType.Context.ResolveRuntimeMethod(key._unboxingStub, key._asyncVariant, key._returnDroppingAsyncThunk, (DefType)key._owningType.GetTypeDefinition(), key._methodNameAndSignature);
449internal MethodDesc ResolveRuntimeMethod(bool unboxingStub, bool asyncVariant, bool returnDroppingAsyncThunk, DefType owningType, MethodNameAndSignature nameAndSignature)
455private LowLevelDictionary<GenericTypeInstanceKey, DefType> _genericTypeInstances;
462public DefType ResolveGenericInstantiation(DefType typeDef, Instantiation arguments)
466_genericTypeInstances ??= new LowLevelDictionary<GenericTypeInstanceKey, DefType>();
470DefType result;
486public MethodDesc ResolveGenericMethodInstantiation(bool unboxingStub, bool asyncVariant, bool returnDroppingAsyncThunk, DefType owningType, MethodNameAndSignature nameAndSignature, Instantiation methodInstantiation)
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\Utilities\TypeNameFormatter.cs (16)
43AppendName(sb, (DefType)type);
48public void AppendName(StringBuilder sb, DefType type)
56DefType containingType = type.ContainingType;
72protected abstract void AppendNameForNestedType(StringBuilder sb, DefType nestedType, DefType containingType);
73protected abstract void AppendNameForNamespaceType(StringBuilder sb, DefType type);
74protected abstract void AppendNameForInstantiatedType(StringBuilder sb, DefType type);
99_ => AppendName(sb, (DefType)type, options)
103public TState AppendName(StringBuilder sb, DefType type, TOptions options)
111DefType containingType = GetContainingType(type, options);
128protected abstract TState AppendNameForNestedType(StringBuilder sb, DefType nestedType, DefType containingType, TOptions options);
129protected abstract TState AppendNameForNamespaceType(StringBuilder sb, DefType type, TOptions options);
130protected abstract TState AppendNameForInstantiatedType(StringBuilder sb, DefType type, TOptions options);
132protected virtual DefType GetContainingType(DefType possibleInnerType, TOptions options)