16 references to GetAnnotatedTrivia
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
272var tokens = node.GetAnnotatedTrivia(SyntaxAnnotation.ElasticAnnotation).Select(tr => tr.Token).Distinct();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
45basePropertyDeclaration.GetAnnotatedTrivia(SyntaxAnnotation.ElasticAnnotation).Any())
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxAnnotationTests.cs (6)
145var matchingTrivia = tree.GetCompilationUnitRoot().GetAnnotatedTrivia(annotation); 235var trivia2 = newRoot.GetAnnotatedTrivia(annotation1).Single(); 366var annotatedTrivia = newRoot.GetAnnotatedTrivia(annotation).OrderBy(t => t.SpanStart); 412var sourceTrivia = sourceTreeRoot.GetAnnotatedTrivia(annotation); 413var destTrivia = destTreeRoot.GetAnnotatedTrivia(annotation); 644var results = root.GetAnnotatedTrivia(annotation);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
45basePropertyDeclaration.GetAnnotatedTrivia(SyntaxAnnotation.ElasticAnnotation).Any())
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Syntax\SyntaxAnnotationTests.vb (6)
132Dim matchingTrivia = tree.GetRoot().GetAnnotatedTrivia(annotation) 219Dim trivia2 = newRoot.GetAnnotatedTrivia(annotation1).Single() 340Dim annotatedTrivia = newRoot.GetAnnotatedTrivia(annotation).OrderBy(Function(x) x.SpanStart) 382Dim sourceTrivia = sourceTreeRoot.GetAnnotatedTrivia(annotation) 383Dim destTrivia = destTreeRoot.GetAnnotatedTrivia(annotation) 584Dim results = root.GetAnnotatedTrivia(annotation)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
272var tokens = node.GetAnnotatedTrivia(SyntaxAnnotation.ElasticAnnotation).Select(tr => tr.Token).Distinct();