10 references to GetAllDeclaredSymbols
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
265
=> [.. semanticModel.
GetAllDeclaredSymbols
(node.GetAncestor<MemberDeclarationSyntax>(), cancellationToken).Select(s => s.Name)];
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))
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
141
.Concat(semanticModel.
GetAllDeclaredSymbols
(container, cancellationToken))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
52
var symbolsInBlock = semanticModel.
GetAllDeclaredSymbols
(container, cancellationToken,
Microsoft.CodeAnalysis.Features (4)
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
599
if (semanticModel.
GetAllDeclaredSymbols
(node, cancellationToken).SingleOrDefault() is IFieldSymbol fieldSymbolFallBack)
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
388
var declaredVariables = semanticModel.
GetAllDeclaredSymbols
(currentStatement, cancellationToken);
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.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\SemanticsFactsService\AbstractSemanticFactsService.cs (1)
93
=> semanticModel.LookupSymbols(location.SpanStart).Concat(semanticModel.
GetAllDeclaredSymbols
(container, cancellationToken));