1 type derived from StructuredTriviaSyntax
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SkippedTokensTriviaSyntax.cs (1)
7public sealed partial class SkippedTokensTriviaSyntax : StructuredTriviaSyntax, ISkippedTokensTriviaSyntax
29 references to StructuredTriviaSyntax
Microsoft.CodeAnalysis.CSharp (11)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1418StructuredTriviaSyntax structuredTrivia = GetEnclosingDocumentationComment(xmlSyntax);
Syntax\CSharpSyntaxRewriter.cs (2)
122var newStructure = (StructuredTriviaSyntax?)this.Visit(structure);
Syntax\InternalSyntax\CSharpSyntaxNode.cs (3)
283structure = CSharp.Syntax.StructuredTriviaSyntax.Create(trivia); 288structure = CSharp.Syntax.StructuredTriviaSyntax.Create(trivia); 297return CSharp.Syntax.StructuredTriviaSyntax.Create(trivia);
Syntax\StructuredTriviaSyntax.cs (3)
22internal static StructuredTriviaSyntax Create(SyntaxTrivia trivia) 27var red = (StructuredTriviaSyntax)node.CreateRed(parent, position);
Syntax\SyntaxFactory.cs (1)
1293public static SyntaxTrivia Trivia(StructuredTriviaSyntax node)
Syntax\SyntaxNormalizer.cs (1)
1316var tr = ((StructuredTriviaSyntax)node).ParentTrivia;
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
21while (node.Parent != null || node is StructuredTriviaSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (2)
338var formattedTrivia = SyntaxFactory.Trivia((StructuredTriviaSyntax)result.GetFormattedRoot(cancellationToken)); 372var formattedTrivia = SyntaxFactory.Trivia((StructuredTriviaSyntax)result.GetFormattedRoot(cancellationToken));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\StructuredTriviaFormattingRule.cs (4)
16if (previousToken.Parent is StructuredTriviaSyntax || currentToken.Parent is StructuredTriviaSyntax) 26if (previousToken.Parent is StructuredTriviaSyntax || currentToken.Parent is StructuredTriviaSyntax)
Microsoft.CodeAnalysis.CSharp.Features (3)
CodeLens\CSharpCodeLensDisplayInfoService.cs (2)
67var structuredTriviaSyntax = (StructuredTriviaSyntax)node;
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (1)
247return Trivia((StructuredTriviaSyntax)rewritten);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
71if (node is StructuredTriviaSyntax structuredTriviaSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\DirectiveSyntaxExtensions.cs (1)
21while (node.Parent != null || node is StructuredTriviaSyntax)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (2)
338var formattedTrivia = SyntaxFactory.Trivia((StructuredTriviaSyntax)result.GetFormattedRoot(cancellationToken)); 372var formattedTrivia = SyntaxFactory.Trivia((StructuredTriviaSyntax)result.GetFormattedRoot(cancellationToken));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\StructuredTriviaFormattingRule.cs (4)
16if (previousToken.Parent is StructuredTriviaSyntax || currentToken.Parent is StructuredTriviaSyntax) 26if (previousToken.Parent is StructuredTriviaSyntax || currentToken.Parent is StructuredTriviaSyntax)