10 references to GetAnySymbol
Microsoft.CodeAnalysis.CodeStyle (10)
src\Analyzers\Core\Analyzers\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (1)
181
var symbol = semanticModel.GetSymbolInfo(identifier, cancellationToken).
GetAnySymbol
();
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractObjectCreationExpressionAnalyzer.cs (1)
176
var initializedSymbol = semanticModel.GetSymbolInfo(left, cancellationToken).
GetAnySymbol
();
src\Analyzers\Core\Analyzers\UseCollectionInitializer\UpdateExpressionState.cs (2)
121
SemanticModel.GetSymbolInfo(subExpression, cancellationToken).
GetAnySymbol
()))
236
var method = this.SemanticModel.GetSymbolInfo(memberAccess, cancellationToken).
GetAnySymbol
() as IMethodSymbol;
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (1)
169
if (semanticModel.GetSymbolInfo(name, cancellationToken).
GetAnySymbol
() is IMethodSymbol)
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
79
var memberSymbol = semanticModel.GetSymbolInfo(memberAccess, cancellationToken).
GetAnySymbol
();
src\Analyzers\Core\Analyzers\UseObjectInitializer\UseNamedMemberInitializerAnalyzer.cs (1)
115
var leftSymbol = this.SemanticModel.GetSymbolInfo(leftMemberAccess, cancellationToken).
GetAnySymbol
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
244
return symbolInfo.
GetAnySymbol
().ConvertToType(semanticModel.Compilation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousFunctionOrDelegateSymbolKey.cs (1)
58
.
GetAnySymbol
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1054
var receiverSymbol = semanticModel.GetSymbolInfo(receiver).
GetAnySymbol
();