49 implementations of AsDefinition
Microsoft.CodeAnalysis (26)
CodeGen\ArrayMembers.cs (1)
359public Cci.IDefinition? AsDefinition(EmitContext context)
CodeGen\PrivateImplementationDetails.cs (2)
526public Cci.IDefinition AsDefinition(EmitContext context) 680public Cci.IDefinition AsDefinition(EmitContext context) => this;
Emit\CommonPEModuleBuilder.cs (1)
266Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\EditAndContinue\DeletedEventDefinition.cs (1)
44public IDefinition? AsDefinition(EmitContext context)
Emit\EditAndContinue\DeletedGenericParameter.cs (1)
62public IDefinition? AsDefinition(EmitContext context)
Emit\EditAndContinue\DeletedMethodDefinition.cs (1)
105public IDefinition? AsDefinition(EmitContext context)
Emit\EditAndContinue\DeletedParameterDefinition.cs (1)
44public IDefinition? AsDefinition(EmitContext context)
Emit\EditAndContinue\DeletedPropertyDefinition.cs (1)
61public IDefinition? AsDefinition(EmitContext context)
Emit\EditAndContinue\DeletedTypeDefinition.cs (1)
84public 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)
112Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedMethod.cs (1)
248Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedParameter.cs (1)
216Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedProperty.cs (1)
207Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (1)
555Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
202Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\NoPia\VtblGap.cs (1)
180Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
PEWriter\InheritedTypeParameter.cs (1)
184public IDefinition? AsDefinition(EmitContext context)
PEWriter\ModifiedTypeReference.cs (1)
143IDefinition? IReference.AsDefinition(EmitContext context)
PEWriter\ReturnValueParameter.cs (1)
110public IDefinition AsDefinition(EmitContext context)
PEWriter\RootModuleStaticConstructor.cs (1)
104public IDefinition AsDefinition(EmitContext context) => this;
PEWriter\RootModuleType.cs (1)
320IDefinition IReference.AsDefinition(EmitContext context)
Microsoft.CodeAnalysis.CSharp (16)
Emitter\Model\ArrayTypeSymbolAdapter.cs (1)
72Cci.IDefinition? Cci.IReference.AsDefinition(EmitContext context) => null;
Emitter\Model\AssemblyReference.cs (1)
53Cci.IDefinition Cci.IReference.AsDefinition(CodeAnalysis.Emit.EmitContext context)
Emitter\Model\EventSymbolAdapter.cs (1)
139Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\ExpandedVarargsMethodReference.cs (1)
151Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\FieldSymbolAdapter.cs (1)
118Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
55IDefinition? IReference.AsDefinition(EmitContext context) => null;
Emitter\Model\MethodSymbolAdapter.cs (1)
66Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\ModuleReference.cs (1)
86Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\NamedTypeReference.cs (1)
161Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
273Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\ParameterSymbolAdapter.cs (1)
186Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\PointerTypeSymbolAdapter.cs (1)
110Cci.IDefinition? Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\PropertySymbolAdapter.cs (1)
253IDefinition IReference.AsDefinition(EmitContext context)
Emitter\Model\SymbolAdapter.cs (1)
29Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\TypeMemberReference.cs (1)
46Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
195Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AssemblyReference.cs (1)
31IDefinition? IReference.AsDefinition(EmitContext context)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (1)
NamespaceTypeDefinitionNoBase.cs (1)
96IDefinition IReference.AsDefinition(EmitContext context) => UnderlyingType.AsDefinition(context);
Microsoft.CodeAnalysis.VisualBasic (5)
Emit\AssemblyReference.vb (1)
56Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.IReference.AsDefinition
Emit\ModuleReference.vb (1)
69Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.IReference.AsDefinition
Emit\NamedTypeReference.vb (1)
116Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.IReference.AsDefinition
Emit\SymbolAdapter.vb (1)
20Friend Overridable Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition _
Emit\TypeMemberReference.vb (1)
35Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.IReference.AsDefinition
15 references to AsDefinition
Microsoft.CodeAnalysis (9)
Emit\EditAndContinue\DeletedEventDefinition.cs (1)
46return OldDefinition.AsDefinition(context);
Emit\EditAndContinue\DeletedGenericParameter.cs (1)
64return OldDefinition.AsDefinition(context);
Emit\EditAndContinue\DeletedMethodDefinition.cs (1)
107return OldDefinition.AsDefinition(context);
Emit\EditAndContinue\DeletedPropertyDefinition.cs (1)
63return OldDefinition.AsDefinition(context);
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
641var methodDef = (IMethodDefinition?)methodImpl.ImplementingMethod.AsDefinition(this.Context); 1793var methodDef = (IMethodDefinition?)methodImplementation.ImplementingMethod.AsDefinition(this.Context);
PEWriter\MetadataVisitor.cs (1)
555if (typeMemberReference.AsDefinition(Context) == null)
PEWriter\MetadataWriter.cs (2)
1863entryPointHandle = entryPoint != null ? (MethodDefinitionHandle)GetMethodHandle((IMethodDefinition)entryPoint.AsDefinition(Context)) : default(MethodDefinitionHandle); 1869debugEntryPointHandle = (MethodDefinitionHandle)GetMethodHandle((IMethodDefinition)debugEntryPoint.AsDefinition(Context));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (1)
NamespaceTypeDefinitionNoBase.cs (1)
96IDefinition IReference.AsDefinition(EmitContext context) => UnderlyingType.AsDefinition(context);
Microsoft.CodeAnalysis.VisualBasic (5)
Emit\AssemblyReference.vb (1)
56Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.IReference.AsDefinition
Emit\ModuleReference.vb (1)
69Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.IReference.AsDefinition
Emit\NamedTypeReference.vb (1)
116Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.IReference.AsDefinition
Emit\SymbolAdapter.vb (1)
21Implements Cci.IReference.AsDefinition
Emit\TypeMemberReference.vb (1)
35Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.IReference.AsDefinition