20 references to GetAnnotatedNodes
Microsoft.CodeAnalysis.CSharp.Features (5)
EncapsulateField\CSharpEncapsulateFieldService.cs (4)
41var declarator = root.GetAnnotatedNodes<VariableDeclaratorSyntax>(declarationAnnotation).FirstOrDefault(); 66var declaration = root.GetAnnotatedNodes<SyntaxNode>(tempAnnotation).First().Parent as VariableDeclarationSyntax; 94declarator = root.GetAnnotatedNodes<VariableDeclaratorSyntax>(tempAnnotation).First(); 119declarator = root.GetAnnotatedNodes<VariableDeclaratorSyntax>(tempAnnotation).First();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
688var methodDefinition = root.GetAnnotatedNodes<SyntaxNode>(MethodDefinitionAnnotation).First();
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Rename\CSharpRenameRewriterLanguageService.cs (2)
295newNode = speculativeTree.GetAnnotatedNodes<SyntaxNode>(annotation).First(); 310newNode = speculativeTree.GetAnnotatedNodes<SyntaxNode>(annotation).First();
Microsoft.CodeAnalysis.Features (2)
ChangeSignature\AbstractChangeSignatureService.cs (1)
403var annotatedNodes = newRoot.GetAnnotatedNodes<SyntaxNode>(syntaxAnnotation: changeSignatureFormattingAnnotation);
EncapsulateField\AbstractEncapsulateFieldService.cs (1)
234var newDeclaration = newRoot.GetAnnotatedNodes<SyntaxNode>(declarationAnnotation).First();
Microsoft.CodeAnalysis.VisualBasic.Features (3)
EncapsulateField\VisualBasicEncapsulateFieldService.vb (2)
35Dim fieldIdentifier = root.GetAnnotatedNodes(Of ModifiedIdentifierSyntax)(declarationAnnotation).FirstOrDefault() 52fieldIdentifier = root.GetAnnotatedNodes(Of ModifiedIdentifierSyntax)(annotation).First()
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (1)
421Dim methodDefinition = root.GetAnnotatedNodes(Of MethodBlockBaseSyntax)(Me.MethodDefinitionAnnotation).First()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (8)
ParameterSyntaxExtensions.vb (1)
23newParameterSyntax = speculationAnalyzer.ReplacedExpression.GetAnnotatedNodes(Of ParameterSyntax)(annotation).First()
Rename\VisualBasicRenameRewriterLanguageService.vb (7)
191newNode = speculativeTree.GetAnnotatedNodes(Of SyntaxNode)(annotation).First() 198newNode = Me._speculativeModel.SyntaxTree.GetRoot(_cancellationToken).GetAnnotatedNodes(Of SyntaxNode)(annotation).First() 213Dim probableRenameNode = speculativeTree.GetAnnotatedNodes(Of SyntaxNode)(annotation).First() 214Dim speculativeNewNode = speculativeTree.GetAnnotatedNodes(Of SyntaxNode)(annotationForSpeculativeNode).First() 222probableRenameNode = Me._speculativeModel.SyntaxTree.GetRoot(_cancellationToken).GetAnnotatedNodes(Of SyntaxNode)(annotation).First() 223speculativeNewNode = Me._speculativeModel.SyntaxTree.GetRoot(_cancellationToken).GetAnnotatedNodes(Of SyntaxNode)(annotationForSpeculativeNode).First() 229probableRenameNode = expandedNewNode.GetAnnotatedNodes(Of SyntaxNode)(annotation).First()