2 writes to Symbol
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (2)
24Symbol = symbol; 31Symbol = null;
12 references to Symbol
Microsoft.CodeAnalysis.Workspaces (12)
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (1)
148? symbol.GetSymbolKey(cancellationToken).Resolve(compilation, cancellationToken: cancellationToken).Symbol
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (3)
11/// single <see cref="ISymbol"/> then that will be returned in <see cref="Symbol"/>. Otherwise, if the key resolves 15/// If no symbol can be found <see cref="Symbol"/> will be <c>null</c> and <see cref="CandidateSymbols"/> 36internal int SymbolCount => Symbol != null ? 1 : CandidateSymbols.Length;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.Enumeration.cs (4)
33if (_symbolKeyResolution.Symbol != null) 35return ++_index == 0 && _symbolKeyResolution.Symbol is TSymbol; 53if (_symbolKeyResolution.Symbol != null) 55return (TSymbol)_symbolKeyResolution.Symbol;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolutionExtensions.cs (2)
11if (resolution.Symbol != null) 13return resolution.Symbol;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (2)
85return InSource(result.Symbol) ? result.Symbol : result.CandidateSymbols.FirstOrDefault(InSource);