4 interfaces inheriting from IDefinition
Microsoft.CodeAnalysis (4)
PEWriter\Members.cs (2)
667internal interface IParameterDefinition : IDefinition, INamedEntity, IParameterTypeInformation 826internal interface ITypeDefinitionMember : ITypeMemberReference, IDefinition
PEWriter\Types.cs (1)
444internal interface ITypeDefinition : IDefinition, ITypeReference
PEWriter\Units.cs (1)
84internal interface IUnit : IUnitReference, IDefinition
139 references to IDefinition
Microsoft.CodeAnalysis (60)
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 (2)
266Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context) 523var previousTypeDef = symbolChanges.DefinitionMap.MapDefinition(typeDef);
Emit\EditAndContinue\DefinitionMap.cs (3)
89internal Cci.IDefinition? MapDefinition(Cci.IDefinition definition) 101internal bool DefinitionExists(Cci.IDefinition definition)
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\EditAndContinue\DeltaMetadataWriter.cs (5)
757where T : class, IDefinition 1137where T : class, IDefinition 1307where T : class, IDefinition 1428private sealed class DefinitionIndex<T> : DefinitionIndexBase<T> where T : class, IDefinition 1842private bool ShouldVisit(IDefinition def)
Emit\EditAndContinue\EmitBaseline.cs (4)
232generationOrdinals: new Dictionary<Cci.IDefinition, int>(), 291internal readonly IReadOnlyDictionary<Cci.IDefinition, int> GenerationOrdinals; 353IReadOnlyDictionary<Cci.IDefinition, int> generationOrdinals, 458IReadOnlyDictionary<Cci.IDefinition, int> generationOrdinals,
Emit\EditAndContinue\SymbolChanges.cs (11)
73private ImmutableArray<ISymbolInternal> GetDeletedMemberInternalSymbols(IDefinition containingType, bool includeMethods, bool includeProperties, bool includeEvents) 130public ImmutableArray<ISymbolInternal> GetDeletedMethods(IDefinition containingType) 133public ImmutableArray<ISymbolInternal> GetDeletedProperties(IDefinition containingType) 136public ImmutableArray<ISymbolInternal> GetDeletedEvents(IDefinition containingType) 139public bool IsReplaced(IDefinition definition, bool checkEnclosingTypes = false) 183var definition = (IDefinition)symbol.GetCciAdapter(); 208public SymbolChange GetChange(IDefinition def) 216var generatorChange = GetChange((IDefinition)synthesizedSymbol.Method.GetCciAdapter()); 586internal IDefinition? GetContainingDefinitionForBackingField(IFieldDefinition fieldDefinition) 597return GetISymbolInternalOrNull(associatedSymbol)?.GetCciAdapter() as IDefinition;
Emit\EditAndContinue\SymbolMatcher.cs (4)
17public abstract Cci.IDefinition? MapDefinition(Cci.IDefinition definition); 23return (adapter is Cci.IDefinition definition) ? 75where K : class, Cci.IDefinition
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\Core.cs (1)
39IDefinition? AsDefinition(EmitContext context);
PEWriter\InheritedTypeParameter.cs (2)
184public IDefinition? AsDefinition(EmitContext context) 186return this as IDefinition;
PEWriter\MetadataWriter.cs (1)
1674internal EntityHandle GetDefinitionHandle(IDefinition definition)
PEWriter\ModifiedTypeReference.cs (1)
143IDefinition? IReference.AsDefinition(EmitContext context)
PEWriter\ReturnValueParameter.cs (2)
110public IDefinition AsDefinition(EmitContext context) 112return this as IDefinition;
PEWriter\RootModuleStaticConstructor.cs (1)
104public IDefinition AsDefinition(EmitContext context) => this;
PEWriter\RootModuleType.cs (1)
320IDefinition IReference.AsDefinition(EmitContext context)
PEWriter\Units.cs (2)
29public readonly IDefinition Definition; 35public DefinitionWithLocation(IDefinition definition,
Microsoft.CodeAnalysis.CSharp (28)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (9)
64public override Cci.IDefinition? MapDefinition(Cci.IDefinition definition) 68return (Cci.IDefinition?)_symbols.Visit(symbol)?.GetCciAdapter(); 101private readonly ConcurrentDictionary<Cci.IDefinition, Cci.IDefinition?> _matches = new(ReferenceEqualityComparer.Instance); 109public Cci.IDefinition? VisitDef(Cci.IDefinition def) 112private Cci.IDefinition? VisitDefInternal(Cci.IDefinition def)
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\PEModuleBuilder.cs (3)
371AddSymbolLocation(result, location, (Cci.IDefinition)symbol.GetCciAdapter()); 439AddSymbolLocation(result, location, (Cci.IDefinition)symbol.GetCciAdapter()); 443private void AddSymbolLocation(MultiDictionary<Cci.DebugSourceDocument, Cci.DefinitionWithLocation> result, Location location, Cci.IDefinition definition)
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.CSharp.Emit.UnitTests (21)
Emit\EditAndContinue\SymbolMatcherTests.cs (21)
103var other = matcher.MapDefinition((Cci.IDefinition)member.GetCciAdapter()); 146var other = matcher.MapDefinition((Cci.IMethodDefinition)member.GetCciAdapter()); 178var other = matcher.MapDefinition(member.GetCciAdapter()); 355var mf1 = matcher.MapDefinition(f1.GetCciAdapter()); 689var other = matcher.MapDefinition(member.GetCciAdapter()); 722var other = matcher.MapDefinition(member.GetCciAdapter()); 755var other = matcher.MapDefinition(member.GetCciAdapter()); 788var other = matcher.MapDefinition(member.GetCciAdapter()); 821var other = matcher.MapDefinition(member.GetCciAdapter()); 854var other = matcher.MapDefinition(member.GetCciAdapter()); 887var other = matcher.MapDefinition(member.GetCciAdapter()); 920var other = matcher.MapDefinition(member.GetCciAdapter()); 953var other = matcher.MapDefinition(member.GetCciAdapter()); 986var other = matcher.MapDefinition(member.GetCciAdapter()); 1182var other = matcher.MapDefinition(member.GetCciAdapter()); 1216var other = matcher.MapDefinition(member.GetCciAdapter()); 1250var other = matcher.MapDefinition(member.GetCciAdapter()); 1282var other = matcher.MapDefinition(member.GetCciAdapter()); 1589var other = matcher.MapDefinition(member.GetCciAdapter()); 1721var other = matcher.MapDefinition(member.GetCciAdapter());
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 (27)
Emit\ArrayTypeSymbolAdapter.vb (1)
135Friend NotOverridable Overrides Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition ' Implements IReference.AsDefinition
Emit\AssemblyReference.vb (1)
56Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.IReference.AsDefinition
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (11)
46Public Overrides Function MapDefinition(definition As Cci.IDefinition) As Cci.IDefinition 49Return DirectCast(_symbols.Visit(symbol)?.GetCciAdapter(), Cci.IDefinition) 75Private ReadOnly _matches As ConcurrentDictionary(Of Cci.IDefinition, Cci.IDefinition) 80Me._matches = New ConcurrentDictionary(Of Cci.IDefinition, Cci.IDefinition)(ReferenceEqualityComparer.Instance) 83Public Function VisitDef(def As Cci.IDefinition) As Cci.IDefinition 87Private Function VisitDefInternal(def As Cci.IDefinition) As Cci.IDefinition
Emit\EventSymbolAdapter.vb (1)
113Friend Overrides Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition 'Implements Cci.IReference.AsDefinition
Emit\FieldSymbolAdapter.vb (1)
94Friend NotOverridable Overrides Function IReferenceAsDefinition(context As EmitContext) As IDefinition ' Implements IReference.AsDefinition
Emit\MethodSymbolAdapter.vb (1)
51Friend NotOverridable Overrides Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition ' Implements 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\NamedTypeSymbolAdapter.vb (1)
210Friend NotOverridable Overrides Function IReferenceAsDefinition(context As EmitContext) As IDefinition ' Implements IReference.AsDefinition
Emit\ParameterSymbolAdapter.vb (1)
127Friend NotOverridable Overrides Function IReferenceAsDefinition(context As EmitContext) As IDefinition ' Implements IReference.AsDefinition
Emit\PEModuleBuilder.vb (3)
229AddSymbolLocation(result, location, DirectCast(symbol.GetCciAdapter(), Cci.IDefinition)) 275AddSymbolLocation(result, location, DirectCast(symbol.GetCciAdapter(), Cci.IDefinition)) 279Private Sub AddSymbolLocation(result As MultiDictionary(Of Cci.DebugSourceDocument, Cci.DefinitionWithLocation), location As Location, definition As Cci.IDefinition)
Emit\PropertySymbolAdapter.vb (1)
170Friend NotOverridable Overrides Function IReferenceAsDefinition(context As EmitContext) As IDefinition ' Implements 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
Emit\TypeParameterSymbolAdapter.vb (1)
163Friend NotOverridable Overrides Function IReferenceAsDefinition(context As EmitContext) As IDefinition ' Implements IReference.AsDefinition
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EditAndContinue\SymbolMatcherTests.vb (1)
82Dim other = matcher.MapDefinition(DirectCast(member.GetCciAdapter(), Cci.IDefinition))