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