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