共用方式為


VisualBasicExtensions.ReplaceTrivia 方法

定義

多載

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
computeReplacementTrivia
Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>

傳回

適用於