共用方式為


SyntaxToken.WithLeadingTrivia 方法

定義

多載

WithLeadingTrivia(SyntaxTrivia[])

使用指定的前置 Trivia,從這個權杖建立新的權杖。

WithLeadingTrivia(SyntaxTriviaList)

從這個權杖建立新的權杖,並指定前置 Trivia。

WithLeadingTrivia(IEnumerable<SyntaxTrivia>)

從這個權杖建立新的權杖,並指定前置 Trivia。

WithLeadingTrivia(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

使用指定的前置 Trivia,從這個權杖建立新的權杖。

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

參數

trivia
SyntaxTrivia[]

傳回

適用於

WithLeadingTrivia(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

從這個權杖建立新的權杖,並指定前置 Trivia。

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

參數

傳回

適用於

WithLeadingTrivia(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

從這個權杖建立新的權杖,並指定前置 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);
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

參數

傳回

適用於