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