1 write to Definition
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\ReferencedSymbol.cs (1)
45this.Definition = definition;
34 references to Definition
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
153return referencedSymbols.Select(referencedSymbol => referencedSymbol.Definition)
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
142var referencedSymbol = references.FirstOrDefault(r => Equals(r.Definition, methodSymbol));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
121.Where(r => Equals(r.Definition, field))
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
121.Where(r => Equals(r.Definition, field))
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
FindReferences\FindReferencesTests.vb (2)
460Return referencedSymbol.Definition.IsImplicitlyDeclared AndAlso 461referencedSymbol.Definition.Kind = SymbolKind.Namespace
Microsoft.CodeAnalysis.Features (8)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
230if (addAllDefinitions && ShouldIncludeDefinition(reference.Definition)) 232foreach (var location in reference.Definition.Locations)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
455var definition = referencedSymbol.Definition as IMethodSymbol;
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (4)
96where r.Definition is IPropertySymbol 98select (property: (IPropertySymbol)r.Definition, location: loc); 125if (reference.Definition is IPropertySymbol property) 328var definition = referencedSymbol.Definition as IPropertySymbol;
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
153return referencedSymbols.Select(referencedSymbol => referencedSymbol.Definition)
Microsoft.CodeAnalysis.Workspaces (8)
FindSymbols\ReferencedSymbol.cs (1)
52return string.Format("{0}, {1} {2}", this.Definition.Name, count, count == 1 ? "ref" : "refs");
FindSymbols\SymbolFinder_Callers.cs (2)
47r => SymbolEquivalenceComparer.Instance.Equals(symbol, r.Definition)).FirstOrDefault(); 70results.Add(new SymbolCallerInfo(callingSymbol, reference.Definition, locations, isDirect));
Shared\Extensions\IFindReferencesResultExtensions.cs (5)
42return referencedSymbol.Definition.ShouldShowWithNoReferenceLocations( 108select new ReferencedSymbol(r.Definition, aliasLocations); 131var isCaseSensitive = solution.Services.GetLanguageServices(reference.Definition.Language).GetRequiredService<ISyntaxFactsService>().IsCaseSensitive; 133if (reference.Definition.IsOrdinaryMethod() && 134!comparer.Equals(reference.Definition.Name, symbol.Name))
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
FindReferencesTests.cs (11)
134var typeSymbol = result.Where(@ref => @ref.Definition.Kind == SymbolKind.NamedType).Single(); 398projectIds.Add(solution.GetOriginatingProjectId(r.Definition)); 496var refsFromVirtualSorted = refsFromVirtual.Select(r => r.Definition).OrderBy(r => r.ContainingType.Name).ToArray(); 497var refsFromOverrideSorted = refsFromOverride.Select(r => r.Definition).OrderBy(r => r.ContainingType.Name).ToArray(); 547var typeResult = result.Single(r => r.Definition.Kind == SymbolKind.NamedType); 548var constructorResult = result.Single(r => r.Definition.Kind == SymbolKind.Method); 580var typeResult = result.Single(r => r.Definition.Kind == SymbolKind.NamedType); 581var constructorResult = result.Single(r => r.Definition.Kind == SymbolKind.Method); 622var typeResult = result.Single(r => r.Definition.Kind == SymbolKind.NamedType); 623var constructorResult = result.Single(r => r.Definition.Kind == SymbolKind.Method); 653foreach (var location in reference.Definition.Locations)
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphQueries\IsUsedByGraphQuery.cs (1)
31var referencedSymbol = reference.Definition;