SyntaxToken.WithLeadingTrivia 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
參數
- trivia
- SyntaxTriviaList
傳回
適用於
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
參數
- trivia
- IEnumerable<SyntaxTrivia>