2 overrides of GetSymbolsWithName
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
4620public override IEnumerable<ISymbol> GetSymbolsWithName(string name, SymbolFilter filter = SymbolFilter.TypeAndMember, CancellationToken cancellationToken = default)
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\VisualBasicCompilation.vb (1)
3144Public Overrides Function GetSymbolsWithName(name As String, Optional filter As SymbolFilter = SymbolFilter.TypeAndMember, Optional cancellationToken As CancellationToken = Nothing) As IEnumerable(Of ISymbol)
11 references to GetSymbolsWithName
Microsoft.AspNetCore.Analyzers.Test (9)
CompilationFeatureDetectorTest.cs (3)
35var type = (INamedTypeSymbol)compilation.GetSymbolsWithName("StartupWithNoFeatures").Single(); 75var type = (INamedTypeSymbol)compilation.GetSymbolsWithName("StartupWithMapHub").Single(); 115var type = (INamedTypeSymbol)compilation.GetSymbolsWithName("StartupWithMapBlazorHub").Single();
StartupFactsTest.cs (6)
118var type = (INamedTypeSymbol)compilation.GetSymbolsWithName(source).Single(); 143var type = (INamedTypeSymbol)compilation.GetSymbolsWithName(source).Single(); 166var type = (INamedTypeSymbol)compilation.GetSymbolsWithName(source).Single(); 188var type = (INamedTypeSymbol)compilation.GetSymbolsWithName(source).Single(); 210var type = (INamedTypeSymbol)compilation.GetSymbolsWithName(source).Single(); 227var type = (INamedTypeSymbol)compilation.GetSymbolsWithName(source).Single();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\ReadOnlyStructsTests.cs (1)
1190var s1 = (INamedTypeSymbol)comp.GetSymbolsWithName("S1").Single();
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\Declarations\DeclarationFinder.cs (1)
58? compilation.GetSymbolsWithName(query.Name!, filter, cancellationToken)