5 interfaces inheriting from IDefinition
Microsoft.CodeAnalysis (5)
PEWriter\Members.cs (2)
677internal interface IParameterDefinition : IDefinition, INamedEntity, IParameterTypeInformation 836internal interface ITypeDefinitionMember : ITypeMemberReference, IDefinition
PEWriter\Types.cs (2)
129internal interface IGenericParameter : IDefinition, IGenericParameterReference 449internal interface ITypeDefinition : IDefinition, ITypeReference
PEWriter\Units.cs (1)
84internal interface IUnit : IUnitReference, IDefinition
1 implementation of IDefinition
Microsoft.CodeAnalysis (1)
Emit\EditAndContinue\DeletedSourceDefinition.cs (1)
14internal abstract class DeletedSourceDefinition<T> : IDefinition
79 references to IDefinition
Microsoft.CodeAnalysis (59)
CodeGen\ArrayMembers.cs (1)
357public Cci.IDefinition? AsDefinition(EmitContext context)
CodeGen\PrivateImplementationDetails.cs (1)
677public Cci.IDefinition AsDefinition(EmitContext context)
Emit\CommonPEModuleBuilder.cs (2)
293bool Cci.IDefinition.IsEncDeleted => false; 305Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
Emit\EditAndContinue\DefinitionMap.cs (4)
107internal Cci.IDefinition? MapDefinition(Cci.IDefinition definition) 119internal bool DefinitionExists(Cci.IDefinition definition) 125internal EntityHandle GetInitialMetadataHandle(Cci.IDefinition def)
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
161public Cci.IDefinition? AsDefinition(EmitContext context)
Emit\EditAndContinue\DeletedSourceDefinition.cs (2)
15where T : IDefinition 48public IDefinition? AsDefinition(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (5)
803where T : class, IDefinition 1213where T : class, IDefinition 1407where T : class, IDefinition 1530private sealed class DefinitionIndex<T> : DefinitionIndexBase<T> where T : class, IDefinition 1921private bool ShouldVisit(IDefinition def)
Emit\EditAndContinue\EmitBaseline.cs (4)
176generationOrdinals: new Dictionary<Cci.IDefinition, int>(), 233internal readonly IReadOnlyDictionary<Cci.IDefinition, int> GenerationOrdinals; 297IReadOnlyDictionary<Cci.IDefinition, int> generationOrdinals, 396IReadOnlyDictionary<Cci.IDefinition, int> generationOrdinals,
Emit\EditAndContinue\SymbolChanges.cs (7)
59public bool IsReplacedDef(IDefinition definition, bool checkEnclosingTypes = false) 101var definition = (IDefinition)symbol.GetCciAdapter(); 126public SymbolChange GetChange(IDefinition def) 140var generatorChange = GetChange((IDefinition)synthesizedSymbol.Method.GetCciAdapter()); 535internal IDefinition? GetContainingDefinitionForBackingField(IFieldDefinition fieldDefinition) 536=> fieldDefinition.GetInternalSymbol() is { } fieldSymbol ? GetAssociatedSymbol(fieldSymbol)?.GetCciAdapter() as IDefinition : null;
Emit\EditAndContinue\SymbolMatcher.cs (4)
18public abstract Cci.IDefinition? MapDefinition(Cci.IDefinition definition); 24return (adapter is Cci.IDefinition definition) ? 77where 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)
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 (2)
22bool Cci.IDefinition.IsEncDeleted 184Cci.IDefinition Cci.IReference.AsDefinition(EmitContext context)
PEWriter\Core.cs (1)
50IDefinition? AsDefinition(EmitContext context);
PEWriter\InheritedTypeParameter.cs (2)
192public IDefinition? AsDefinition(EmitContext context) 194return this as IDefinition;
PEWriter\MetadataWriter.cs (3)
1674internal EntityHandle GetDefinitionHandle(IDefinition definition) 2094where T : IDefinition 2111where T : IDefinition
PEWriter\ModifiedTypeReference.cs (1)
143IDefinition? IReference.AsDefinition(EmitContext context)
PEWriter\ReturnValueParameter.cs (3)
19bool IDefinition.IsEncDeleted => false; 112public IDefinition AsDefinition(EmitContext context) 114return this as IDefinition;
PEWriter\RootModuleStaticConstructor.cs (2)
27bool IDefinition.IsEncDeleted => false; 106public IDefinition AsDefinition(EmitContext context) => this;
PEWriter\RootModuleType.cs (2)
106bool IDefinition.IsEncDeleted => false; 322IDefinition IReference.AsDefinition(EmitContext context)
PEWriter\Units.cs (2)
29public readonly IDefinition Definition; 35public DefinitionWithLocation(IDefinition definition,
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (20)
Emit\EditAndContinue\SymbolMatcherTests.cs (20)
114var other = matcher.MapDefinition((Cci.IDefinition)member.GetCciAdapter()); 148var other = matcher.MapDefinition((Cci.IMethodDefinition)member.GetCciAdapter()); 171var other = matcher.MapDefinition(member.GetCciAdapter()); 315var mf1 = matcher.MapDefinition(f1.GetCciAdapter()); 606var other = matcher.MapDefinition(member.GetCciAdapter()); 630var other = matcher.MapDefinition(member.GetCciAdapter()); 654var other = matcher.MapDefinition(member.GetCciAdapter()); 678var other = matcher.MapDefinition(member.GetCciAdapter()); 702var other = matcher.MapDefinition(member.GetCciAdapter()); 726var other = matcher.MapDefinition(member.GetCciAdapter()); 750var other = matcher.MapDefinition(member.GetCciAdapter()); 774var other = matcher.MapDefinition(member.GetCciAdapter()); 798var other = matcher.MapDefinition(member.GetCciAdapter()); 822var other = matcher.MapDefinition(member.GetCciAdapter()); 989var other = matcher.MapDefinition(member.GetCciAdapter()); 1014var other = matcher.MapDefinition(member.GetCciAdapter()); 1039var other = matcher.MapDefinition(member.GetCciAdapter()); 1062var other = matcher.MapDefinition(member.GetCciAdapter()); 1325var other = matcher.MapDefinition(member.GetCciAdapter()); 1421var other = matcher.MapDefinition(member.GetCciAdapter());