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