VisualBasicExtensions.ReplaceTrivia 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ReplaceTrivia(SyntaxToken, SyntaxTrivia, SyntaxTrivia) |
取代指定之 SyntaxToken 上的 Trivia。 |
ReplaceTrivia(SyntaxToken, IEnumerable<SyntaxTrivia>, Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>) |
取代指定之 SyntaxToken 上的 Trivia。 |
ReplaceTrivia(SyntaxToken, SyntaxTrivia, SyntaxTrivia)
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
取代指定之 SyntaxToken 上的 Trivia。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::CodeAnalysis::SyntaxToken ReplaceTrivia(Microsoft::CodeAnalysis::SyntaxToken token, Microsoft::CodeAnalysis::SyntaxTrivia oldTrivia, Microsoft::CodeAnalysis::SyntaxTrivia newTrivia);
public static Microsoft.CodeAnalysis.SyntaxToken ReplaceTrivia (this Microsoft.CodeAnalysis.SyntaxToken token, Microsoft.CodeAnalysis.SyntaxTrivia oldTrivia, Microsoft.CodeAnalysis.SyntaxTrivia newTrivia);
static member ReplaceTrivia : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxTrivia * Microsoft.CodeAnalysis.SyntaxTrivia -> Microsoft.CodeAnalysis.SyntaxToken
<Extension()>
Public Function ReplaceTrivia (token As SyntaxToken, oldTrivia As SyntaxTrivia, newTrivia As SyntaxTrivia) As SyntaxToken
參數
- token
- SyntaxToken
要變更的來源 SyntaxToken。
- oldTrivia
- SyntaxTrivia
原始 Trivia。
- newTrivia
- SyntaxTrivia
更新的 Trivia。
傳回
已更新的 SyntaxToken 取代了 Trivia。
適用於
ReplaceTrivia(SyntaxToken, IEnumerable<SyntaxTrivia>, Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>)
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
取代指定之 SyntaxToken 上的 Trivia。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::CodeAnalysis::SyntaxToken ReplaceTrivia(Microsoft::CodeAnalysis::SyntaxToken token, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxTrivia> ^ trivia, Func<Microsoft::CodeAnalysis::SyntaxTrivia, Microsoft::CodeAnalysis::SyntaxTrivia, Microsoft::CodeAnalysis::SyntaxTrivia> ^ computeReplacementTrivia);
public static Microsoft.CodeAnalysis.SyntaxToken ReplaceTrivia (this Microsoft.CodeAnalysis.SyntaxToken token, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> trivia, Func<Microsoft.CodeAnalysis.SyntaxTrivia,Microsoft.CodeAnalysis.SyntaxTrivia,Microsoft.CodeAnalysis.SyntaxTrivia> computeReplacementTrivia);
static member ReplaceTrivia : Microsoft.CodeAnalysis.SyntaxToken * seq<Microsoft.CodeAnalysis.SyntaxTrivia> * Func<Microsoft.CodeAnalysis.SyntaxTrivia, Microsoft.CodeAnalysis.SyntaxTrivia, Microsoft.CodeAnalysis.SyntaxTrivia> -> Microsoft.CodeAnalysis.SyntaxToken
<Extension()>
Public Function ReplaceTrivia (token As SyntaxToken, trivia As IEnumerable(Of SyntaxTrivia), computeReplacementTrivia As Func(Of SyntaxTrivia, SyntaxTrivia, SyntaxTrivia)) As SyntaxToken
參數
- token
- SyntaxToken
- trivia
- IEnumerable<SyntaxTrivia>
- computeReplacementTrivia
- Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>