Skip to main content

SyntaxExtensions.AppendToTrailingTrivia Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.Core.dll

Overloads

MethodSummary
AppendToTrailingTrivia(SyntaxToken, IEnumerable<SyntaxTrivia>)Creates a new token from this token with the trailing trivia replaced with a new trivia where the specified trivia is added at the end of the trailing trivia.
AppendToTrailingTrivia(SyntaxToken, SyntaxTrivia)Creates a new token from this token with the trailing trivia replaced with a new trivia where the specified trivia is added at the end of the trailing trivia.
AppendToTrailingTrivia<TNode>(TNode, IEnumerable<SyntaxTrivia>)Creates a new node from this node with the trailing trivia replaced with a new trivia where the specified trivia is added at the end of the trailing trivia.
AppendToTrailingTrivia<TNode>(TNode, SyntaxTrivia)Creates a new node from this node with the trailing trivia replaced with a new trivia where the specified trivia is added at the end of the trailing trivia.

AppendToTrailingTrivia(SyntaxToken, IEnumerable<SyntaxTrivia>)

Creates a new token from this token with the trailing trivia replaced with a new trivia where the specified trivia is added at the end of the trailing trivia.

public static Microsoft.CodeAnalysis.SyntaxToken AppendToTrailingTrivia(this Microsoft.CodeAnalysis.SyntaxToken token, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> trivia)

Parameters

token SyntaxToken

trivia IEnumerable<SyntaxTrivia>

Returns

SyntaxToken

AppendToTrailingTrivia(SyntaxToken, SyntaxTrivia)

Creates a new token from this token with the trailing trivia replaced with a new trivia where the specified trivia is added at the end of the trailing trivia.

public static Microsoft.CodeAnalysis.SyntaxToken AppendToTrailingTrivia(this Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.SyntaxTrivia trivia)

Parameters

token SyntaxToken

trivia SyntaxTrivia

Returns

SyntaxToken

AppendToTrailingTrivia<TNode>(TNode, IEnumerable<SyntaxTrivia>)

Creates a new node from this node with the trailing trivia replaced with a new trivia where the specified trivia is added at the end of the trailing trivia.

public static TNode AppendToTrailingTrivia<TNode>(this TNode node, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> trivia) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

node TNode

trivia IEnumerable<SyntaxTrivia>

Returns

TNode

AppendToTrailingTrivia<TNode>(TNode, SyntaxTrivia)

Creates a new node from this node with the trailing trivia replaced with a new trivia where the specified trivia is added at the end of the trailing trivia.

public static TNode AppendToTrailingTrivia<TNode>(this TNode node, Microsoft.CodeAnalysis.SyntaxTrivia trivia) where TNode : Microsoft.CodeAnalysis.SyntaxNode

Type Parameters

TNode

Parameters

node TNode

trivia SyntaxTrivia

Returns

TNode