1 override of ParentTrivia
Microsoft.CodeAnalysis.CSharp (1)
Syntax\StructuredTriviaSyntax.cs (1)
35public override SyntaxTrivia ParentTrivia => _parent;
13 references to ParentTrivia
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
23node = node.Parent ?? node.ParentTrivia.Token.GetRequiredParent();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DocumentationComments\CrefTests.cs (1)
4559Assert.Equal(SyntaxKind.EndOfFileToken, crefSyntax.Ancestors().First(n => n.IsStructuredTrivia).ParentTrivia.Token.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Syntax\SyntaxNodeTests.cs (7)
1369var parentTrivia = trivia.GetStructure().ParentTrivia; 1386Assert.Equal(trivia, structure.ParentTrivia); // parent trivia should be equal to original trivia 1392var tokenStructuredParentTrivia = tokenStructuredTrivia.ParentTrivia; 1969var tr0 = str0.ParentTrivia; 1972var tr1 = str1.ParentTrivia; 2006var tr0 = str0.ParentTrivia; 2009var tr1 = str1.ParentTrivia;
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
23node = node.Parent ?? node.ParentTrivia.Token.GetRequiredParent();
Microsoft.CodeAnalysis.Features (1)
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (1)
225var targetMember = documentationComment.ParentTrivia.Token.GetAncestor<TMemberNode>();
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\DirectiveSyntaxExtensions.vb (1)
30node = node.ParentTrivia.Token.Parent
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\DirectiveSyntaxExtensions.vb (1)
30node = node.ParentTrivia.Token.Parent