SyntaxToken.WithLeadingTrivia Method

Definition

Overloads

WithLeadingTrivia(SyntaxTrivia[])

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

WithLeadingTrivia(SyntaxTriviaList)

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

WithLeadingTrivia(IEnumerable<SyntaxTrivia>)

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

WithLeadingTrivia(SyntaxTrivia[])

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

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

Parameters

trivia
SyntaxTrivia[]

Returns

SyntaxToken

Applies to

WithLeadingTrivia(SyntaxTriviaList)

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

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

Parameters

Returns

SyntaxToken

Applies to

WithLeadingTrivia(IEnumerable<SyntaxTrivia>)

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

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

Parameters

Returns

SyntaxToken

Applies to