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)
1346var parentTrivia = trivia.GetStructure().ParentTrivia; 1363Assert.Equal(trivia, structure.ParentTrivia); // parent trivia should be equal to original trivia 1369var tokenStructuredParentTrivia = tokenStructuredTrivia.ParentTrivia; 1946var tr0 = str0.ParentTrivia; 1949var tr1 = str1.ParentTrivia; 1983var tr0 = str0.ParentTrivia; 1986var 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)
198var 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