2 overrides of GetSyntaxAsync
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
VisualBasicSymbolDeclarationService.vb (1)
46Public Overrides Async Function GetSyntaxAsync(Optional cancellationToken As CancellationToken = Nothing) As Task(Of SyntaxNode)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
VisualBasicSymbolDeclarationService.vb (1)
46Public Overrides Async Function GetSyntaxAsync(Optional cancellationToken As CancellationToken = Nothing) As Task(Of SyntaxNode)
45 references to GetSyntaxAsync
Microsoft.CodeAnalysis.CodeStyle (2)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
593var attributeNode = await attribute.ApplicationSyntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false); 799var attributeNode = await attribute.ApplicationSyntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
AbstractCodeGenerationService_FindDeclaration.cs (2)
201declaration = await decl.GetSyntaxAsync(cancellationToken).ConfigureAwait(false); 219var node = await r.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
AbstractMakeTypePartialCodeFixProvider.cs (1)
48var node = await reference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
64var node = await declReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
AbstractUnsealClassCodeFixProvider.cs (1)
71var declaration = await syntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
86if ((await methodReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false)) is not MethodDeclarationSyntax methodDeclaration)
Microsoft.CodeAnalysis.CSharp.Features (4)
CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
86if ((await methodReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false)) is not MethodDeclarationSyntax methodDeclaration)
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
234var decl = await syntaxRef.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
178var syntax = await syntaxRef.GetSyntaxAsync(CancellationToken).ConfigureAwait(false);
UseAutoProperty\CSharpUseAutoPropertyCodeFixProvider.cs (1)
137var variableDeclarator = (VariableDeclaratorSyntax)await fieldSymbol.DeclaringSyntaxReferences[0].GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (19)
AbstractMakeTypePartialCodeFixProvider.cs (1)
48var node = await reference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
593var attributeNode = await attribute.ApplicationSyntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false); 799var attributeNode = await attribute.ApplicationSyntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
64var node = await declReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
AbstractUnsealClassCodeFixProvider.cs (1)
71var declaration = await syntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
ChangeSignature\AbstractChangeSignatureService.cs (1)
170var syntax = await reference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Attribute.cs (1)
53var attributeNode = await _attribute.ApplicationSyntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (1)
113var typeBlock = GetTypeBlock(await td.GetSyntaxAsync(cancellationToken).ConfigureAwait(false));
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.GenerateConstructorWithDialogCodeAction.cs (1)
109var constructorSyntax = await constructorReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
508var propertySyntax = await declarationService.GetDeclarations(fieldOrProperty)[0].GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (2)
126var calleeMethodNode = await calleeMethodDeclarationSyntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false) as TMethodDeclarationSyntax; 222var callerDeclarationNode = await callerReferences[0].GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
PullMemberUp\MembersPuller.cs (1)
490var tasks = memberAnalysisResult.Member.DeclaringSyntaxReferences.SelectAsArray(@ref => @ref.GetSyntaxAsync(cancellationToken));
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
447return await reference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false); 463var syntax = await definition.DeclaringSyntaxReferences[0].GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
328var syntax = await definition.DeclaringSyntaxReferences[0].GetSyntaxAsync(cancellationToken).ConfigureAwait(false); 426return await reference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (2)
158declarator = (TVariableDeclarator)await fieldSymbol.DeclaringSyntaxReferences[0].GetSyntaxAsync(cancellationToken).ConfigureAwait(false); 159property = GetPropertyDeclaration(await propertySymbol.DeclaringSyntaxReferences[0].GetSyntaxAsync(cancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
70Dim methodDeclaration = TryCast(Await methodReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(False), MethodStatementSyntax)
VisualBasicConvertToIteratorCodeFixProvider.vb (1)
87Dim methodNode = Await syntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(False)
VisualBasicSymbolDeclarationService.vb (1)
47Dim node = Await _reference.GetSyntaxAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Features (5)
LanguageServices\VisualBasicSymbolDisplayService.SymbolDescriptionBuilder.vb (2)
100Dim syntax = Await syntaxRef.GetSyntaxAsync(Me.CancellationToken).ConfigureAwait(False) 113Dim syntax = Await syntaxRef.GetSyntaxAsync(Me.CancellationToken).ConfigureAwait(False)
UseAutoProperty\VisualBasicUseAutoPropertyCodeFixProvider.vb (1)
84Dim identifier = TryCast(Await fieldSymbol.DeclaringSyntaxReferences(0).GetSyntaxAsync(cancellationToken).ConfigureAwait(False), ModifiedIdentifierSyntax)
VisualBasicConvertToAsyncFunctionCodeFixProvider.vb (1)
70Dim methodDeclaration = TryCast(Await methodReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(False), MethodStatementSyntax)
VisualBasicConvertToIteratorCodeFixProvider.vb (1)
87Dim methodNode = Await syntaxReference.GetSyntaxAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
VisualBasicSymbolDeclarationService.vb (1)
47Dim node = Await _reference.GetSyntaxAsync(cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces (2)
AbstractCodeGenerationService_FindDeclaration.cs (2)
201declaration = await decl.GetSyntaxAsync(cancellationToken).ConfigureAwait(false); 219var node = await r.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices (3)
Progression\GraphNodeIdCreation.cs (1)
521var currentNode = await reference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false);
Progression\GraphQueries\CallsGraphQuery.cs (1)
50foreach (var syntaxNode in (await reference.GetSyntaxAsync(cancellationToken).ConfigureAwait(false)).DescendantNodes())
PullMemberUp\SymbolDependentsBuilder.cs (1)
58var tasks = _declarationService.GetDeclarations(_member).Select(@ref => @ref.GetSyntaxAsync(_cancellationToken));