SyntaxToken.WithTrailingTrivia Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- trivia
- SyntaxTriviaList
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
- trivia
- IEnumerable<SyntaxTrivia>