Sdílet prostřednictvím


SyntaxToken.WithTrailingTrivia Method

Definition

Overloads

WithTrailingTrivia(SyntaxTrivia[])

Creates a new token from this token with the trailing trivia specified.

WithTrailingTrivia(SyntaxTriviaList)

Creates a new token from this token with the trailing trivia specified.

WithTrailingTrivia(IEnumerable<SyntaxTrivia>)

Creates a new token from this token with the trailing trivia specified.

WithTrailingTrivia(SyntaxTrivia[])

Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs

Creates a new token from this token with the trailing trivia specified.

public:
 Microsoft::CodeAnalysis::SyntaxToken WithTrailingTrivia(... cli::array <Microsoft::CodeAnalysis::SyntaxTrivia> ^ trivia);
public Microsoft.CodeAnalysis.SyntaxToken WithTrailingTrivia (params Microsoft.CodeAnalysis.SyntaxTrivia[] trivia);
public Microsoft.CodeAnalysis.SyntaxToken WithTrailingTrivia (params Microsoft.CodeAnalysis.SyntaxTrivia[]? trivia);
member this.WithTrailingTrivia : Microsoft.CodeAnalysis.SyntaxTrivia[] -> Microsoft.CodeAnalysis.SyntaxToken
Public Function WithTrailingTrivia (ParamArray trivia As SyntaxTrivia()) As SyntaxToken

Parameters

trivia
SyntaxTrivia[]

Returns

Applies to

WithTrailingTrivia(SyntaxTriviaList)

Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs

Creates a new token from this token with the trailing trivia specified.

public:
 Microsoft::CodeAnalysis::SyntaxToken WithTrailingTrivia(Microsoft::CodeAnalysis::SyntaxTriviaList trivia);
public Microsoft.CodeAnalysis.SyntaxToken WithTrailingTrivia (Microsoft.CodeAnalysis.SyntaxTriviaList trivia);
member this.WithTrailingTrivia : Microsoft.CodeAnalysis.SyntaxTriviaList -> Microsoft.CodeAnalysis.SyntaxToken
Public Function WithTrailingTrivia (trivia As SyntaxTriviaList) As SyntaxToken

Parameters

Returns

Applies to

WithTrailingTrivia(IEnumerable<SyntaxTrivia>)

Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs
Source:
SyntaxToken.cs

Creates a new token from this token with the trailing trivia specified.

public:
 Microsoft::CodeAnalysis::SyntaxToken WithTrailingTrivia(System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxTrivia> ^ trivia);
public Microsoft.CodeAnalysis.SyntaxToken WithTrailingTrivia (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> trivia);
public Microsoft.CodeAnalysis.SyntaxToken WithTrailingTrivia (System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia>? trivia);
member this.WithTrailingTrivia : seq<Microsoft.CodeAnalysis.SyntaxTrivia> -> Microsoft.CodeAnalysis.SyntaxToken
Public Function WithTrailingTrivia (trivia As IEnumerable(Of SyntaxTrivia)) As SyntaxToken

Parameters

Returns

Applies to