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