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