222 references to GetSymbolInfo
Microsoft.CodeAnalysis.CodeStyle (31)
AbstractObjectCreationExpressionAnalyzer.cs (2)
139
_initializedSymbol = _semanticModel.
GetSymbolInfo
(left, _cancellationToken).GetAnySymbol();
174
_semanticModel.
GetSymbolInfo
(subExpression, _cancellationToken).GetAnySymbol()))
AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
363
var symbolInfo = nameofArgument.SemanticModel.
GetSymbolInfo
(nameofArgument.Syntax, operationContext.CancellationToken);
547
var symbol = lazyModel.
GetSymbolInfo
(node, cancellationToken).Symbol?.OriginalDefinition;
AbstractSpeculationAnalyzer.cs (13)
288
var originalSymbolInfo = this.OriginalSemanticModel.
GetSymbolInfo
(originalNode);
289
var newSymbolInfo = this.SpeculativeSemanticModel.
GetSymbolInfo
(newNode);
626
var originalIsStaticAccess = IsStaticAccess(_semanticModel.
GetSymbolInfo
(originalExpression, CancellationToken).Symbol);
627
var replacedIsStaticAccess = IsStaticAccess(this.SpeculativeSemanticModel.
GetSymbolInfo
(newExpression, CancellationToken).Symbol);
683
var originalExpressionSymbol = this.OriginalSemanticModel.
GetSymbolInfo
(currentOriginalNode).Symbol;
684
var replacedExpressionSymbol = this.SpeculativeSemanticModel.
GetSymbolInfo
(currentReplacedNode).Symbol;
714
var attributeSym = this.OriginalSemanticModel.
GetSymbolInfo
(attribute).Symbol;
715
var newAttributeSym = this.SpeculativeSemanticModel.
GetSymbolInfo
(newAttribute).Symbol;
818
var symbol = this.OriginalSemanticModel.
GetSymbolInfo
(type).Symbol;
823
newSymbol = this.SpeculativeSemanticModel.
GetSymbolInfo
(newType, _cancellationToken).Symbol;
851
var originalSymbolInfo = _semanticModel.
GetSymbolInfo
(expression);
857
var newSymbolInfo = this.SpeculativeSemanticModel.
GetSymbolInfo
(node: newExpression);
1016
var receiverSymbol = semanticModel.
GetSymbolInfo
(receiver).GetAnySymbol();
AbstractUseAutoPropertyAnalyzer.cs (1)
280
var symbolInfo = semanticModel.
GetSymbolInfo
(expression, cancellationToken);
AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (1)
180
var symbol = semanticModel.
GetSymbolInfo
(identifier, cancellationToken).GetAnySymbol();
AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
101
var symbol = semanticModel.
GetSymbolInfo
(invocation, cancellationToken).Symbol;
AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
169
if (semanticModel.
GetSymbolInfo
(name, cancellationToken).GetAnySymbol() is IMethodSymbol)
303
var symbol = semanticModel.
GetSymbolInfo
(invocation, cancellationToken).Symbol;
AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
79
var memberSymbol = semanticModel.
GetSymbolInfo
(memberAccess, cancellationToken).GetAnySymbol();
AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
105
var symbolInfo = context.SemanticModel.
GetSymbolInfo
(expression, context.CancellationToken);
ISemanticFactsExtensions.cs (1)
29
var symbolInfo = semanticModel.
GetSymbolInfo
(innerBinary);
SemanticModelExtensions.cs (2)
33
=> semanticModel.
GetSymbolInfo
(token.Parent!, cancellationToken);
246
var symbolInfo = semanticModel.
GetSymbolInfo
(expression, cancellationToken);
SymbolKey.AnonymousFunctionOrDelegateSymbolKey.cs (1)
57
var symbol = semanticModel.
GetSymbolInfo
(node, reader.CancellationToken)
SymbolKey.SymbolKeyReader.cs (1)
750
var info = semanticModel.
GetSymbolInfo
(node, CancellationToken);
UseCompoundAssignmentUtilities.cs (1)
102
var symbolInfo = semanticModel.
GetSymbolInfo
(expr, cancellationToken);
UseNamedMemberInitializerAnalyzer.cs (1)
128
var leftSymbol = _semanticModel.
GetSymbolInfo
(leftMemberAccess, _cancellationToken).GetAnySymbol();
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
AbstractAddParameterCodeFixProvider.cs (1)
153
var symbol = semanticModel.
GetSymbolInfo
(typeNode, cancellationToken).GetAnySymbol();
AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
43
var symbolInfo = semanticModel.
GetSymbolInfo
(diagnosticNode, cancellationToken);
AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
90
var symbol = semanticModel.GetDeclaredSymbol(node, cancellationToken) ?? semanticModel.
GetSymbolInfo
(node, cancellationToken).GetAnySymbol();
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
58
var methodSymbol = (IMethodSymbol?)(semanticModel.GetDeclaredSymbol(node, cancellationToken) ?? semanticModel.
GetSymbolInfo
(node, cancellationToken).GetAnySymbol());
AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
105
=> semanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol as IMethodSymbol ??
AbstractUnsealClassCodeFixProvider.cs (1)
39
if (semanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol is INamedTypeSymbol type &&
Fixer.cs (1)
49
var symbolInfo = semanticModel.
GetSymbolInfo
(invocationNode, cancellationToken);
SimplificationHelpers.cs (2)
87
var symbolInfo = semanticModel.
GetSymbolInfo
(expression);
102
var expressionInfo = semanticModel.
GetSymbolInfo
(expression);
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
ArgumentSyntaxExtensions.cs (1)
53
var symbolInfo = semanticModel.
GetSymbolInfo
(argumentList.Parent, cancellationToken);
CastSimplifier.cs (4)
990
var oldSymbolInfo = originalSemanticModel.
GetSymbolInfo
(currentOld, cancellationToken);
995
var newSymbolInfo = rewrittenSemanticModel.
GetSymbolInfo
(currentNew, cancellationToken);
1022
var oldSymbolInfo = originalSemanticModel.
GetSymbolInfo
(currentOld, cancellationToken).Symbol;
1023
var newSymbolInfo = rewrittenSemanticModel.
GetSymbolInfo
(currentNew, cancellationToken).Symbol;
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
229
var method1 = semanticModel1.
GetSymbolInfo
(node1, cancellationToken).Symbol as IMethodSymbol;
230
var method2 = semanticModel2.
GetSymbolInfo
(node2, cancellationToken).Symbol as IMethodSymbol;
CSharpSemanticFacts.cs (3)
292
/// cref="ModelExtensions.
GetSymbolInfo
(SemanticModel, SyntaxNode, CancellationToken)"/>, but sometimes employs
352
var symbol = semanticModel.
GetSymbolInfo
(node, cancellationToken).GetAnySymbol();
362
return semanticModel.
GetSymbolInfo
(node, cancellationToken).GetBestOrAllSymbols();
CSharpUseImplicitTypeHelper.cs (1)
305
if (semanticModel.
GetSymbolInfo
(n, cancellationToken).Symbol.IsKind(SymbolKind.Local) == true)
SemanticModelExtensions.cs (1)
437
if (semanticModel.
GetSymbolInfo
(argumentList.Parent, cancellationToken).Symbol is IMethodSymbol member && index < member.Parameters.Length)
SyntaxNodeExtensions.cs (1)
988
var info = semanticModel.
GetSymbolInfo
(current, cancellationToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
75
if (semanticModel.
GetSymbolInfo
(invocationExpression, cancellationToken).Symbol is not IMethodSymbol methodSymbol)
CSharpInlineDeclarationCodeFixProvider.cs (2)
348
var previousSymbol = semanticModel.
GetSymbolInfo
(nodeToReplace, cancellationToken).Symbol;
374
var updatedSymbolInfo = speculativeModel.
GetSymbolInfo
(updatedInvocationOrCreation, cancellationToken);
CSharpTypeInferenceService.TypeInferrer.cs (1)
102
var symbolInfo = SemanticModel.
GetSymbolInfo
(node, CancellationToken);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
261
var symbolInfo = semanticModel.
GetSymbolInfo
(eventHookupExpression.Left, cancellationToken);
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
225
var symbol = semanticModel.
GetSymbolInfo
(parentToken.Left, cancellationToken).Symbol;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
Diagnostics\FixAllProvider\BatchFixerTests.cs (1)
51
var symbol = context.SemanticModel.
GetSymbolInfo
(node).Symbol;
SymbolKey\SymbolKeyTestBase.cs (2)
62
var syminfo = model.
GetSymbolInfo
(node);
405
var sinfo = model.
GetSymbolInfo
(expr);
Microsoft.CodeAnalysis.CSharp.Features (18)
ChangeSignature\CSharpChangeSignatureService.cs (2)
162
var symbolInfo = semanticModel.
GetSymbolInfo
(matchingNode, cancellationToken);
872
.Select(n => semanticModel.
GetSymbolInfo
(n, cancellationToken).Symbol)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
172
var symbol = semanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol as IMethodSymbol;
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
199
if (semanticModel.
GetSymbolInfo
(o, cancellationToken).Symbol is IMethodSymbol { IsConditional: true })
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
198
var symbol = semanticModel.
GetSymbolInfo
(expression, cancellationToken).GetAnySymbol();
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
297
var symbol = semanticModel.
GetSymbolInfo
(previousToken.Parent, cancellationToken).Symbol;
CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
75
if (semanticModel.
GetSymbolInfo
(invocationExpression, cancellationToken).Symbol is not IMethodSymbol methodSymbol)
CSharpInlineDeclarationCodeFixProvider.cs (2)
348
var previousSymbol = semanticModel.
GetSymbolInfo
(nodeToReplace, cancellationToken).Symbol;
374
var updatedSymbolInfo = speculativeModel.
GetSymbolInfo
(updatedInvocationOrCreation, cancellationToken);
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (2)
229
var method1 = semanticModel1.
GetSymbolInfo
(node1, cancellationToken).Symbol as IMethodSymbol;
230
var method2 = semanticModel2.
GetSymbolInfo
(node2, cancellationToken).Symbol as IMethodSymbol;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (6)
1514
var oldOrderingInfo = oldModel.
GetSymbolInfo
(oldNode, cancellationToken);
1515
var newOrderingInfo = newModel.
GetSymbolInfo
(newNode, cancellationToken);
1520
var oldSelectInfo = oldModel.
GetSymbolInfo
(oldNode, cancellationToken);
1521
var newSelectInfo = newModel.
GetSymbolInfo
(newNode, cancellationToken);
1531
var oldGroupByInfo = oldModel.
GetSymbolInfo
(oldNode, cancellationToken);
1532
var newGroupByInfo = newModel.
GetSymbolInfo
(newNode, cancellationToken);
GenerateType\CSharpGenerateTypeService.cs (1)
63
var symbolInfo = semanticModel.
GetSymbolInfo
(typeArgumentList.Parent, cancellationToken);
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
ArgumentSyntaxExtensions.cs (1)
53
var symbolInfo = semanticModel.
GetSymbolInfo
(argumentList.Parent, cancellationToken);
CastSimplifier.cs (4)
990
var oldSymbolInfo = originalSemanticModel.
GetSymbolInfo
(currentOld, cancellationToken);
995
var newSymbolInfo = rewrittenSemanticModel.
GetSymbolInfo
(currentNew, cancellationToken);
1022
var oldSymbolInfo = originalSemanticModel.
GetSymbolInfo
(currentOld, cancellationToken).Symbol;
1023
var newSymbolInfo = rewrittenSemanticModel.
GetSymbolInfo
(currentNew, cancellationToken).Symbol;
Classification\SyntaxClassification\OperatorOverloadSyntaxClassifier.cs (1)
31
var symbolInfo = semanticModel.
GetSymbolInfo
(syntax, cancellationToken);
CSharpSemanticFacts.cs (3)
292
/// cref="ModelExtensions.
GetSymbolInfo
(SemanticModel, SyntaxNode, CancellationToken)"/>, but sometimes employs
352
var symbol = semanticModel.
GetSymbolInfo
(node, cancellationToken).GetAnySymbol();
362
return semanticModel.
GetSymbolInfo
(node, cancellationToken).GetBestOrAllSymbols();
CSharpTypeInferenceService.TypeInferrer.cs (1)
102
var symbolInfo = SemanticModel.
GetSymbolInfo
(node, CancellationToken);
CSharpUseImplicitTypeHelper.cs (1)
305
if (semanticModel.
GetSymbolInfo
(n, cancellationToken).Symbol.IsKind(SymbolKind.Local) == true)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
988
var info = semanticModel.
GetSymbolInfo
(current, cancellationToken);
Rename\CSharpRenameRewriterLanguageService.cs (1)
549
var symbol = _speculativeModel.
GetSymbolInfo
(token.Parent, _cancellationToken).Symbol;
SemanticModelExtensions.cs (1)
437
if (semanticModel.
GetSymbolInfo
(argumentList.Parent, cancellationToken).Symbol is IMethodSymbol member && index < member.Parameters.Length)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractArgumentProviderTests`1.cs (1)
81
var symbols = semanticModel.
GetSymbolInfo
(argumentList.GetRequiredParent(), cancellationToken).GetAllSymbols();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
328
var symbol = semanticModel.
GetSymbolInfo
(syntaxRoot.FindNode(testDocument.SelectedSpans.Single())).Symbol;
Utilities\SymbolEquivalenceComparerTests.cs (1)
1767
var info = model.
GetSymbolInfo
(invocation);
Microsoft.CodeAnalysis.Features (63)
AbstractAddParameterCodeFixProvider.cs (1)
153
var symbol = semanticModel.
GetSymbolInfo
(typeNode, cancellationToken).GetAnySymbol();
AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
43
var symbolInfo = semanticModel.
GetSymbolInfo
(diagnosticNode, cancellationToken);
AbstractMakeMethodAsynchronousCodeFixProvider.cs (1)
90
var symbol = semanticModel.GetDeclaredSymbol(node, cancellationToken) ?? semanticModel.
GetSymbolInfo
(node, cancellationToken).GetAnySymbol();
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
58
var methodSymbol = (IMethodSymbol?)(semanticModel.GetDeclaredSymbol(node, cancellationToken) ?? semanticModel.
GetSymbolInfo
(node, cancellationToken).GetAnySymbol());
AbstractObjectCreationExpressionAnalyzer.cs (2)
139
_initializedSymbol = _semanticModel.
GetSymbolInfo
(left, _cancellationToken).GetAnySymbol();
174
_semanticModel.
GetSymbolInfo
(subExpression, _cancellationToken).GetAnySymbol()))
AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
105
=> semanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol as IMethodSymbol ??
AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
363
var symbolInfo = nameofArgument.SemanticModel.
GetSymbolInfo
(nameofArgument.Syntax, operationContext.CancellationToken);
547
var symbol = lazyModel.
GetSymbolInfo
(node, cancellationToken).Symbol?.OriginalDefinition;
AbstractUnsealClassCodeFixProvider.cs (1)
39
if (semanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol is INamedTypeSymbol type &&
AbstractUseAutoPropertyAnalyzer.cs (1)
280
var symbolInfo = semanticModel.
GetSymbolInfo
(expression, cancellationToken);
AbstractUseCoalesceExpressionForIfNullCheckDiagnosticAnalyzer.cs (1)
180
var symbol = semanticModel.
GetSymbolInfo
(identifier, cancellationToken).GetAnySymbol();
AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
101
var symbol = semanticModel.
GetSymbolInfo
(invocation, cancellationToken).Symbol;
AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
169
if (semanticModel.
GetSymbolInfo
(name, cancellationToken).GetAnySymbol() is IMethodSymbol)
303
var symbol = semanticModel.
GetSymbolInfo
(invocation, cancellationToken).Symbol;
AbstractUseNullPropagationDiagnosticAnalyzer_IfStatement.cs (1)
79
var memberSymbol = semanticModel.
GetSymbolInfo
(memberAccess, cancellationToken).GetAnySymbol();
AbstractValidateFormatStringDiagnosticAnalyzer.cs (1)
105
var symbolInfo = context.SemanticModel.
GetSymbolInfo
(expression, context.CancellationToken);
AddImport\SymbolReferenceFinder.cs (2)
315
var symbol = _semanticModel.
GetSymbolInfo
(expression, searchScope.CancellationToken).GetAnySymbol();
585
var symbolInfo = _semanticModel.
GetSymbolInfo
(nameNode, cancellationToken);
ChangeSignature\DelegateInvokeMethodReferenceFinder.cs (1)
104
.Where(e => state.SemanticModel.
GetSymbolInfo
(e, cancellationToken).Symbol?.OriginalDefinition == methodSymbol);
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
86
var symbol = model.
GetSymbolInfo
(node, cancellationToken).GetAnySymbol();
Completion\Providers\ImportCompletionProvider\AbstractExtensionMethodImportCompletionProvider.cs (1)
85
if (syntaxContext.SemanticModel.
GetSymbolInfo
(expressionNode, cancellationToken).GetAnySymbol() is not ITypeSymbol)
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
167
if (semanticModel.
GetSymbolInfo
(identifier, cancellationToken).GetAnySymbol() is not IPropertySymbol symbol)
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
249
return semanticModel.
GetSymbolInfo
(expression, cancellationToken).Symbol is IMethodSymbol method &&
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
76
if (semanticModel.
GetSymbolInfo
(invocation, cancellationToken).GetAnySymbol() is not IMethodSymbol invocationSymbol)
Diagnostics\Analyzers\UnboundIdentifiersDiagnosticAnalyzerBase.cs (1)
77
var info = context.SemanticModel.
GetSymbolInfo
(typeName);
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeLanguageDetector.cs (1)
128
var symbolInfo = semanticModel.
GetSymbolInfo
(invocationOrCreation, cancellationToken);
EmbeddedLanguages\EmbeddedLanguageDetector.cs (1)
301
var symbol = semanticModel.
GetSymbolInfo
(left, cancellationToken).Symbol;
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (1)
151
var symbol = semanticModel.
GetSymbolInfo
(invocationOrCreation, cancellationToken).GetAnySymbol();
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexLanguageDetector.cs (3)
121
var symbolInfo = semanticModel.
GetSymbolInfo
(invocationOrCreation, cancellationToken);
141
var constructor = semanticModel.
GetSymbolInfo
(invocationOrCreation, cancellationToken).GetAnySymbol();
152
var constructor = semanticModel.
GetSymbolInfo
(invocationOrCreation, cancellationToken).GetAnySymbol();
ExtractMethod\Extensions.cs (1)
44
var info = binding.
GetSymbolInfo
(node);
FindUsages\AbstractFindUsagesService_FindReferences.cs (1)
204
var symbol = semanticModel.
GetSymbolInfo
(token.Parent, cancellationToken).Symbol ?? semanticModel.GetDeclaredSymbol(token.Parent, cancellationToken);
Fixer.cs (1)
49
var symbolInfo = semanticModel.
GetSymbolInfo
(invocationNode, cancellationToken);
FullyQualify\AbstractFullyQualifyService.cs (1)
141
var currentSymbolInfo = semanticModel.
GetSymbolInfo
(simpleName, cancellationToken);
GenerateMember\AbstractGenerateMemberService.cs (1)
187
var semanticInfo = semanticModel.
GetSymbolInfo
(expression, cancellationToken);
GenerateMember\GenerateConstructor\AbstractGenerateConstructorService.State.cs (2)
303
var semanticInfo = _document.SemanticModel.
GetSymbolInfo
(constructorInitializer, cancellationToken);
320
var semanticInfo = _document.SemanticModel.
GetSymbolInfo
(implicitObjectCreation, cancellationToken);
GenerateMember\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (1)
110
var semanticInfo = semanticModel.
GetSymbolInfo
(SimpleNameOrMemberAccessExpression, cancellationToken);
GenerateMember\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (1)
195
var semanticInfo = semanticModel.
GetSymbolInfo
(SimpleNameOrMemberAccessExpression, cancellationToken);
GenerateMember\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
278
var semanticInfo = semanticModel.
GetSymbolInfo
(SimpleNameOrMemberAccessExpressionOpt, cancellationToken);
384
var symbol = _document.SemanticModel.
GetSymbolInfo
(left, cancellationToken).Symbol;
GenerateType\AbstractGenerateTypeService.State.cs (2)
126
var info = semanticModel.
GetSymbolInfo
(SimpleName, cancellationToken);
384
var leftSideInfo = semanticModel.
GetSymbolInfo
(leftSide, cancellationToken);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (2)
92
var calleeMethodSymbol = semanticModel.
GetSymbolInfo
(calleeInvocationNode, cancellationToken).GetAnySymbol() as IMethodSymbol;
588
return semanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol;
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (1)
364
callerSemanticModel.
GetSymbolInfo
(argument.Value.Syntax, cancellationToken).GetAnySymbol()?.Name))
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (2)
75
var expressionSymbol = semanticModel.
GetSymbolInfo
(expression, cancellationToken).Symbol;
196
var symbol = semanticModel.
GetSymbolInfo
(variable, cancellationToken).Symbol;
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
87
var symbol = semanticModel.
GetSymbolInfo
(variable, cancellationToken).Symbol;
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (1)
360
localVariable.Equals(semanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol));
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
59
if (semanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol is ITypeSymbol typeSymbol)
PreferFrameworkType\PreferFrameworkTypeDiagnosticAnalyzerBase.cs (1)
89
if (semanticModel.
GetSymbolInfo
(typeNode, cancellationToken).Symbol is not ITypeSymbol typeSymbol ||
QuickInfo\CommonSemanticQuickInfoProvider.cs (2)
235
var symbol = semanticModel.
GetSymbolInfo
(lambdaSyntax, cancellationToken).Symbol;
241
var symbol = semanticModel.
GetSymbolInfo
(elementAccessExpression, cancellationToken).Symbol;
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
82
var symbolInfo = semanticModel.
GetSymbolInfo
(name, cancellationToken);
UseCompoundAssignmentUtilities.cs (1)
102
var symbolInfo = semanticModel.
GetSymbolInfo
(expr, cancellationToken);
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (1)
60
var symbol = semanticModel.
GetSymbolInfo
(receiver, cancellationToken).Symbol;
UseNamedMemberInitializerAnalyzer.cs (1)
128
var leftSymbol = _semanticModel.
GetSymbolInfo
(leftMemberAccess, _cancellationToken).GetAnySymbol();
ValueTracking\ValueTracker.cs (2)
263
semanticModel.
GetSymbolInfo
(selectedNode, cancellationToken).Symbol
278
selectedSymbol = semanticModel.
GetSymbolInfo
(selectedNode, cancellationToken).Symbol;
ValueTracking\ValueTracker.OperationCollector.cs (1)
84
var symbolInfo = semanticModel.
GetSymbolInfo
(operation.Syntax, cancellationToken);
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
Generator.cs (1)
318
var symbolInfo = semanticModel.
GetSymbolInfo
(bindableParent, cancellationToken);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (6)
ArgumentSyntaxExtensions.vb (1)
36
Dim symbolInfo = semanticModel.
GetSymbolInfo
(argumentList.Parent, cancellationToken)
ExpressionSyntaxExtensions.vb (1)
296
Dim info = semanticModel.
GetSymbolInfo
(parent, cancellationToken)
SemanticModelExtensions.vb (1)
253
Dim member = TryCast(semanticModel.
GetSymbolInfo
(argumentList.Parent, cancellationToken).Symbol, IMethodSymbol)
SyntaxNodeExtensions.vb (1)
1114
Dim info = semanticModel.
GetSymbolInfo
(current, cancellationToken)
VisualBasicRemoveUnusedMembersDiagnosticAnalyzer.vb (1)
40
Dim symbolInfo = context.SemanticModel.
GetSymbolInfo
(node, context.CancellationToken)
VisualBasicSemanticFacts.vb (1)
263
semanticModel.
GetSymbolInfo
(node, cancellationToken).GetBestOrAllSymbols())
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
VisualBasicAddExplicitCastCodeFixProvider.vb (1)
178
Dim symbolInfo = semanticModel.
GetSymbolInfo
(invocationNode, cancellationToken)
VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
58
Dim methodSymbol = TryCast(semanticModel.
GetSymbolInfo
(oldNode, cancellationToken).Symbol, IMethodSymbol)
Microsoft.CodeAnalysis.VisualBasic.Features (6)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
137
Dim symbolInfo = semanticModel.
GetSymbolInfo
(matchingNode, cancellationToken)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
323
Dim symbol = semanticModel.
GetSymbolInfo
(handlesClauseItem, cancellationToken).Symbol
ImplementInterface\VisualBasicImplementInterfaceService.vb (1)
93
Dim symbolInfo = semanticModel.
GetSymbolInfo
(node, cancellationToken)
VisualBasicAddExplicitCastCodeFixProvider.vb (1)
178
Dim symbolInfo = semanticModel.
GetSymbolInfo
(invocationNode, cancellationToken)
VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
58
Dim methodSymbol = TryCast(semanticModel.
GetSymbolInfo
(oldNode, cancellationToken).Symbol, IMethodSymbol)
VisualBasicRemoveUnusedMembersDiagnosticAnalyzer.vb (1)
40
Dim symbolInfo = context.SemanticModel.
GetSymbolInfo
(node, context.CancellationToken)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
ArgumentSyntaxExtensions.vb (1)
36
Dim symbolInfo = semanticModel.
GetSymbolInfo
(argumentList.Parent, cancellationToken)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
181
Return model.
GetSymbolInfo
(node, cancellationToken).GetAnySymbol()
Classification\SyntaxClassification\OperatorOverloadSyntaxClassifier.vb (1)
27
Dim symbolInfo = semanticModel.
GetSymbolInfo
(syntax, cancellationToken)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb\ExpressionSyntaxExtensions.vb (1)
296
Dim info = semanticModel.
GetSymbolInfo
(parent, cancellationToken)
Rename\LocalConflictVisitor.vb (1)
151
Dim symbol = semanticModel.
GetSymbolInfo
(controlVariable).Symbol
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
403
Dim symbol = Me._speculativeModel.
GetSymbolInfo
(token.Parent, Me._cancellationToken).Symbol
SemanticModelExtensions.vb (1)
253
Dim member = TryCast(semanticModel.
GetSymbolInfo
(argumentList.Parent, cancellationToken).Symbol, IMethodSymbol)
SyntaxNodeExtensions.vb (1)
1114
Dim info = semanticModel.
GetSymbolInfo
(current, cancellationToken)
VisualBasicSemanticFacts.vb (1)
263
semanticModel.
GetSymbolInfo
(node, cancellationToken).GetBestOrAllSymbols())
Microsoft.CodeAnalysis.Workspaces (34)
AbstractSpeculationAnalyzer.cs (13)
288
var originalSymbolInfo = this.OriginalSemanticModel.
GetSymbolInfo
(originalNode);
289
var newSymbolInfo = this.SpeculativeSemanticModel.
GetSymbolInfo
(newNode);
626
var originalIsStaticAccess = IsStaticAccess(_semanticModel.
GetSymbolInfo
(originalExpression, CancellationToken).Symbol);
627
var replacedIsStaticAccess = IsStaticAccess(this.SpeculativeSemanticModel.
GetSymbolInfo
(newExpression, CancellationToken).Symbol);
683
var originalExpressionSymbol = this.OriginalSemanticModel.
GetSymbolInfo
(currentOriginalNode).Symbol;
684
var replacedExpressionSymbol = this.SpeculativeSemanticModel.
GetSymbolInfo
(currentReplacedNode).Symbol;
714
var attributeSym = this.OriginalSemanticModel.
GetSymbolInfo
(attribute).Symbol;
715
var newAttributeSym = this.SpeculativeSemanticModel.
GetSymbolInfo
(newAttribute).Symbol;
818
var symbol = this.OriginalSemanticModel.
GetSymbolInfo
(type).Symbol;
823
newSymbol = this.SpeculativeSemanticModel.
GetSymbolInfo
(newType, _cancellationToken).Symbol;
851
var originalSymbolInfo = _semanticModel.
GetSymbolInfo
(expression);
857
var newSymbolInfo = this.SpeculativeSemanticModel.
GetSymbolInfo
(node: newExpression);
1016
var receiverSymbol = semanticModel.
GetSymbolInfo
(receiver).GetAnySymbol();
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (2)
548
var constructor = state.SemanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol;
680
var symbolInfo = semanticModel.
GetSymbolInfo
(node, cancellationToken);
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
198
var attributeSymbol = semanticModel.
GetSymbolInfo
(attributeNode, cancellationToken).Symbol?.ContainingType;
FindSymbols\FindReferences\Finders\ConstructorSymbolReferenceFinder.cs (1)
238
var constructor = state.SemanticModel.
GetSymbolInfo
(node, cancellationToken).Symbol;
FindSymbols\FindReferences\FindReferenceCache.cs (1)
50
return _symbolInfoCache.GetOrAdd(node, static (n, arg) => arg._semanticModel.
GetSymbolInfo
(n, arg.cancellationToken), (_semanticModel, cancellationToken));
ISemanticFactsExtensions.cs (1)
29
var symbolInfo = semanticModel.
GetSymbolInfo
(innerBinary);
ReassignedVariable\AbstractReassignedVariableService.cs (2)
105
var symbol = semanticModel.
GetSymbolInfo
(identifier, cancellationToken).Symbol;
264
var symbol = semanticModel.
GetSymbolInfo
(id, cancellationToken).Symbol;
Recommendations\AbstractRecommendationServiceRunner.cs (1)
138
var invocationSymbols = _context.SemanticModel.
GetSymbolInfo
(invocationExpression).GetAllSymbols();
Rename\ConflictEngine\ConflictResolver.cs (1)
134
var symbolInfo = semanticModel.
GetSymbolInfo
(invocationExpression, cancellationToken);
SemanticModelExtensions.cs (2)
33
=> semanticModel.
GetSymbolInfo
(token.Parent!, cancellationToken);
246
var symbolInfo = semanticModel.
GetSymbolInfo
(expression, cancellationToken);
Shared\Extensions\SemanticEquivalence.cs (2)
64
var info1 = semanticModel1.
GetSymbolInfo
(node1);
65
var info2 = semanticModel2.
GetSymbolInfo
(node2);
Shared\Utilities\SemanticMap.Walker.cs (1)
30
var info = _semanticModel.
GetSymbolInfo
(node);
Simplification\Simplifiers\AbstractMemberAccessExpressionSimplifier.cs (2)
53
var symbolInfo = semanticModel.
GetSymbolInfo
(memberAccessExpression, cancellationToken);
65
var newSymbolInfo = speculationAnalyzer.SpeculativeSemanticModel.
GetSymbolInfo
(speculationAnalyzer.ReplacedExpression, cancellationToken);
SimplificationHelpers.cs (2)
87
var symbolInfo = semanticModel.
GetSymbolInfo
(expression);
102
var expressionInfo = semanticModel.
GetSymbolInfo
(expression);
SymbolKey.AnonymousFunctionOrDelegateSymbolKey.cs (1)
57
var symbol = semanticModel.
GetSymbolInfo
(node, reader.CancellationToken)
SymbolKey.SymbolKeyReader.cs (1)
750
var info = semanticModel.
GetSymbolInfo
(node, CancellationToken);
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SymbolKeyTests.cs (3)
549
var symbols = tree.GetRoot().DescendantNodes().OfType<CSharp.Syntax.InvocationExpressionSyntax>().Select(s => model.
GetSymbolInfo
(s).Symbol).ToList();
585
var symbols = tree.GetRoot().DescendantNodes().OfType<CSharp.Syntax.InvocationExpressionSyntax>().Select(s => model.
GetSymbolInfo
(s).GetAnySymbol()).ToList();
1435
symbol = model.
GetSymbolInfo
(node).GetAnySymbol();
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphQueries\CallsGraphQuery.cs (1)
54
var newSymbol = semanticModel.
GetSymbolInfo
(syntaxNode, cancellationToken).Symbol;