8 types derived from SyntaxReference
Microsoft.CodeAnalysis (1)
Syntax\TranslationSyntaxReference.cs (1)
15internal abstract class TranslationSyntaxReference : SyntaxReference
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SimpleSyntaxReference.cs (1)
13internal class SimpleSyntaxReference : SyntaxReference
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DeclarationTests.cs (1)
887private class Reference : SyntaxReference
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.NodeSyntaxReference.cs (1)
14internal sealed class NodeSyntaxReference : SyntaxReference
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\SimpleSyntaxReference.vb (1)
13Inherits SyntaxReference
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSymbolDeclarationService.vb (1)
34Inherits SyntaxReference
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSymbolDeclarationService.vb (1)
34Inherits SyntaxReference
Workspace\LanguageServices\VisualBasicSyntaxTreeFactoryService.NodeSyntaxReference.vb (1)
11Inherits SyntaxReference
772 references to SyntaxReference
Microsoft.AspNetCore.App.Analyzers (3)
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (2)
76foreach (var item in matchingParameter.DeclaringSyntaxReferences) 87foreach (var item in methodSymbol.DeclaringSyntaxReferences)
RouteHandlers\RouteHandlerAnalyzer.cs (1)
126var syntaxReference = methodReference.Method.DeclaringSyntaxReferences.Single();
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\InvocationOperationExtensions.cs (1)
99foreach (var syntaxReference in symbol.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis (39)
Compilation\Compilation.cs (3)
3527internal void MarkImportDirectiveAsUsed(SyntaxReference node) 3586internal abstract int CompareSourceLocations(SyntaxReference loc1, SyntaxReference loc2);
Compilation\IImportScope.cs (4)
90public SyntaxReference? DeclaringSyntaxReference { get; } 93internal ImportedNamespaceOrType(INamespaceOrTypeSymbol namespaceOrType, SyntaxReference? declaringSyntaxReference) 112public SyntaxReference? DeclaringSyntaxReference { get; } 114internal ImportedXmlNamespace(string xmlNamespace, SyntaxReference? declaringSyntaxReference)
Diagnostic\SourceLocation.cs (1)
48public SourceLocation(SyntaxReference syntaxRef)
DiagnosticAnalyzer\AnalysisScope.cs (2)
238Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> getTopmostNodeForAnalysis, 252foreach (var syntaxRef in symbolEvent.DeclaringSyntaxReferences)
DiagnosticAnalyzer\AnalyzerDriver.cs (6)
38private static readonly Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> s_getTopmostNodeForAnalysis = GetTopmostNodeForAnalysis; 1885private static SyntaxNode GetTopmostNodeForAnalysis(ISymbol symbol, SyntaxReference syntaxReference, Compilation compilation, CancellationToken cancellationToken) 2285foreach (var declaringRef in symbol.DeclaringSyntaxReferences) 2514foreach (var decl in declaringReferences) 2537SyntaxReference declaration, 2568SyntaxReference decl,
DiagnosticAnalyzer\AnalyzerExecutor.cs (9)
357Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> getTopMostNodeForAnalysis, 412Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> getTopMostNodeForAnalysis, 449Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> getTopMostNodeForAnalysis, 466Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> getTopMostNodeForAnalysis, 1369private Action<Diagnostic> GetAddDiagnostic(ISymbol contextSymbol, ImmutableArray<SyntaxReference> cachedDeclaringReferences, DiagnosticAnalyzer analyzer, Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> getTopMostNodeForAnalysis, CancellationToken cancellationToken) 1377ImmutableArray<SyntaxReference> cachedDeclaringReferences, 1383Func<ISymbol, SyntaxReference, Compilation, CancellationToken, SyntaxNode> getTopMostNodeForAnalysis, 1406foreach (var syntaxRef in cachedDeclaringReferences)
DiagnosticAnalyzer\SymbolDeclaredCompilationEvent.cs (3)
18private ImmutableArray<SyntaxReference> _lazyCachedDeclaringReferences; 28_lazyCachedDeclaringReferences = default(ImmutableArray<SyntaxReference>); 38public ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Emit\Context.cs (2)
14public readonly SyntaxReference? SyntaxReference; 37SyntaxReference? syntaxReference = null)
Symbols\Attributes\CommonAttributeData.cs (2)
36public SyntaxReference? ApplicationSyntaxReference { get { return CommonApplicationSyntaxReference; } } 37protected abstract SyntaxReference? CommonApplicationSyntaxReference { get; }
Symbols\ISymbol.cs (1)
190ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get; }
Syntax\SyntaxNode.cs (2)
708/// Gets a <see cref="SyntaxReference"/> for this syntax node. CommonSyntaxReferences can be used to 712public SyntaxReference GetReference()
Syntax\SyntaxTree.cs (1)
357public abstract SyntaxReference GetReference(SyntaxNode node);
Syntax\TranslationSyntaxReference.cs (3)
17private readonly SyntaxReference _reference; 19protected TranslationSyntaxReference(SyntaxReference reference) 41protected abstract SyntaxNode Translate(SyntaxReference reference, CancellationToken cancellationToken);
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
521var fadingLocation = member.DeclaringSyntaxReferences.FirstOrDefault(
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
78foreach (var syntaxRef in namedTypeSymbol.DeclaringSyntaxReferences)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
33foreach (var syntaxRef in symbol.DeclaringSyntaxReferences) 105foreach (var reference in container.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
46foreach (var reference in symbol.DeclaringSyntaxReferences)
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
62foreach (var declReference in declarationService.GetDeclarations(symbol))
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
58Solution solution, ImmutableArray<SyntaxReference> declarationReferences, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (3)
199foreach (var decl in declarations) 215private static async Task<SyntaxNode?> SelectFirstOrDefaultAsync(IEnumerable<SyntaxReference> references, Func<SyntaxNode, bool> predicate, CancellationToken cancellationToken) 217foreach (var r in references)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
24protected override SyntaxReference CommonApplicationSyntaxReference => null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
156public ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SymbolDeclarationService\ISymbolDeclarationService.cs (1)
17ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol);
Microsoft.CodeAnalysis.CSharp (270)
Binder\AliasAndExternAliasDirective.cs (1)
17public readonly SyntaxReference? ExternAliasDirectiveReference;
Binder\AliasAndUsingDirective.cs (1)
13public readonly SyntaxReference? UsingDirectiveReference;
Binder\Binder_Initializers.cs (2)
97SyntaxReference syntaxRef = initializer.Syntax; 193var syntaxRef = initializer.Syntax;
Binder\Binder_Lookup.cs (1)
389protected void MarkImportDirective(SyntaxReference directive, bool callerIsSemanticModel)
Binder\NamespaceOrTypeAndUsingDirective.cs (1)
14public readonly SyntaxReference? UsingDirectiveReference;
CodeGen\Optimizer.cs (1)
2401public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Compilation\CSharpCompilation.cs (2)
4530internal override int CompareSourceLocations(SyntaxReference loc1, SyntaxReference loc2)
Compiler\ClsComplianceChecker.cs (1)
657SyntaxReference syntaxRef = attribute.ApplicationSyntaxReference;
Compiler\DocumentationCommentCompiler.cs (1)
695foreach (SyntaxReference reference in symbol.DeclaringSyntaxReferences)
Declarations\DeclarationTreeBuilder.cs (3)
208var container = _syntaxTree.GetReference(node); 216private static SingleNamespaceOrTypeDeclaration CreateImplicitClass(BoxedMemberNames memberNames, SyntaxReference container, SingleTypeDeclaration.TypeDeclarationFlags declFlags) 329var parentReference = _syntaxTree.GetReference(parent);
Declarations\MergedTypeDeclaration.cs (2)
41public ImmutableArray<SyntaxReference> SyntaxReferences 71var syntaxRef = decl.SyntaxReference;
Declarations\RootSingleNamespaceDeclaration.cs (1)
31SyntaxReference treeNode,
Declarations\SingleNamespaceDeclaration.cs (2)
17SyntaxReference syntaxReference, 67SyntaxReference syntaxReference,
Declarations\SingleNamespaceDeclarationEx.cs (1)
18SyntaxReference syntaxReference, SourceLocation nameLocation,
Declarations\SingleNamespaceOrTypeDeclaration.cs (3)
13private readonly SyntaxReference _syntaxReference; 25SyntaxReference syntaxReference, 43public SyntaxReference SyntaxReference
Declarations\SingleTypeDeclaration.cs (1)
78SyntaxReference syntaxReference,
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (2)
50public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (2)
132public readonly SyntaxReference BlockSyntax; 160public NestedFunction(MethodSymbol symbol, SyntaxReference blockSyntax)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
32SyntaxReference blockSyntax,
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.cs (2)
114public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 116get { return ImmutableArray<SyntaxReference>.Empty; }
Lowering\SynthesizedMethodBaseSymbol.cs (1)
34SyntaxReference syntaxReference,
Symbols\AliasSymbol.cs (2)
126public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 278private readonly SyntaxReference _directive;
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
176public abstract override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.DelegatePublicSymbol.cs (2)
75public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\AnonymousTypes\PublicSymbols\AnonymousType.TypePublicSymbol.cs (1)
112public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (2)
123public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 127return ImmutableArray<SyntaxReference>.Empty;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
94public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (2)
215public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 217get { return ImmutableArray<SyntaxReference>.Empty; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (2)
49public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 53return ImmutableArray<SyntaxReference>.Empty;
Symbols\ArrayTypeSymbol.cs (2)
318public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 322return ImmutableArray<SyntaxReference>.Empty;
Symbols\AssemblySymbol.cs (2)
281public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 285return ImmutableArray<SyntaxReference>.Empty;
Symbols\Attributes\AttributeData.cs (2)
42public new abstract SyntaxReference? ApplicationSyntaxReference { get; } 207protected override SyntaxReference? CommonApplicationSyntaxReference
Symbols\Attributes\PEAttributeData.cs (1)
51public override SyntaxReference? ApplicationSyntaxReference
Symbols\Attributes\RetargetingAttributeData.cs (1)
45public override SyntaxReference? ApplicationSyntaxReference => null;
Symbols\Attributes\SourceAttributeData.cs (3)
28private readonly SyntaxReference _applicationNode; 32SyntaxReference applicationNode, 105public override SyntaxReference ApplicationSyntaxReference
Symbols\DiscardSymbol.cs (2)
23public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\DynamicTypeSymbol.cs (2)
78public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 82return ImmutableArray<SyntaxReference>.Empty;
Symbols\ErrorMethodSymbol.cs (2)
96public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 100return ImmutableArray<SyntaxReference>.Empty;
Symbols\ErrorPropertySymbol.cs (2)
64public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { return ImmutableArray<SyntaxReference>.Empty; } }
Symbols\ErrorTypeSymbol.cs (2)
262public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 266return ImmutableArray<SyntaxReference>.Empty;
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (2)
134public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 138return ImmutableArray<SyntaxReference>.Empty;
Symbols\FieldOrPropertyInitializer.cs (1)
27internal readonly SyntaxReference Syntax;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
827public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (2)
71public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (2)
81public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\FunctionTypeSymbol.cs (1)
114public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => throw ExceptionUtilities.Unreachable();
Symbols\LexicalSortKey.cs (1)
67public LexicalSortKey(SyntaxReference syntaxRef, CSharpCompilation compilation)
Symbols\MergedNamespaceSymbol.cs (1)
287public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Metadata\PE\PEEventSymbol.cs (2)
352public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 356return ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PEFieldSymbol.cs (2)
522public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 526return ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
989public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
1612public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 1616return ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PENamespaceSymbol.cs (2)
178public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 182return ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PEParameterSymbol.cs (2)
1041public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 1045return ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PEPropertySymbol.cs (2)
722public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 726return ImmutableArray<SyntaxReference>.Empty;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (2)
438public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 442return ImmutableArray<SyntaxReference>.Empty;
Symbols\MethodSymbolExtensions.cs (1)
200foreach (var reference in method.DeclaringSyntaxReferences)
Symbols\MissingNamespaceSymbol.cs (2)
102public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 106return ImmutableArray<SyntaxReference>.Empty;
Symbols\ModuleSymbol.cs (2)
188public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 192return ImmutableArray<SyntaxReference>.Empty;
Symbols\PointerTypeSymbol.cs (2)
189public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 193return ImmutableArray<SyntaxReference>.Empty;
Symbols\PublicModel\PreprocessingSymbol.cs (2)
62ImmutableArray<SyntaxReference> ISymbol.DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\PublicModel\Symbol.cs (1)
112ImmutableArray<SyntaxReference> ISymbol.DeclaringSyntaxReferences
Symbols\RangeVariableSymbol.cs (2)
54public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 59return ImmutableArray<SyntaxReference>.Empty;
Symbols\ReducedExtensionMethodSymbol.cs (1)
366public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Retargeting\RetargetingNamespaceSymbol.cs (1)
161public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\SignatureOnlyMethodSymbol.cs (1)
139public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyParameterSymbol.cs (1)
97public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\SignatureOnlyPropertySymbol.cs (1)
76public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get { throw ExceptionUtilities.Unreachable(); } }
Symbols\Source\CrefTypeParameterSymbol.cs (3)
69private readonly SyntaxReference _declaringSyntax; 185public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 189return ImmutableArray.Create<SyntaxReference>(_declaringSyntax);
Symbols\Source\GlobalExpressionVariable.cs (5)
26private readonly SyntaxReference _typeSyntaxOpt; 33SyntaxReference syntax, 53var syntaxReference = syntax.GetReference(); 165private readonly SyntaxReference _nodeToBind; 172SyntaxReference syntax,
Symbols\Source\IndexedTypeParameterSymbol.cs (2)
200public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 204return ImmutableArray<SyntaxReference>.Empty;
Symbols\Source\LambdaParameterSymbol.cs (1)
18SyntaxReference? syntaxRef,
Symbols\Source\LambdaSymbol.cs (2)
246public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 250return ImmutableArray.Create<SyntaxReference>(syntaxReferenceOpt);
Symbols\Source\LocalFunctionOrSourceMemberMethodSymbol.cs (1)
14protected LocalFunctionOrSourceMemberMethodSymbol(SyntaxReference? syntaxReferenceOpt, bool isIterator)
Symbols\Source\SourceClonedParameterSymbol.cs (2)
37public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 43return ImmutableArray<SyntaxReference>.Empty;
Symbols\Source\SourceComplexParameterSymbol.cs (5)
33private readonly SyntaxReference _syntaxRef; 46SyntaxReference syntaxRef, 84internal sealed override SyntaxReference SyntaxReference => _syntaxRef; 1698SyntaxReference syntaxRef, 1725SyntaxReference syntaxRef,
Symbols\Source\SourceEventAccessorSymbol.cs (1)
26SyntaxReference syntaxReference,
Symbols\Source\SourceEventSymbol.cs (4)
26private readonly SyntaxReference _syntaxRef; 125public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 129return ImmutableArray.Create<SyntaxReference>(_syntaxRef); 413internal SyntaxReference SyntaxReference
Symbols\Source\SourceFieldSymbol.cs (3)
171private readonly SyntaxReference _syntaxReference; 178protected SourceFieldSymbolWithSyntaxReference(SourceMemberContainerTypeSymbol containingType, string name, SyntaxReference syntax, TextSpan locationSpan) 225public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceLabelSymbol.cs (3)
87public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 103return node == null ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create<SyntaxReference>(node.GetReference());
Symbols\Source\SourceLocalSymbol.cs (1)
424public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Source\SourceMemberContainerSymbol.cs (7)
994public ImmutableArray<SyntaxReference> SyntaxReferences 1002public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 1023var syntaxRef = declaration.SyntaxReference; 1101var syntaxRef = declaration.SyntaxReference; 1859foreach (var syntaxRef in SyntaxReferences) 2748SyntaxReference? whereFoundField = null; 2754foreach (var syntaxRef in this.SyntaxReferences)
Symbols\Source\SourceMemberFieldSymbol.cs (1)
28SyntaxReference syntax,
Symbols\Source\SourceMemberMethodSymbol.cs (1)
322SyntaxReference syntaxReferenceOpt,
Symbols\Source\SourceMethodSymbolWithAttributes.cs (5)
33protected readonly SyntaxReference syntaxReferenceOpt; 34protected SourceMethodSymbolWithAttributes(SyntaxReference syntaxReferenceOpt) 77internal SyntaxReference SyntaxRef 101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 105return (this.syntaxReferenceOpt == null) ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create(this.syntaxReferenceOpt);
Symbols\Source\SourceNamedTypeSymbol.cs (4)
40foreach (SyntaxReference part in SyntaxReferences) 150foreach (var syntaxRef in this.SyntaxReferences) 326var syntaxRef = decl.SyntaxReference; 407var syntaxRef = decl.SyntaxReference;
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (6)
73var declarationSyntaxRef = declaration.SyntaxReference; 418internal ImmutableArray<AliasAndExternAliasDirective> GetExternAliases(SourceNamespaceSymbol declaringSymbol, SyntaxReference declarationSyntax) 525internal ImmutableDictionary<string, AliasAndUsingDirective> GetGlobalUsingAliasesMap(SourceNamespaceSymbol declaringSymbol, SyntaxReference declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 540internal ImmutableArray<NamespaceOrTypeAndUsingDirective> GetGlobalUsingNamespacesOrTypes(SourceNamespaceSymbol declaringSymbol, SyntaxReference declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 912internal void Complete(SourceNamespaceSymbol declaringSymbol, SyntaxReference declarationSyntax, CancellationToken cancellationToken) 962private static void Validate(SourceNamespaceSymbol declaringSymbol, SyntaxReference declarationSyntax, ExternAliasesAndDiagnostics externAliasesAndDiagnostics, UsingsAndDiagnostics usingsAndDiagnostics, DiagnosticBag? globalUsingDiagnostics)
Symbols\Source\SourceNamespaceSymbol.cs (4)
121private static readonly Func<SingleNamespaceDeclaration, SyntaxReference> s_declaringSyntaxReferencesSelector = d => 124public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 127private ImmutableArray<SyntaxReference> ComputeDeclaringReferencesCore() 468var declarationSyntaxRef = declaration.SyntaxReference;
Symbols\Source\SourceOrdinaryMethodOrUserDefinedOperatorSymbol.cs (1)
24protected SourceOrdinaryMethodOrUserDefinedOperatorSymbol(NamedTypeSymbol containingType, SyntaxReference syntaxReferenceOpt, Location location, bool isIterator, (DeclarationModifiers declarationModifiers, Flags flags) modifiersAndFlags)
Symbols\Source\SourceParameterSymbol.cs (3)
211internal abstract SyntaxReference SyntaxReference { get; } 274public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 279ImmutableArray<SyntaxReference>.Empty :
Symbols\Source\SourcePropertySymbolBase.cs (3)
47private readonly SyntaxReference _syntaxRef; 534public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 831internal SyntaxReference SyntaxReference
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
83internal override SyntaxReference? SyntaxReference
Symbols\Source\SourceTypeParameterSymbol.cs (8)
25private readonly ImmutableArray<SyntaxReference> _syntaxRefs; 34protected SourceTypeParameterSymbolBase(string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 52public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 60internal ImmutableArray<SyntaxReference> SyntaxReferences 122foreach (var syntaxRef in _syntaxRefs) 464public SourceTypeParameterSymbol(SourceNamedTypeSymbol owner, string name, int ordinal, VarianceKind varianceKind, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 609public SourceMethodTypeParameterSymbol(SourceMethodSymbol owner, string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs) 870public SourceOverridingMethodTypeParameterSymbol(OverriddenMethodTypeParameterMapBase map, string name, int ordinal, ImmutableArray<Location> locations, ImmutableArray<SyntaxReference> syntaxRefs)
Symbols\Source\SynthesizedAttributeData.cs (2)
46public override SyntaxReference? ApplicationSyntaxReference => null; 76public override SyntaxReference? ApplicationSyntaxReference => _original.ApplicationSyntaxReference;
Symbols\Source\ThisParameterSymbol.cs (2)
18public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 20get { return ImmutableArray<SyntaxReference>.Empty; }
Symbols\Source\TypeParameterBuilder.cs (4)
22private readonly SyntaxReference _syntaxRef; 26internal TypeParameterBuilder(SyntaxReference syntaxRef, SourceNamedTypeSymbol owner, Location location) 65private static ImmutableArray<SyntaxReference> ToSyntaxRefs(IList<TypeParameterBuilder> builders) 67var arrayBuilder = ArrayBuilder<SyntaxReference>.GetInstance(builders.Count);
Symbols\Symbol.cs (8)
488public abstract ImmutableArray<SyntaxReference> DeclaringSyntaxReferences { get; } 492/// <see cref="CSharpSyntaxNode"/> or <see cref="SyntaxReference"/>. 494internal static ImmutableArray<SyntaxReference> GetDeclaringSyntaxReferenceHelper<TNode>(ImmutableArray<Location> locations) 499return ImmutableArray<SyntaxReference>.Empty; 502ArrayBuilder<SyntaxReference> builder = ArrayBuilder<SyntaxReference>.GetInstance(); 940foreach (var syntaxRef in declaringReferences) 953protected static bool IsDefinedInSourceTree(SyntaxReference syntaxRef, SyntaxTree tree, TextSpan? definedWithinSpan)
Symbols\SymbolDistinguisher.cs (1)
165ImmutableArray<SyntaxReference> syntaxReferences = unwrappedSymbol.DeclaringSyntaxReferences;
Symbols\SymbolExtensions.cs (1)
363SyntaxReference? reference = symbol.DeclaringSyntaxReferences.FirstOrDefault();
Symbols\Synthesized\GeneratedLabelSymbol.cs (2)
47public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 51return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (2)
152public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListProperty.cs (1)
53public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _containingType.DeclaringSyntaxReferences;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (1)
49public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _containingType.DeclaringSyntaxReferences;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
829public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (4)
52public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 167public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
63public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 64=> ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedContainer.cs (2)
88public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
86public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (2)
107public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 111return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (2)
163public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 167return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (2)
196public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 200return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
96public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => [];
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (4)
77public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty; 241public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedInstanceMethodSymbol.cs (2)
21public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 25return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (2)
336public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 340return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedLocal.cs (2)
148public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 150get { return (_syntaxOpt == null) ? ImmutableArray<SyntaxReference>.Empty : ImmutableArray.Create(_syntaxOpt.GetReference()); }
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
140public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 144return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (2)
66public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (2)
119public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 123return ImmutableArray<SyntaxReference>.Empty;
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
62public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\SynthesizedNamespaceSymbol.cs (2)
64public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 65=> ImmutableArray<SyntaxReference>.Empty;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Tuples\TupleErrorFieldSymbol.cs (2)
123public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 128ImmutableArray<SyntaxReference>.Empty :
Symbols\Tuples\TupleFieldSymbol.cs (2)
183public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 188ImmutableArray<SyntaxReference>.Empty :
Symbols\UpdatedContainingSymbolLocal.cs (1)
81public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _underlyingLocal.DeclaringSyntaxReferences;
Symbols\Wrapped\WrappedEventSymbol.cs (1)
78public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
192public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedMethodSymbol.cs (1)
101public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
140public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
64public sealed override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedPropertySymbol.cs (1)
100public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
152public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
Syntax\CSharpSyntaxNode.cs (1)
205internal new SyntaxReference GetReference()
Syntax\CSharpSyntaxTree.Dummy.cs (1)
68public override SyntaxReference GetReference(SyntaxNode node)
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (1)
104public override SyntaxReference GetReference(SyntaxNode node)
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
118public override SyntaxReference GetReference(SyntaxNode node)
Syntax\NamespaceDeclarationSyntaxReference.cs (3)
18public NamespaceDeclarationSyntaxReference(SyntaxReference reference) 23protected override SyntaxNode Translate(SyntaxReference reference, CancellationToken cancellationToken) 28internal static SyntaxNode GetSyntax(SyntaxReference reference, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
143var localReference = outLocalSymbol.DeclaringSyntaxReferences.FirstOrDefault();
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
194var methodReference = owningMethod.DeclaringSyntaxReferences[0];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
237foreach (var syntaxRef in syntaxRefs) 384foreach (var syntaxReference in symbol.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
76var methodReference = methodSymbol.DeclaringSyntaxReferences.FirstOrDefault();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
99foreach (var reference in containingType.DeclaringSyntaxReferences)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSymbolDeclarationService.cs (1)
24public ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenTupleTest.cs (4)
15872private class SyntaxReferenceEqualityComparer : IEqualityComparer<SyntaxReference> 15877public bool Equals(SyntaxReference x, SyntaxReference y) 15882public int GetHashCode(SyntaxReference obj)
Microsoft.CodeAnalysis.CSharp.Features (11)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (2)
997protected override SyntaxNode? GetSymbolDeclarationSyntax(ISymbol symbol, Func<ImmutableArray<SyntaxReference>, SyntaxReference?> selector, CancellationToken cancellationToken)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (1)
281foreach (var syntaxReference in group)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (2)
223foreach (var syntaxRef in property.DeclaringSyntaxReferences) 243foreach (var syntaxRef in field.DeclaringSyntaxReferences)
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
165foreach (var syntaxRef in symbol.DeclaringSyntaxReferences)
NavigationBar\CSharpNavigationBarItemService.cs (2)
223private static TextSpan GetFieldReferenceSpan(SyntaxReference reference) 245private static TextSpan GetEnumMemberSpan(SyntaxReference reference)
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
143var localReference = outLocalSymbol.DeclaringSyntaxReferences.FirstOrDefault();
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
194var methodReference = owningMethod.DeclaringSyntaxReferences[0];
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
76var methodReference = methodSymbol.DeclaringSyntaxReferences.FirstOrDefault();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
6635foreach (var syntaxReference in context.Symbol.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
DeclarationTests.cs (3)
890private readonly SyntaxReference _underlyingSyntaxReference; 892public Reference(CountedSyntaxTree countedSyntaxTree, SyntaxReference syntaxReference) 996public override SyntaxReference GetReference(SyntaxNode node)
Symbols\MockNamedTypeSymbol.cs (2)
165public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 169return ImmutableArray.Create<SyntaxReference>();
Symbols\MockNamespaceSymbol.cs (2)
98public override ImmutableArray<SyntaxReference> DeclaringSyntaxReferences 102return ImmutableArray.Create<SyntaxReference>();
Symbols\Source\DeclaringSyntaxNodeTests.cs (3)
23private ImmutableArray<SyntaxReference> CheckDeclaringSyntaxNodes(Compilation compilation, 52private ImmutableArray<SyntaxReference> CheckDeclaringSyntaxNodesIncludingParameters(Compilation compilation, 77private ImmutableArray<SyntaxReference> CheckDeclaringSyntaxNodesWithoutGetDeclaredSymbol(Compilation compilation,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
67public override SyntaxReference GetReference(SyntaxNode node)
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
429foreach (var reference in enclosingNamedType.DeclaringSyntaxReferences)
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
144var syntaxRef = aliasReplacement.DeclaringSyntaxReferences.FirstOrDefault();
Simplification\Simplifiers\NameSimplifier.cs (2)
120var syntaxRef = aliasReplacement.DeclaringSyntaxReferences.FirstOrDefault(); 448var argumentDecl = argument.DeclaringSyntaxReferences.FirstOrDefault();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (2)
237foreach (var syntaxRef in syntaxRefs) 384foreach (var syntaxReference in symbol.DeclaringSyntaxReferences)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.cs (1)
99foreach (var reference in containingType.DeclaringSyntaxReferences)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeDeclarationSyntaxExtensions.cs (1)
82foreach (var syntaxRef in typeSymbol.DeclaringSyntaxReferences)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSymbolDeclarationService.cs (1)
24public ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.ParsedSyntaxTree.cs (1)
92public override SyntaxReference GetReference(SyntaxNode node)
Microsoft.CodeAnalysis.Features (16)
ChangeSignature\AbstractChangeSignatureService.cs (1)
168var reference = symbol.DeclaringSyntaxReferences.FirstOrDefault();
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
109foreach (var td in typeDeclaration)
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
176var fieldDeclaration = field.DeclaringSyntaxReferences.First(); 324var fieldDeclaration = field.DeclaringSyntaxReferences.First();
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
43public ImmutableArray<SyntaxReference> DeclaringSyntaxReferences => _symbol.DeclaringSyntaxReferences;
MoveStaticMembers\MoveStaticMembersOptions.cs (1)
41var sourceLocation = destination.DeclaringSyntaxReferences.First();
NavigationBar\AbstractNavigationBarItemService.cs (3)
44Solution solution, ISymbol symbol, SyntaxTree tree, Func<SyntaxReference, TextSpan> computeFullSpan) 51Func<SyntaxReference, TextSpan> computeFullSpan, 52ImmutableArray<SyntaxReference> allReferences)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
441var reference = method.DeclaringSyntaxReferences[0];
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
426var reference = property.DeclaringSyntaxReferences[0];
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
521var fadingLocation = member.DeclaringSyntaxReferences.FirstOrDefault(
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
78foreach (var syntaxRef in namedTypeSymbol.DeclaringSyntaxReferences)
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
46foreach (var reference in symbol.DeclaringSyntaxReferences)
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
58Solution solution, ImmutableArray<SyntaxReference> declarationReferences, CancellationToken cancellationToken)
ValueTracking\ValueTracker.cs (1)
46foreach (var syntaxRef in declaringSyntaxReferences)
Microsoft.CodeAnalysis.VisualBasic (309)
Analysis\FlowAnalysis\DataFlowPass.Symbols.vb (2)
60Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 62Return ImmutableArray(Of SyntaxReference).Empty
Binding\BackstopBinder.vb (1)
92Public Overrides Function GetSyntaxReference(node As VisualBasicSyntaxNode) As SyntaxReference
Binding\Binder.vb (1)
666Public Overridable Function GetSyntaxReference(node As VisualBasicSyntaxNode) As SyntaxReference
Binding\Binder_Imports.vb (2)
33Public MustOverride Sub AddMember(syntaxRef As SyntaxReference, member As NamespaceOrTypeSymbol, importsClausePosition As Integer, dependencies As IReadOnlyCollection(Of AssemblySymbol), isProjectImportsDeclaration As Boolean) 34Public MustOverride Sub AddAlias(syntaxRef As SyntaxReference, name As String, [alias] As AliasSymbol, importsClausePosition As Integer, dependencies As IReadOnlyCollection(Of AssemblySymbol))
Binding\Binder_XmlLiterals.vb (2)
1585Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1782Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Binding\Binders\AliasAndImportsClause.vb (2)
20Public ReadOnly SyntaxReference As SyntaxReference 23Public Sub New([alias] As AliasSymbol, importsClausePosition As Integer, syntaxReference As SyntaxReference, dependencies As ImmutableArray(Of AssemblySymbol))
Binding\Binders\NamespaceOrTypeAndImportsClause.vb (2)
12Public ReadOnly SyntaxReference As SyntaxReference 15Public Sub New(namespaceOrType As NamespaceOrTypeSymbol, importsClausePosition As Integer, syntaxReference As SyntaxReference, dependencies As ImmutableArray(Of AssemblySymbol))
Binding\Binders\XmlNamespaceAndImportsClause.vb (2)
10Public ReadOnly SyntaxReference As SyntaxReference 12Public Sub New(xmlNamespace As String, importsClausePosition As Integer, syntaxReference As SyntaxReference)
Binding\ProjectImportsBinder.vb (1)
35Public Overrides Function GetSyntaxReference(node As VisualBasicSyntaxNode) As SyntaxReference
Binding\SourceFileBinder.vb (1)
35Public Overrides Function GetSyntaxReference(node As VisualBasicSyntaxNode) As SyntaxReference
Binding\SpeculativeBinder.vb (1)
36Public Overrides Function GetSyntaxReference(node As VisualBasicSyntaxNode) As SyntaxReference
Compilation\ClsComplianceChecker.vb (1)
397Dim syntaxRef As SyntaxReference = attribute.ApplicationSyntaxReference
Compilation\VisualBasicCompilation.vb (2)
1257Friend Overrides Function CompareSourceLocations(first As SyntaxReference, second As SyntaxReference) As Integer
Declarations\GlobalNamespaceDeclaration.vb (1)
27syntaxReference As SyntaxReference,
Declarations\MergedNamespaceDeclaration.vb (2)
79Public ReadOnly Property SyntaxReferences As ImmutableArray(Of SyntaxReference) 81Dim references = ArrayBuilder(Of SyntaxReference).GetInstance()
Declarations\MergedTypeDeclaration.vb (2)
41Public ReadOnly Property SyntaxReferences As ImmutableArray(Of SyntaxReference) 44Dim builder = ArrayBuilder(Of SyntaxReference).GetInstance()
Declarations\RootSingleNamespaceDeclaration.vb (1)
27treeNode As SyntaxReference,
Declarations\SingleNamespaceDeclaration.vb (1)
23syntaxReference As SyntaxReference,
Declarations\SingleNamespaceOrTypeDeclaration.vb (2)
11Public ReadOnly SyntaxReference As SyntaxReference 14Protected Sub New(name As String, syntaxReference As SyntaxReference, nameLocation As Location)
Declarations\SingleTypeDeclaration.vb (1)
37syntaxReference As SyntaxReference,
Emit\SynthesizedNamespaceSymbol.vb (2)
44Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 46Return ImmutableArray(Of SyntaxReference).Empty
GlobalImport.vb (1)
19Private ReadOnly _clause As SyntaxReference
Lowering\LambdaRewriter\LambdaCapturedVariable.vb (2)
116Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 118Return ImmutableArray(Of SyntaxReference).Empty
Lowering\StateMachineRewriter\SynthesizedContainer.vb (2)
274Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 276Return ImmutableArray(Of SyntaxReference).Empty
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (2)
76Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 78Return ImmutableArray(Of SyntaxReference).Empty
Semantics\Operators.vb (2)
3315Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 3317Return ImmutableArray(Of SyntaxReference).Empty
Symbols\AliasSymbol.vb (1)
133Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (1)
83Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (1)
190Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (2)
176Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 178Return ImmutableArray(Of SyntaxReference).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (2)
197Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 199Return ImmutableArray(Of SyntaxReference).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (2)
275Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 277Return ImmutableArray(Of SyntaxReference).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (2)
57Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 59Return ImmutableArray(Of SyntaxReference).Empty
Symbols\ArrayTypeSymbol.vb (2)
295Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 297Return ImmutableArray(Of SyntaxReference).Empty
Symbols\AssemblySymbol.vb (2)
229Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 231Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Attributes\AttributeData.vb (2)
40Public MustOverride Shadows ReadOnly Property ApplicationSyntaxReference As SyntaxReference 167Protected Overrides ReadOnly Property CommonApplicationSyntaxReference As SyntaxReference
Symbols\Attributes\PEAttributeData.vb (1)
63Public Overrides ReadOnly Property ApplicationSyntaxReference As SyntaxReference
Symbols\Attributes\RetargetingAttributeData.vb (1)
52Public Overrides ReadOnly Property ApplicationSyntaxReference As SyntaxReference
Symbols\Attributes\SourceAttributeData.vb (3)
29Private ReadOnly _applicationNode As SyntaxReference 32ByVal applicationNode As SyntaxReference, 65Public Overrides ReadOnly Property ApplicationSyntaxReference As SyntaxReference
Symbols\ConstantValueUtils.vb (1)
25Public Function EvaluateFieldConstant(field As SourceFieldSymbol, equalsValueOrAsNewNodeRef As SyntaxReference, dependencies As ConstantFieldsInProgress.Dependencies, diagnostics As BindingDiagnosticBag) As EvaluatedConstant
Symbols\EmbeddedSymbols\Symbols\EmbeddedNamedTypeSymbol.vb (1)
26Dim references As ImmutableArray(Of SyntaxReference) = decl.SyntaxReferences
Symbols\ErrorMethodSymbol.vb (2)
54Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 56Return ImmutableArray(Of SyntaxReference).Empty
Symbols\ErrorTypeSymbol.vb (2)
133Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 135Return ImmutableArray(Of SyntaxReference).Empty
Symbols\FieldOrPropertyInitializer.vb (5)
27Public ReadOnly Syntax As SyntaxReference 41Public Sub New(syntax As SyntaxReference, precedingInitializersLength As Integer) 53Public Sub New(field As FieldSymbol, syntax As SyntaxReference, precedingInitializersLength As Integer) 68Public Sub New(fieldsOrProperties As ImmutableArray(Of Symbol), syntax As SyntaxReference, precedingInitializersLength As Integer) 82Public Sub New([property] As PropertySymbol, syntax As SyntaxReference, precedingInitializersLength As Integer)
Symbols\IndexedTypeParameterSymbol.vb (2)
161Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 163Return ImmutableArray(Of SyntaxReference).Empty
Symbols\InstanceErrorTypeSymbol.vb (2)
254Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 256Return ImmutableArray(Of SyntaxReference).Empty
Symbols\LabelSymbol.vb (2)
151Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 153Return ImmutableArray(Of SyntaxReference).Empty
Symbols\LexicalSortKey.vb (3)
100Public Sub New(syntaxRef As SyntaxReference, compilation As VisualBasicCompilation) 196Public Shared Function Compare(first As SyntaxReference, second As SyntaxReference, compilation As VisualBasicCompilation) As Integer
Symbols\MergedNamespaceSymbol.vb (2)
351Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 353Return ImmutableArray.CreateRange(Of SyntaxReference)(From ns In _namespacesToMerge, reference In ns.DeclaringSyntaxReferences Select reference)
Symbols\Metadata\PE\PEEventSymbol.vb (2)
247Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 249Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\PEFieldSymbol.vb (2)
363Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 365Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\PEMethodSymbol.vb (2)
907Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 909Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
824Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 826Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\PENamespaceSymbol.vb (2)
138Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 140Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\PEParameterSymbol.vb (2)
460Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 462Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\PEPropertySymbol.vb (2)
321Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 323Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Metadata\PE\PETypeParameterSymbol.vb (2)
278Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 280Return ImmutableArray(Of SyntaxReference).Empty
Symbols\MissingNamespaceSymbol.vb (2)
91Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 93Return ImmutableArray(Of SyntaxReference).Empty
Symbols\ModuleSymbol.vb (2)
80Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 82Return ImmutableArray(Of SyntaxReference).Empty
Symbols\PreprocessingSymbol.vb (1)
34Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\ReducedExtensionMethodSymbol.vb (3)
603Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 778Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 993Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingEventSymbol.vb (1)
166Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingFieldSymbol.vb (1)
222Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingMethodSymbol.vb (1)
262Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
437Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
132Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingParameterSymbol.vb (1)
210Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
193Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (1)
131Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SignatureOnlyMethodSymbol.vb (1)
204Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SignatureOnlyParameterSymbol.vb (1)
149Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SignatureOnlyPropertySymbol.vb (1)
220Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Source\CrefTypeParameterSymbol.vb (3)
28Private ReadOnly _syntaxReference As SyntaxReference 104Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 106Return ImmutableArray.Create(Of SyntaxReference)(Me._syntaxReference)
Symbols\Source\CustomEventAccessorSymbol.vb (1)
25syntaxRef As SyntaxReference,
Symbols\Source\LambdaParameterSymbol.vb (1)
143Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Source\LambdaSymbol.vb (1)
260Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Source\LocalSymbol.vb (9)
582Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 585Return ImmutableArray(Of SyntaxReference).Empty 721Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 788Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 921Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 925Return ImmutableArray(Of SyntaxReference).Empty 929Return ImmutableArray.Create(Of SyntaxReference)(_modifiedIdentifierOpt.GetReference()) 931Return ImmutableArray(Of SyntaxReference).Empty 983Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Source\MeParameterSymbol.vb (2)
48Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 50Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\RangeVariableSymbol.vb (7)
189Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 204Return ImmutableArray.Create(Of SyntaxReference)(collectionRange.GetReference()) 209Return ImmutableArray.Create(Of SyntaxReference)(expressionRange.GetReference()) 214Return ImmutableArray.Create(Of SyntaxReference)(aggregationRange.GetReference()) 217Return ImmutableArray(Of SyntaxReference).Empty 271Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 273Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SourceClonedParameterSymbol.vb (2)
33Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 37Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SourceComplexParameterSymbol.vb (7)
18Private ReadOnly _syntaxRef As SyntaxReference 188Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 191Return ImmutableArray(Of SyntaxReference).Empty 279syntaxRef As SyntaxReference, 295syntaxRef As SyntaxReference, 359Dim syntaxRef As SyntaxReference = Nothing 425syntaxRef As SyntaxReference,
Symbols\Source\SourceDelegateMethodSymbol.vb (2)
164Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 166Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SourceEnumConstantSymbol.vb (1)
112Private ReadOnly _equalsValueNodeRef As SyntaxReference
Symbols\Source\SourceEventSymbol.vb (3)
23Private ReadOnly _syntaxRef As SyntaxReference 450Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 526Friend ReadOnly Property SyntaxReference As SyntaxReference
Symbols\Source\SourceFieldSymbol.vb (4)
29Private ReadOnly _syntaxRef As SyntaxReference 48syntaxRef As SyntaxReference, 624Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 864Private Shared Function GetSymbolLocation(syntaxRef As SyntaxReference) As Location
Symbols\Source\SourceFile.vb (10)
43Public ReadOnly MemberImportsSyntax As ImmutableArray(Of SyntaxReference) 58memberImportsSyntax As ImmutableArray(Of SyntaxReference), 176Dim importMembersOfSyntax As ImmutableArray(Of SyntaxReference) = Nothing 243<Out> ByRef importMembersOfSyntax As ImmutableArray(Of SyntaxReference), 249Dim membersSyntaxBuilder = ArrayBuilder(Of SyntaxReference).GetInstance() 290Private ReadOnly _membersSyntaxBuilder As ArrayBuilder(Of SyntaxReference) 292Public Sub New(membersBuilder As ArrayBuilder(Of NamespaceOrTypeAndImportsClausePosition), membersSyntaxBuilder As ArrayBuilder(Of SyntaxReference)) 299syntaxRef As SyntaxReference, 315Public Overrides Sub AddAlias(syntaxRef As SyntaxReference, name As String, [alias] As AliasSymbol, importsClausePosition As Integer, dependencies As IReadOnlyCollection(Of AssemblySymbol)) 327memberImportsSyntax As ImmutableArray(Of SyntaxReference),
Symbols\Source\SourceLabelSymbol.vb (3)
60Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 64Return ImmutableArray.Create(Of SyntaxReference)(DirectCast(parentNode.GetReference(), SyntaxReference))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
1388Public ReadOnly Property SyntaxReferences As ImmutableArray(Of SyntaxReference) 1394Public NotOverridable Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Source\SourceMemberFieldSymbol.vb (7)
25syntaxRef As SyntaxReference, 296Protected ReadOnly _equalsValueOrAsNewInit As SyntaxReference 299syntaxRef As SyntaxReference, 302equalsValueOrAsNewInit As SyntaxReference) 325syntaxRef As SyntaxReference, 328equalsValueOrAsNewInit As SyntaxReference) 379syntaxRef As SyntaxReference,
Symbols\Source\SourceMethodSymbol.vb (5)
45Protected ReadOnly m_syntaxReferenceOpt As SyntaxReference 60syntaxRef As SyntaxReference, 797Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 851Private Function GetSymbolLocation(syntaxRef As SyntaxReference) As Location 2042syntaxRef As SyntaxReference,
Symbols\Source\SourceModuleSymbol.BoundImports.vb (2)
48Public ReadOnly SyntaxReference As SyntaxReference 50Public Sub New(import As GlobalImport, syntaxReference As SyntaxReference)
Symbols\Source\SourceModuleSymbol.vb (3)
455syntaxRef As SyntaxReference, 477Public Overrides Sub AddAlias(syntaxRef As SyntaxReference, name As String, [alias] As AliasSymbol, importsClausePosition As Integer, dependencies As IReadOnlyCollection(Of AssemblySymbol)) 1181For Each syntaxRef As SyntaxReference In named.SyntaxReferences
Symbols\Source\SourceNamedTypeSymbol.vb (1)
915Dim syntaxRefBuilder = ArrayBuilder(Of SyntaxReference).GetInstance()
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (4)
748Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1127Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1458Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 1734Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Source\SourceNamespaceSymbol.vb (4)
286Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 292Private Function ComputeDeclaringReferencesCore() As ImmutableArray(Of SyntaxReference) 295Dim builder As ArrayBuilder(Of SyntaxReference) = ArrayBuilder(Of SyntaxReference).GetInstance(declarations.Length)
Symbols\Source\SourceParameterSymbol.vb (2)
89Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 92Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SourcePropertyAccessorSymbol.vb (3)
31syntaxRef As SyntaxReference, 137Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 139Return If(Me.m_property.IsCustomProperty, MyBase.DeclaringSyntaxReferences, ImmutableArray(Of SyntaxReference).Empty)
Symbols\Source\SourcePropertySymbol.vb (8)
28Private ReadOnly _syntaxRef As SyntaxReference 29Private ReadOnly _blockRef As SyntaxReference 65syntaxRef As SyntaxReference, 66blockRef As SyntaxReference, 234syntaxRef As SyntaxReference, 457Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 973Friend ReadOnly Property SyntaxReference As SyntaxReference 979Friend ReadOnly Property BlockSyntaxReference As SyntaxReference
Symbols\Source\SourceTypeParameterSymbol.vb (7)
166Protected Shared Function GetSymbolLocation(syntaxRef As SyntaxReference) As Location 235Private ReadOnly _syntaxRefs As ImmutableArray(Of SyntaxReference) 238Public Sub New(container As SourceNamedTypeSymbol, ordinal As Integer, name As String, syntaxRefs As ImmutableArray(Of SyntaxReference)) 270Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 309Private ReadOnly _syntaxRef As SyntaxReference 314syntaxRef As SyntaxReference) 344Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Source\SourceWithEventsBackingFieldSymbol.vb (3)
26syntaxRef As SyntaxReference, 43Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 45Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SynthesizedConstructorSymbol.vb (1)
29syntaxReference As SyntaxReference,
Symbols\Source\SynthesizedFieldSymbol.vb (2)
142Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 144Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (2)
18Private ReadOnly _syntaxReference As SyntaxReference 22syntaxReference As SyntaxReference,
Symbols\Source\SynthesizedLambdaSymbol.vb (2)
59Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 61Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (3)
24Public ReadOnly AttributeSyntax As SyntaxReference 101Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 103Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (1)
20syntaxReference As SyntaxReference,
Symbols\SubstitutedEventSymbol.vb (1)
115Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SubstitutedFieldSymbol.vb (1)
156Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SubstitutedMethodSymbol.vb (1)
273Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SubstitutedNamedType.vb (1)
224Public NotOverridable Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SubstitutedParameterSymbol.vb (1)
92Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SubstitutedPropertySymbol.vb (1)
154Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SubstitutedTypeParameterSymbol.vb (1)
153Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Symbol.vb (14)
361Public MustOverride ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 390Friend Shared Function GetDeclaringSyntaxReferenceHelper(Of TNode As VisualBasicSyntaxNode)(locations As ImmutableArray(Of Location)) As ImmutableArray(Of SyntaxReference) 394Return ImmutableArray(Of SyntaxReference).Empty 396Dim builder As ArrayBuilder(Of SyntaxReference) = ArrayBuilder(Of SyntaxReference).GetInstance() 408Friend Shared Function GetDeclaringSyntaxReferenceHelper(references As ImmutableArray(Of SyntaxReference)) As ImmutableArray(Of SyntaxReference) 415Dim builder As ArrayBuilder(Of SyntaxReference) = ArrayBuilder(Of SyntaxReference).GetInstance() 426Friend Shared Function GetDeclaringSyntaxReferenceHelper(reference As SyntaxReference) As ImmutableArray(Of SyntaxReference) 430Return ImmutableArray.Create(Of SyntaxReference)(New BeginOfBlockSyntaxReference(reference)) 434Return ImmutableArray(Of SyntaxReference).Empty 1300Private ReadOnly Property ISymbol_DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) Implements ISymbol.DeclaringSyntaxReferences
Symbols\SynthesizedSymbols\SynthesizedAttributeData.vb (1)
81Public Overrides ReadOnly Property ApplicationSyntaxReference As SyntaxReference
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (2)
89Public NotOverridable Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 91Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (1)
121Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (2)
23Protected ReadOnly m_syntaxReference As SyntaxReference 34syntaxReference As SyntaxReference,
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (2)
300Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 302Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (4)
35Private ReadOnly _syntaxRef As SyntaxReference 42Friend Sub New(syntaxRef As SyntaxReference, containingSymbol As NamedTypeSymbol) 225Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 227Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (2)
144Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 146Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (2)
136Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 138Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedLocal.vb (2)
40Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 42Return If(_syntaxOpt Is Nothing, ImmutableArray(Of SyntaxReference).Empty, ImmutableArray.Create(_syntaxOpt.GetReference()))
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (2)
180Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 193Return ImmutableArray.Create(Of SyntaxReference)(node.GetReference)
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (2)
160Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 162Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (2)
223Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 226Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (2)
214Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 216Return ImmutableArray(Of SyntaxReference).Empty
Symbols\Tuples\TupleErrorFieldSymbol.vb (2)
98Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 101ImmutableArray(Of SyntaxReference).Empty,
Symbols\Tuples\TupleFieldSymbol.vb (2)
166Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 169ImmutableArray(Of SyntaxReference).Empty,
Symbols\Tuples\TupleTypeSymbol.vb (1)
164Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\UnboundGenericType.vb (1)
221Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedEventSymbol.vb (1)
52Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedFieldSymbol.vb (1)
118Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedMethodSymbol.vb (1)
72Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
96Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedParameterSymbol.vb (1)
61Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedPropertySymbol.vb (1)
71Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (1)
82Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Syntax\BeginOfBlockSyntaxReference.vb (2)
15Public Sub New(reference As SyntaxReference) 19Protected Overrides Function Translate(reference As SyntaxReference, cancellationToken As CancellationToken) As SyntaxNode
Syntax\NamespaceDeclarationSyntaxReference.vb (2)
17Public Sub New(reference As SyntaxReference) 21Protected Overrides Function Translate(reference As SyntaxReference, cancellationToken As CancellationToken) As SyntaxNode
Syntax\VisualBasicSyntaxNode.vb (1)
457Friend Shadows Function GetReference() As SyntaxReference
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (1)
67Public Overrides Function GetReference(node As SyntaxNode) As SyntaxReference
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
110Public Overrides Function GetReference(node As SyntaxNode) As SyntaxReference
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
135Public Overrides Function GetReference(node As SyntaxNode) As SyntaxReference
Syntax\VisualBasicSyntaxTree.vb (1)
154Friend Shared ReadOnly DummyReference As SyntaxReference = Dummy.GetReference(Dummy.GetRoot())
VisualBasicExtensions.vb (2)
223Friend Function GetLocation(syntaxReference As SyntaxReference) As Location 254Friend Function GetVisualBasicSyntax(syntaxReference As SyntaxReference, Optional cancellationToken As CancellationToken = Nothing) As VisualBasicSyntaxNode
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
218Function(n As SyntaxReference)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSymbolDeclarationService.vb (5)
26Public Function GetDeclarations(symbol As ISymbol) As ImmutableArray(Of SyntaxReference) Implements ISymbolDeclarationService.GetDeclarations 28ImmutableArray(Of SyntaxReference).Empty, 29symbol.DeclaringSyntaxReferences.SelectAsArray(Of SyntaxReference)( 36Private ReadOnly _reference As SyntaxReference 38Public Sub New(reference As SyntaxReference)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\AttributeTests_WellKnownAttributes.vb (1)
188Assert.Equal(ImmutableArray.Create(Of SyntaxReference)(), m.DeclaringSyntaxReferences)
Emit\EmitMetadata.vb (1)
482Assert.Equal(ImmutableArray.Create(Of SyntaxReference)(), method1Ret.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (15)
Symbols\DisplayClassVariable.vb (1)
146Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\EEDisplayClassFieldLocalSymbol.vb (2)
60Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 62Return ImmutableArray(Of SyntaxReference).Empty
Symbols\EELocalConstantSymbol.vb (2)
57Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 59Return ImmutableArray(Of SyntaxReference).Empty
Symbols\EELocalSymbol.vb (2)
83Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 85Return ImmutableArray(Of SyntaxReference).Empty
Symbols\EEMethodSymbol.vb (1)
360Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\EENamedTypeSymbol.vb (1)
269Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\EEStaticLocalSymbol.vb (2)
54Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 56Return ImmutableArray(Of SyntaxReference).Empty
Symbols\EETypeParameterSymbol.vb (1)
43Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Symbols\PlaceholderLocalSymbol.vb (2)
94Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 96Return ImmutableArray(Of SyntaxReference).Empty
Symbols\SimpleTypeParameterSymbol.vb (1)
103Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (3)
532Protected Overrides Function GetSymbolDeclarationSyntax(symbol As ISymbol, selector As Func(Of ImmutableArray(Of SyntaxReference), SyntaxReference), cancellationToken As CancellationToken) As SyntaxNode 534Dim syntaxRefs As ImmutableArray(Of SyntaxReference)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (10)
Compilation\GetImportScopesTests.vb (1)
51Private Shared Function IsSimpleImportsClauseWithName(declaringSyntaxReference As SyntaxReference, name As String) As Boolean
DeclaringSyntaxNodeTests.vb (8)
23Private Function CheckDeclaringSyntaxNodes(compilation As VisualBasicCompilation, symbol As Symbol, expectedNumber As Integer) As ImmutableArray(Of SyntaxReference) 24Dim declaringNodes As ImmutableArray(Of SyntaxReference) = symbol.DeclaringSyntaxReferences 51Private Function CheckDeclaringSyntaxNodesIncludingParameters(compilation As VisualBasicCompilation, symbol As Symbol, expectedNumber As Integer) As ImmutableArray(Of SyntaxReference) 52Dim nodes As ImmutableArray(Of SyntaxReference) = CheckDeclaringSyntaxNodes(compilation, symbol, expectedNumber) 72Private Function CheckDeclaringSyntaxNodesWithoutGetDeclaredSymbol(compilation As VisualBasicCompilation, symbol As Symbol, expectedNumber As Integer, expectedSyntaxKind As SyntaxKind) As ImmutableArray(Of SyntaxReference) 73Dim declaringNodes As ImmutableArray(Of SyntaxReference) = symbol.DeclaringSyntaxReferences 273Dim declaringNodes As ImmutableArray(Of SyntaxReference) = localA1Type.DeclaringSyntaxReferences 314Dim declaringNodes As ImmutableArray(Of SyntaxReference) = localA1Type.DeclaringSyntaxReferences
Semantics\AccessCheckTests.vb (1)
792Assert.Equal(ImmutableArray.Create(Of SyntaxReference)(), sourceAssem.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\SymbolErrorTests.vb (1)
22509Assert.Equal(ImmutableArray.Create(Of SyntaxReference)(), errTypeSym.DeclaringSyntaxReferences)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (7)
MockSymbols.vb (6)
88Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 90Return ImmutableArray.Create(Of SyntaxReference)() 253Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 255Return ImmutableArray.Create(Of SyntaxReference)() 576Public Overrides ReadOnly Property DeclaringSyntaxReferences As ImmutableArray(Of SyntaxReference) 578Return ImmutableArray.Create(Of SyntaxReference)()
ParserTestUtilities.vb (1)
489Public Overrides Function GetReference(node As SyntaxNode) As SyntaxReference
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
218Function(n As SyntaxReference)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSymbolDeclarationService.vb (5)
26Public Function GetDeclarations(symbol As ISymbol) As ImmutableArray(Of SyntaxReference) Implements ISymbolDeclarationService.GetDeclarations 28ImmutableArray(Of SyntaxReference).Empty, 29symbol.DeclaringSyntaxReferences.SelectAsArray(Of SyntaxReference)( 36Private ReadOnly _reference As SyntaxReference 38Public Sub New(reference As SyntaxReference)
Workspace\LanguageServices\VisualBasicSyntaxTreeFactoryService.ParsedSyntaxTree.vb (1)
94Public Overrides Function GetReference(node As SyntaxNode) As SyntaxReference
Microsoft.CodeAnalysis.Workspaces (12)
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (1)
111foreach (var declaration in service.GetDeclarations(container))
FindSymbols\SymbolFinder.cs (1)
254foreach (var location in symbol.DeclaringSyntaxReferences)
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (1)
50foreach (var syntaxRef in symbol.DeclaringSyntaxReferences)
ReassignedVariable\AbstractReassignedVariableService.cs (1)
202foreach (var syntaxReference in group)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
33foreach (var syntaxRef in symbol.DeclaringSyntaxReferences) 105foreach (var reference in container.DeclaringSyntaxReferences)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService_FindDeclaration.cs (3)
199foreach (var decl in declarations) 215private static async Task<SyntaxNode?> SelectFirstOrDefaultAsync(IEnumerable<SyntaxReference> references, Func<SyntaxNode, bool> predicate, CancellationToken cancellationToken) 217foreach (var r in references)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationAttributeData.cs (1)
24protected override SyntaxReference CommonApplicationSyntaxReference => null;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
156public ImmutableArray<SyntaxReference> DeclaringSyntaxReferences
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SymbolDeclarationService\ISymbolDeclarationService.cs (1)
17ImmutableArray<SyntaxReference> GetDeclarations(ISymbol symbol);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SymbolKeyTests.cs (1)
1553foreach (var declaringLocation in containingSymbol.DeclaringSyntaxReferences)
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
161foreach (SyntaxReference synref in methodSymbol.DeclaringSyntaxReferences)
Microsoft.Gen.Logging.Unit.Tests (3)
ParserUtilitiesTests.cs (3)
40var syntaxReferenceMock = new Mock<SyntaxReference>(); 44var anotherSyntaxReferenceMock = new Mock<SyntaxReference>(); 65var syntaxReferenceMock = new Mock<SyntaxReference>();
Microsoft.Interop.ComInterfaceGenerator (1)
ComMethodInfo.cs (1)
124foreach (var declaringSyntaxReference in method.DeclaringSyntaxReferences)
Microsoft.Interop.SourceGeneration (4)
DiagnosticExtensions.cs (4)
34SyntaxReference? syntaxReference = attributeData.ApplicationSyntaxReference; 48SyntaxReference? syntaxReference = attributeData.ApplicationSyntaxReference; 138SyntaxReference? syntaxReference = attributeData.ApplicationSyntaxReference; 152SyntaxReference? syntaxReference = attributeData.ApplicationSyntaxReference;
Microsoft.VisualStudio.LanguageServices (2)
Progression\GraphNodeIdCreation.cs (1)
521foreach (var reference in symbol.ContainingSymbol.DeclaringSyntaxReferences)
Progression\GraphQueries\CallsGraphQuery.cs (1)
46foreach (var reference in symbol.DeclaringSyntaxReferences)
Mvc.Api.Analyzers.Test (1)
DeclaredApiResponseMetadataTest.cs (1)
159protected override SyntaxReference CommonApplicationSyntaxReference => throw new System.NotImplementedException();
System.Text.Json.SourceGeneration (1)
Helpers\RoslynExtensions.cs (1)
33SyntaxReference? reference = attributeData.ApplicationSyntaxReference;