6 references to GetAllDeclaredSymbols
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\UseConditionalExpression\UseConditionalExpressionHelpers.cs (2)
58
var whenTrueSymbols = semanticModel.
GetAllDeclaredSymbols
(whenTrue.Syntax, cancellationToken, n => !syntaxFacts.IsAnonymousOrLocalFunction(n));
59
var whenFalseSymbols = semanticModel.
GetAllDeclaredSymbols
(whenFalse.Syntax, cancellationToken, n => !syntaxFacts.IsAnonymousOrLocalFunction(n));
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
96
=> semanticModel.LookupSymbols(location.SpanStart).Concat(semanticModel.
GetAllDeclaredSymbols
(container, cancellationToken));
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
290
return semanticModel.
GetAllDeclaredSymbols
(container, cancellationToken);
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
145
foreach (var symbol in semanticModel.
GetAllDeclaredSymbols
(statement, cancellationToken))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
54
var symbolsInBlock = semanticModel.
GetAllDeclaredSymbols
(container, cancellationToken, descendInto: ShouldDescendInto);