47 references to Locations
IdeCoreBenchmarks (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.Features (8)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.UnitTests (23)
FindReferencesTests.cs (23)
108Assert.Equal(3, result[0].Locations.Count()); // 3 locations found
135Assert.Equal(1, typeSymbol.Locations.Count());
189Assert.Equal(expected: 2, actual: references.ElementAt(0).Locations.Count());
194Assert.Equal(expected: 2, actual: references.ElementAt(0).Locations.Count());
226Assert.Equal(expected: 0, actual: references.ElementAt(0).Locations.Count());
293Assert.Equal(2, references.ElementAt(0).Locations.Count());
298Assert.Equal(2, references.ElementAt(0).Locations.Count());
551Assert.Equal(1, typeResult.Locations.Count());
552Assert.Equal(1, constructorResult.Locations.Count());
555Assert.NotEqual(typeResult.Locations.Single().Location.SourceSpan, constructorResult.Locations.Single().Location.SourceSpan);
584Assert.Equal(1, typeResult.Locations.Count());
585Assert.Equal(1, constructorResult.Locations.Count());
588Assert.NotEqual(typeResult.Locations.Single().Location.SourceSpan, constructorResult.Locations.Single().Location.SourceSpan);
626Assert.Equal(2, typeResult.Locations.Count());
627Assert.Equal(1, constructorResult.Locations.Count());
630Assert.True(typeResult.Locations.All(loc => loc.Location.SourceSpan != constructorResult.Locations.Single().Location.SourceSpan));
633Assert.NotNull(constructorResult.Locations.Single().Alias);
636Assert.True(typeResult.Locations.Count(loc => loc.Alias == null) == 1);
637Assert.True(typeResult.Locations.Count(loc => loc.Alias != null) == 1);
648foreach (var location in reference.Locations)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.VisualStudio.LanguageServices (1)