11 implementations of GetContainingType
Microsoft.CodeAnalysis (11)
CodeGen\ArrayMembers.cs (1)
344public Cci.ITypeReference GetContainingType(EmitContext context)
CodeGen\PrivateImplementationDetails.cs (2)
608public Cci.ITypeReference GetContainingType(EmitContext context) => _containingType; 667public Cci.ITypeReference GetContainingType(EmitContext context) => _containingType;
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
164public Cci.ITypeReference GetContainingType(EmitContext context)
Emit\EditAndContinue\DeletedSourceMethodDefinition.cs (1)
114public ITypeReference GetContainingType(EmitContext context)
Emit\NoPia\CommonEmbeddedEvent.cs (1)
169Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context)
Emit\NoPia\CommonEmbeddedField.cs (1)
176Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context)
Emit\NoPia\CommonEmbeddedMethod.cs (1)
244Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context)
Emit\NoPia\CommonEmbeddedProperty.cs (1)
197Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context)
Emit\NoPia\VtblGap.cs (1)
167Cci.ITypeReference Cci.ITypeMemberReference.GetContainingType(EmitContext context)
PEWriter\RootModuleStaticConstructor.cs (1)
114public ITypeReference GetContainingType(EmitContext context) => ContainingTypeDefinition;
30 references to GetContainingType
Microsoft.CodeAnalysis (30)
CodeGen\ReferenceDependencyWalker.cs (3)
82VisitTypeReference(nestedType.GetContainingType(context), context); 106VisitTypeReference(methodReference.GetContainingType(context), context); 167VisitTypeReference(fieldReference.GetContainingType(context), context);
NativePdbWriter\PdbWriter.cs (1)
382typeReference = nestedType.GetContainingType(_metadataWriter.Context);
NativePdbWriter\SymWriterMetadataProvider.cs (2)
74declaringTypeToken = MetadataTokens.GetToken(_writer.GetTypeHandle(m.GetContainingType(_writer.Context))); 87enclosingTypeToken = MetadataTokens.GetToken(_writer.GetTypeHandle(nt.GetContainingType(_writer.Context)));
PEWriter\ITypeReferenceExtensions.cs (1)
18nestedTypeReference?.GetContainingType(context).GetConsolidatedTypeArguments(consolidatedTypeArguments, context);
PEWriter\MemberRefComparer.cs (2)
28if (x.GetContainingType(_metadataWriter.Context) != y.GetContainingType(_metadataWriter.Context))
PEWriter\MetadataVisitor.cs (1)
405this.Visit(nestedTypeReference.GetContainingType(Context));
PEWriter\MetadataWriter.cs (12)
652typeReference = nestedTypeReference.GetContainingType(context); 727IUnitReference definingUnit = GetDefiningUnitReference(methodReference.GetContainingType(Context), Context); 830IUnitReference definingUnit = GetDefiningUnitReference(fieldReference.GetContainingType(Context), Context); 927ITypeDefinition parentTypeDef = memberRef.GetContainingType(Context).AsTypeDefinition(Context); 958var containingType = memberRef.GetContainingType(Context); 967IUnitReference definingUnit = GetDefiningUnitReference(methodReference.GetContainingType(Context), Context); 1172IUnitReference definingUnit = GetDefiningUnitReference(methodReference.GetContainingType(Context), Context); 1612GetTypeReferenceHandle(nestedTypeRef.GetContainingType(this.Context)); 2842scopeTypeRef = sneTypeRef.GetUnspecializedVersion(Context).GetContainingType(Context); 2846scopeTypeRef = nestedTypeRef.GetContainingType(Context); 4138type = nestedType.GetContainingType(Context); 4143type = nestedType.GetContainingType(Context);
PEWriter\ReferenceIndexerBase.cs (6)
64IUnitReference definingUnit = MetadataWriter.GetDefiningUnitReference(fieldReference.GetContainingType(Context), Context); 111ITypeReference containingType = nestedType.GetContainingType(Context); 116this.Visit(nestedType.GetContainingType(Context)); 156IUnitReference definingUnit = MetadataWriter.GetDefiningUnitReference(methodReference.GetContainingType(Context), Context); 338this.Visit(typeMemberReference.GetContainingType(Context)); 457this.Visit(nestedTypeReference.GetContainingType(Context));
PEWriter\TypeNameSerializer.cs (2)
125sb.Append(GetSerializedTypeName(nestedType.GetContainingType(context), context, ref nestedTypeIsAssemblyQualified)); 161AppendAssemblyQualifierIfNecessary(sb, nestedType.GetContainingType(context), out isAssemQualified, context);