23 references to GetDeclaringType
Crossgen2Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
542TypeDefinitionHandle attributeTypeDefHandle = mdReader.GetMethodDefinition((MethodDefinitionHandle)attributeCtor).GetDeclaringType();
ILCompiler.Compiler (1)
Compiler\DependencyAnalysis\MethodMetadataNode.cs (1)
100TypeDefinition declaringType = reader.GetTypeDefinition(reader.GetMethodDefinition(methodHandle).GetDeclaringType());
ILCompiler.ReadyToRun (3)
Compiler\DependencyAnalysis\ReadyToRun\AttributePresenceFilterNode.cs (1)
224TypeDefinitionHandle customAttributeConstructorTypeDefinitionHandle = customAttributeConstructorDefinition.GetDeclaringType();
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
174blob.WriteCompressedInteger(CodedIndex.MemberRefParent(MetadataTokens.EntityHandle(GetAlternateStreamToken(MetadataTokens.GetToken(methodDefinition.GetDeclaringType())))));
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
186return HandleContext(moduleToken.Module, methodDefinition.GetDeclaringType(), methodToken.Method.OwningType, constrainedType, genericContextObject, devirtualizedMethodOwner, ref owningTypeNotDerivedFromToken);
ILCompiler.TypeSystem (4)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaMethod.cs (1)
485TypeDefinition declaringType = metadataReader.GetTypeDefinition(methodDef.GetDeclaringType());
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (2)
103TypeDefinitionHandle typeDefinitionHandle = _module._metadataReader.GetMethodDefinition(methodDefinitionHandle).GetDeclaringType(); 506Debug.Assert(_metadataReader.GetMethodDefinition(handle).GetDeclaringType() == owningType.Handle);
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\MetadataExtensions.cs (1)
164attributeType = metadataReader.GetMethodDefinition((MethodDefinitionHandle)attributeCtor).GetDeclaringType();
Microsoft.CodeAnalysis (2)
MetadataReader\PEModule.cs (2)
3117ctorType = methodDef.GetDeclaringType(); 3382return MetadataReader.GetMethodDefinition(methodDef).GetDeclaringType();
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
67var typeDefHandle = methodDef.GetDeclaringType();
Microsoft.CodeAnalysis.Rebuild (1)
CompilationOptionsReader.cs (1)
159var typeHandle = methodDefinition.GetDeclaringType();
Microsoft.Diagnostics.DataContractReader.Legacy (3)
ClrDataMethodDefinition.cs (1)
80TypeDefinitionHandle typeDefHandle = methodDef.GetDeclaringType();
MetaDataImportImpl.cs (2)
533*pClass = MapGlobalParentToken((uint)MetadataTokens.GetToken(methodDef.GetDeclaringType())); 1036TypeDefinition typeDef = _reader.GetTypeDefinition(method.GetDeclaringType());
Microsoft.NET.Build.Tasks (1)
PrepareForReadyToRunCompilation.cs (1)
569TypeDefinitionHandle attributeTypeDefHandle = mdReader.GetMethodDefinition((MethodDefinitionHandle)attributeCtor).GetDeclaringType();
Microsoft.NET.HostModel (1)
ComHost\ClsidMap.cs (1)
233TypeDefinition defType = reader.GetTypeDefinition(defConstructor.GetDeclaringType());
Microsoft.VisualStudio.TestPlatform.Common (1)
Utilities\MetadataReaderHelper.cs (1)
104var typeDefinitionHandle = methodDefinition.GetDeclaringType();
System.Diagnostics.FileVersionInfo (1)
System\Diagnostics\FileVersionInfo.Unix.cs (1)
272TypeDefinition td = reader.GetTypeDefinition(md.GetDeclaringType());
System.Reflection.MetadataLoadContext (3)
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeData.cs (1)
65EcmaDefinitionType declaringType = mh.GetMethodDefinition(Reader).GetDeclaringType().ResolveTypeDef(_module);
System\Reflection\TypeLoading\CustomAttributes\Ecma\EcmaCustomAttributeHelpers.cs (1)
88return mh.GetMethodDefinition(reader).GetDeclaringType();
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (1)
184RoInstantiationProviderType declaringType = methodDefinition.GetDeclaringType().ResolveAndSpecializeType(module, typeContext);