22 references to ContainsAnnotations
Microsoft.CodeAnalysis (7)
Syntax\SyntaxNode.cs (6)
1256return this.DescendantNodesAndTokensAndSelf(n => n.ContainsAnnotations, descendIntoTrivia: true) 1265return this.DescendantNodesAndTokensAndSelf(n => n.ContainsAnnotations, descendIntoTrivia: true) 1274return this.DescendantNodesAndTokensAndSelf(n => n.ContainsAnnotations, descendIntoTrivia: true) 1317return this.DescendantTrivia(n => n.ContainsAnnotations, descendIntoTrivia: true) 1326return this.DescendantTrivia(n => n.ContainsAnnotations, descendIntoTrivia: true) 1335return this.DescendantTrivia(n => n.ContainsAnnotations, descendIntoTrivia: true)
Syntax\SyntaxNodeOrToken.cs (1)
516return _nodeOrParent.ContainsAnnotations;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
31protected static readonly Func<SyntaxNode, bool> s_containsAnnotations = n => n.ContainsAnnotations;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
110if (trivia.GetStructure() is { ContainsAnnotations: true } structure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
29if (!node.ContainsAnnotations)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
IncrementalParsing\IncrementalParsingTests.cs (1)
3057Assert.True(oldRoot.ContainsAnnotations, "Should contain annotations.");
Syntax\SyntaxAnnotationTests.cs (1)
296Assert.True(firstNodeInNewTree.ContainsAnnotations);
Syntax\SyntaxNodeTests.cs (1)
519var nodesWithMyAnnotations = exprWithAnnotations.DescendantNodesAndSelf(n => n.ContainsAnnotations).Where(n => n.HasAnnotation(myAnnotation)).ToList();
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Simplification\CSharpSimplificationService.NodesAndTokensToReduceComputer.cs (1)
78else if (node.ContainsAnnotations || savedSimplifyAllDescendants)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.CodeShapeAnalyzer.cs (1)
110if (trivia.GetStructure() is { ContainsAnnotations: true } structure)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
29if (!node.ContainsAnnotations)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (2)
48If result.ContainsAnnotations Then 49Dim nodesToRemove = result.DescendantNodes(Function(n) n.ContainsAnnotations).Where(Function(n) n.HasAnnotation(s_removeAnnotation))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
IncrementalParser\IncrementalParser.vb (1)
1714Assert.True(oldRoot2.ContainsAnnotations, "Should contain annotations.")
Syntax\SyntaxAnnotationTests.vb (1)
278Assert.True(firstNodeInNewTree.ContainsAnnotations)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Simplification\VisualBasicSimplificationService.NodesAndTokensToReduceComputer.vb (1)
64ElseIf node.ContainsAnnotations OrElse savedSimplifyAllDescendants Then
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
31protected static readonly Func<SyntaxNode, bool> s_containsAnnotations = n => n.ContainsAnnotations;