16 implementations of AsTypeDefinition
Microsoft.CodeAnalysis (9)
CodeGen\PrivateImplementationDetails.cs (1)
1116public Cci.ITypeDefinition AsTypeDefinition(EmitContext context) => this;
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
75public ITypeDefinition? AsTypeDefinition(EmitContext context)
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
96public ITypeDefinition? AsTypeDefinition(EmitContext context)
Emit\ErrorType.cs (1)
164Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (1)
659Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
199Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
PEWriter\InheritedTypeParameter.cs (1)
186public ITypeDefinition? AsTypeDefinition(EmitContext context)
PEWriter\ModifiedTypeReference.cs (1)
140ITypeDefinition? ITypeReference.AsTypeDefinition(EmitContext context)
PEWriter\RootModuleType.cs (1)
319ITypeDefinition ITypeReference.AsTypeDefinition(EmitContext context)
Microsoft.CodeAnalysis.CSharp (7)
Emitter\Model\ArrayTypeSymbolAdapter.cs (1)
71Cci.ITypeDefinition? Cci.ITypeReference.AsTypeDefinition(EmitContext context) => null;
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
51ITypeDefinition? ITypeReference.AsTypeDefinition(EmitContext context) => null;
Emitter\Model\NamedTypeReference.cs (1)
145Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
201Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
Emitter\Model\PointerTypeSymbolAdapter.cs (1)
100Cci.ITypeDefinition? Cci.ITypeReference.AsTypeDefinition(EmitContext context)
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
149Cci.ITypeDefinition Cci.ITypeReference.AsTypeDefinition(EmitContext context)
Symbols\Source\ExtensionGroupingInfo.cs (1)
585ITypeDefinition? ITypeReference.AsTypeDefinition(EmitContext context)
5 references to AsTypeDefinition
Microsoft.CodeAnalysis (3)
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
77return OldDefinition.AsTypeDefinition(context);
PEWriter\MetadataWriter.cs (2)
926ITypeDefinition parentTypeDef = memberRef.GetContainingType(Context).AsTypeDefinition(Context); 1662var typeDefinition = typeReference.AsTypeDefinition(this.Context);
Microsoft.CodeAnalysis.CSharp (2)
Emitter\Model\NamedTypeSymbolAdapter.cs (2)
290Debug.Assert(((Cci.ITypeReference)this).AsTypeDefinition(context) != null); 486Debug.Assert(((Cci.ITypeReference)this).AsTypeDefinition(context) != null);