4 interfaces inheriting from IReference
Microsoft.CodeAnalysis (4)
PEWriter\Core.cs (1)
14
internal interface IDefinition :
IReference
PEWriter\Members.cs (1)
843
internal interface ITypeMemberReference :
IReference
, INamedEntity
PEWriter\Types.cs (1)
601
internal interface ITypeReference :
IReference
PEWriter\Units.cs (1)
91
internal interface IUnitReference :
IReference
, INamedEntity
3 implementations of IReference
Microsoft.CodeAnalysis (1)
Emit\NoPia\CommonEmbeddedMember.cs (1)
42
internal abstract class CommonEmbeddedMember<TMember> : CommonEmbeddedMember, Cci.
IReference
Microsoft.CodeAnalysis.CSharp (1)
Emitter\Model\SymbolAdapter.cs (1)
27
: Cci.
IReference
Microsoft.CodeAnalysis.VisualBasic (1)
Emit\SymbolAdapter.vb (1)
18
Implements Cci.
IReference
160 references to IReference
Microsoft.CodeAnalysis (76)
CodeGen\ArrayMembers.cs (1)
365
Symbols.ISymbolInternal? Cci.
IReference
.GetInternalSymbol() => null;
CodeGen\ILBuilderEmit.cs (1)
49
internal void EmitToken(Cci.
IReference
value, SyntaxNode? syntaxNode, DiagnosticBag diagnostics, Cci.MetadataWriter.RawTokenEncoding encoding = 0)
CodeGen\ITokenDeferral.cs (2)
12
uint GetFakeSymbolTokenForIL(Cci.
IReference
value, SyntaxNode? syntaxNode, DiagnosticBag diagnostics);
26
/// Gets the <see cref="Cci.
IReference
"/> or <see cref="Cci.ISignature"/> corresponding to this token.
CodeGen\PrivateImplementationDetails.cs (2)
531
Symbols.ISymbolInternal? Cci.
IReference
.GetInternalSymbol() => null;
682
Symbols.ISymbolInternal? Cci.
IReference
.GetInternalSymbol() => null;
CodeGen\ReferenceDependencyWalker.cs (1)
21
public static void VisitReference(Cci.
IReference
reference, EmitContext context)
CodeGen\TokenMap.cs (2)
21
/// This map supports tokens of type <see cref="Cci.ISignature"/> and <see cref="Cci.
IReference
"/>.
31
public uint GetOrAddTokenFor(
IReference
item, out bool referenceAdded)
Emit\CommonPEModuleBuilder.cs (4)
264
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
266
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
272
Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
354
public uint GetFakeSymbolTokenForIL(Cci.
IReference
symbol, SyntaxNode syntaxNode, DiagnosticBag diagnostics)
Emit\EditAndContinue\SymbolMatcher.cs (1)
22
var
adapter = symbol.GetCciAdapter();
Emit\ErrorType.cs (8)
168
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
173
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
178
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
183
Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
232
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
237
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
242
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
247
Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
Emit\NoPia\CommonEmbeddedEvent.cs (2)
174
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
179
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedField.cs (2)
181
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
186
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedMember.cs (4)
88
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
107
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
112
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
117
Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
Emit\NoPia\CommonEmbeddedMethod.cs (2)
243
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
248
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedParameter.cs (4)
192
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
211
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
216
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
221
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
Emit\NoPia\CommonEmbeddedProperty.cs (2)
202
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
207
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (4)
531
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
550
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
555
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
560
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
Emit\NoPia\CommonEmbeddedTypeParameter.cs (4)
191
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
197
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
202
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
207
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
Emit\NoPia\VtblGap.cs (4)
168
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
173
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
178
Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
180
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
IReferenceOrISignature.cs (1)
23
public IReferenceOrISignature(
IReference
item) => _item = item;
PEWriter\FullMetadataWriter.cs (1)
430
private readonly struct DefinitionIndex<T> where T : class,
IReference
PEWriter\InheritedTypeParameter.cs (1)
193
CodeAnalysis.Symbols.ISymbolInternal? Cci.
IReference
.GetInternalSymbol() => null;
PEWriter\MetadataWriter.cs (5)
1449
symbol = (errorEntity as Cci.
IReference
)?.GetInternalSymbol();
2085
where T :
IReference
2096
where T :
IReference
3076
if (entity is
IReference
reference)
4246
protected sealed class InstanceAndStructuralReferenceIndex<T> : HeapOrReferenceIndexBase<T> where T : class,
IReference
PEWriter\ModifiedTypeReference.cs (4)
70
IEnumerable<ICustomAttribute>
IReference
.GetAttributes(EmitContext context)
75
void
IReference
.Dispatch(MetadataVisitor visitor)
143
IDefinition?
IReference
.AsDefinition(EmitContext context)
148
CodeAnalysis.Symbols.ISymbolInternal? Cci.
IReference
.GetInternalSymbol() => null;
PEWriter\ReferenceIndexer.cs (1)
67
public void VisitMethodBodyReference(
IReference
reference)
PEWriter\ReturnValueParameter.cs (1)
115
CodeAnalysis.Symbols.ISymbolInternal? Cci.
IReference
.GetInternalSymbol() => null;
PEWriter\RootModuleStaticConstructor.cs (1)
106
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
PEWriter\RootModuleType.cs (3)
214
void
IReference
.Dispatch(MetadataVisitor visitor)
320
IDefinition
IReference
.AsDefinition(EmitContext context)
325
CodeAnalysis.Symbols.ISymbolInternal? Cci.
IReference
.GetInternalSymbol() => null;
PEWriter\SymbolEquivalentEqualityComparer.cs (5)
14
/// Allows for the comparison of two <see cref="
IReference
"/> instances or two <see cref="INamespace"/>
17
internal sealed class SymbolEquivalentEqualityComparer : IEqualityComparer<
IReference
?>, IEqualityComparer<INamespace?>
25
public bool Equals(
IReference
? x,
IReference
? y)
48
public int GetHashCode(
IReference
? obj)
PEWriter\Types.cs (1)
409
/// itself. Unlike <see cref="
IReference
.GetAttributes(EmitContext)"/> a
Symbols\ISymbolInternal.cs (2)
139
/// Returns an <see cref="Cci.
IReference
"/> instance associated with this symbol.
144
Cci.
IReference
GetCciAdapter();
Microsoft.CodeAnalysis.CSharp (48)
CodeGen\EmitStatement.cs (4)
1473
Cci.
IReference
stringHashMethodRef = privateImplClass.GetMethod(
1660
private void EmitStringCompareAndBranch(LocalOrParameter key, SyntaxNode syntaxNode, ConstantValue stringConstant, object targetLabel, Microsoft.Cci.
IReference
stringEqualityMethodRef)
1698
private void EmitCharCompareAndBranch(LocalOrParameter key, SyntaxNode syntaxNode, ConstantValue stringConstant, object targetLabel, Cci.
IReference
sequenceEqualsRef, Cci.
IReference
asSpanRef)
Emitter\Model\ArrayTypeSymbolAdapter.cs (2)
51
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
72
Cci.IDefinition? Cci.
IReference
.AsDefinition(EmitContext context) => null;
Emitter\Model\AssemblyReference.cs (4)
36
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
48
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(CodeAnalysis.Emit.EmitContext context)
53
Cci.IDefinition Cci.
IReference
.AsDefinition(CodeAnalysis.Emit.EmitContext context)
58
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
Emitter\Model\EventSymbolAdapter.cs (2)
133
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
139
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
Emitter\Model\ExpandedVarargsMethodReference.cs (4)
130
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
135
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
151
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
156
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
Emitter\Model\FieldSymbolAdapter.cs (2)
100
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
118
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (3)
37
void
IReference
.Dispatch(MetadataVisitor visitor) => visitor.Visit((IFunctionPointerTypeReference)this);
54
IEnumerable<ICustomAttribute>
IReference
.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
55
IDefinition?
IReference
.AsDefinition(EmitContext context) => null;
Emitter\Model\MethodSymbolAdapter.cs (2)
66
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
90
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
Emitter\Model\ModuleReference.cs (4)
31
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
81
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
86
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
91
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => null;
Emitter\Model\NamedTypeReference.cs (3)
154
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
161
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
166
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => UnderlyingNamedType;
Emitter\Model\NamedTypeSymbolAdapter.cs (2)
215
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
273
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
Emitter\Model\ParameterSymbolAdapter.cs (2)
163
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
186
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
Emitter\Model\PointerTypeSymbolAdapter.cs (2)
105
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
110
Cci.IDefinition? Cci.
IReference
.AsDefinition(EmitContext context)
Emitter\Model\PropertySymbolAdapter.cs (2)
247
void
IReference
.Dispatch(MetadataVisitor visitor)
253
IDefinition
IReference
.AsDefinition(EmitContext context)
Emitter\Model\SymbolAdapter.cs (5)
29
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
34
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => AdaptedSymbol;
36
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
41
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
72
Cci.
IReference
CodeAnalysis.Symbols.ISymbolInternal.GetCciAdapter() => GetCciAdapter();
Emitter\Model\TypeMemberReference.cs (3)
39
IEnumerable<Cci.ICustomAttribute> Cci.
IReference
.GetAttributes(EmitContext context)
46
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
51
CodeAnalysis.Symbols.ISymbolInternal Cci.
IReference
.GetInternalSymbol() => UnderlyingSymbol;
Emitter\Model\TypeParameterSymbolAdapter.cs (2)
151
void Cci.
IReference
.Dispatch(Cci.MetadataVisitor visitor)
195
Cci.IDefinition Cci.
IReference
.AsDefinition(EmitContext context)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1924
symbol = (type as Cci.
IReference
)?.GetInternalSymbol() as Symbol;
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (4)
AssemblyReference.cs (4)
31
IDefinition?
IReference
.AsDefinition(EmitContext context)
36
void
IReference
.Dispatch(MetadataVisitor visitor)
41
IEnumerable<ICustomAttribute>
IReference
.GetAttributes(EmitContext context)
46
Symbols.ISymbolInternal?
IReference
.GetInternalSymbol() => null;
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (4)
NamespaceTypeDefinitionNoBase.cs (4)
96
IDefinition
IReference
.AsDefinition(EmitContext context) => UnderlyingType.AsDefinition(context);
104
void
IReference
.Dispatch(MetadataVisitor visitor) => UnderlyingType.Dispatch(visitor);
106
IEnumerable<ICustomAttribute>
IReference
.GetAttributes(EmitContext context) => UnderlyingType.GetAttributes(context);
128
Symbols.ISymbolInternal
IReference
.GetInternalSymbol() => null;
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\ILBuilderVisualizer.cs (2)
62
ISymbol symbol = ((reference as ISymbolInternal) ?? (reference as Cci.
IReference
)?.GetInternalSymbol())?.GetISymbol();
68
return (((type as ISymbolInternal) ?? (type as Cci.
IReference
)?.GetInternalSymbol()) is ISymbolInternal symbol) ? symbol.GetISymbol().ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat) : type.ToString();
Microsoft.CodeAnalysis.VisualBasic (25)
CodeGen\EmitStatement.vb (3)
1093
Dim stringHashMethodRef As Microsoft.Cci.
IReference
= privateImplClass.GetMethod(PrivateImplementationDetails.SynthesizedStringHashFunctionName)
1119
Dim stringCompareMethodRef As Cci.
IReference
= Me._module.Translate(stringCompareMethod, needDeclaration:=False, syntaxNodeOpt:=syntaxNode, diagnostics:=_diagnostics)
1147
Private Sub EmitStringCompareAndBranch(key As LocalOrParameter, syntaxNode As SyntaxNode, stringConstant As ConstantValue, targetLabel As Object, stringCompareMethodRef As Microsoft.Cci.
IReference
)
Emit\AssemblyReference.vb (4)
34
Private Sub IReferenceDispatch(visitor As Cci.MetadataVisitor) Implements Cci.
IReference
.Dispatch
52
Private Function IReferenceAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.
IReference
.GetAttributes
56
Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.
IReference
.AsDefinition
60
Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.
IReference
.GetInternalSymbol
Emit\EditAndContinue\VisualBasicDefinitionMap.vb (1)
145
Dim awaiters = New Dictionary(Of Cci.ITypeReference, Integer)(DirectCast(Cci.SymbolEquivalentEqualityComparer.Instance, IEqualityComparer(Of Cci.
IReference
)))
Emit\ModuleReference.vb (4)
26
Private Sub IReferenceDispatch(visitor As Cci.MetadataVisitor) Implements Cci.
IReference
.Dispatch
65
Private Function IReferenceAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.
IReference
.GetAttributes
69
Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.
IReference
.AsDefinition
73
Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.
IReference
.GetInternalSymbol
Emit\NamedTypeReference.vb (4)
110
Private Function IReferenceAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.
IReference
.GetAttributes
114
Public MustOverride Sub Dispatch(visitor As Cci.MetadataVisitor) Implements Cci.
IReference
.Dispatch
116
Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.
IReference
.AsDefinition
120
Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.
IReference
.GetInternalSymbol
Emit\SymbolAdapter.vb (5)
21
Implements Cci.
IReference
.AsDefinition
26
Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.
IReference
.GetInternalSymbol
31
Implements Cci.
IReference
.Dispatch
36
Private Function IReferenceGetAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.
IReference
.GetAttributes
62
Private Function ISymbolInternalGetCciAdapter() As Cci.
IReference
Implements CodeAnalysis.Symbols.ISymbolInternal.GetCciAdapter
Emit\TypeMemberReference.vb (4)
29
Private Function IReferenceAttributes(context As EmitContext) As IEnumerable(Of Cci.ICustomAttribute) Implements Cci.
IReference
.GetAttributes
33
Public MustOverride Sub Dispatch(visitor As Cci.MetadataVisitor) Implements Cci.
IReference
.Dispatch
35
Private Function IReferenceAsDefinition(context As EmitContext) As Cci.IDefinition Implements Cci.
IReference
.AsDefinition
39
Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.
IReference
.GetInternalSymbol