14 references to ContainsAnnotations
Microsoft.CodeAnalysis (10)
Syntax\SyntaxNode.cs (7)
1230get { return this.Green.ContainsAnnotations; } 1293return this.DescendantNodesAndTokensAndSelf(descendIntoChildrenGreen: static g => g.ContainsAnnotations, descendIntoTrivia: true) 1302return this.DescendantNodesAndTokensAndSelf(descendIntoChildrenGreen: static g => g.ContainsAnnotations, descendIntoTrivia: true) 1311return this.DescendantNodesAndTokensAndSelf(descendIntoChildrenGreen: static g => g.ContainsAnnotations, descendIntoTrivia: true) 1354return this.DescendantTrivia(descendIntoChildrenGreen: static n => n.ContainsAnnotations, descendIntoChildrenRed: null, descendIntoTrivia: true) 1363return this.DescendantTrivia(descendIntoChildrenGreen: static n => n.ContainsAnnotations, descendIntoChildrenRed: null, descendIntoTrivia: true) 1372return this.DescendantTrivia(descendIntoChildrenGreen: static n => n.ContainsAnnotations, descendIntoChildrenRed: null, descendIntoTrivia: true)
Syntax\SyntaxNodeOrToken.cs (1)
512return _token.ContainsAnnotations;
Syntax\SyntaxToken.cs (1)
240public bool ContainsAnnotations => Node?.ContainsAnnotations ?? false;
Syntax\SyntaxTrivia.cs (1)
150internal bool ContainsAnnotations => UnderlyingNode?.ContainsAnnotations ?? false;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
IncrementalParsing\IncrementalParsingTests.cs (4)
3496Assert.True(oldClassC.ContainsAnnotations, "Should contain annotations"); 3497Assert.False(newClassC.ContainsAnnotations, "Annotations should have been removed."); 3507Assert.True(oldToken.ContainsAnnotations, "Should contain annotations"); 3508Assert.False(newToken.ContainsAnnotations, "Annotations should have been removed.");