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