21 implementations of AsDefinition
Microsoft.CodeAnalysis (21)
CodeGen\ArrayMembers.cs (1)
357
public Cci.IDefinition?
AsDefinition
(EmitContext context)
CodeGen\PrivateImplementationDetails.cs (1)
677
public Cci.IDefinition
AsDefinition
(EmitContext context)
Emit\CommonPEModuleBuilder.cs (1)
305
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
161
public Cci.IDefinition?
AsDefinition
(EmitContext context)
Emit\EditAndContinue\DeletedSourceDefinition.cs (1)
48
public IDefinition?
AsDefinition
(EmitContext context)
Emit\ErrorType.cs (2)
178
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
242
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\NoPia\CommonEmbeddedEvent.cs (1)
179
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\NoPia\CommonEmbeddedField.cs (1)
186
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\NoPia\CommonEmbeddedMember.cs (1)
115
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\NoPia\CommonEmbeddedMethod.cs (1)
254
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\NoPia\CommonEmbeddedParameter.cs (1)
217
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\NoPia\CommonEmbeddedProperty.cs (1)
207
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (1)
556
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
214
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
Emit\NoPia\VtblGap.cs (1)
184
Cci.IDefinition Cci.IReference.
AsDefinition
(EmitContext context)
PEWriter\InheritedTypeParameter.cs (1)
192
public IDefinition?
AsDefinition
(EmitContext context)
PEWriter\ModifiedTypeReference.cs (1)
143
IDefinition? IReference.
AsDefinition
(EmitContext context)
PEWriter\ReturnValueParameter.cs (1)
112
public IDefinition
AsDefinition
(EmitContext context)
PEWriter\RootModuleStaticConstructor.cs (1)
106
public IDefinition
AsDefinition
(EmitContext context) => this;
PEWriter\RootModuleType.cs (1)
322
IDefinition IReference.
AsDefinition
(EmitContext context)
5 references to AsDefinition
Microsoft.CodeAnalysis (5)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
684
var methodDef = (IMethodDefinition?)methodImpl.ImplementingMethod.
AsDefinition
(this.Context);
1872
var methodDef = (IMethodDefinition?)methodImplementation.ImplementingMethod.
AsDefinition
(this.Context);
PEWriter\MetadataVisitor.cs (1)
577
if (typeMemberReference.
AsDefinition
(Context) == null)
PEWriter\MetadataWriter.cs (2)
1876
entryPointHandle = entryPoint != null ? (MethodDefinitionHandle)GetMethodHandle((IMethodDefinition)entryPoint.
AsDefinition
(Context)) : default(MethodDefinitionHandle);
1882
debugEntryPointHandle = (MethodDefinitionHandle)GetMethodHandle((IMethodDefinition)debugEntryPoint.
AsDefinition
(Context));