Condividi tramite


VisualBasicExtensions.ReplaceTrivia Metodo

Definizione

Overload

ReplaceTrivia(SyntaxToken, SyntaxTrivia, SyntaxTrivia)

Sostituisce il trivia in una sintassi specificataToken.

ReplaceTrivia(SyntaxToken, IEnumerable<SyntaxTrivia>, Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>)

Sostituisce il trivia in una sintassi specificataToken.

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

Sostituisce il trivia in una sintassi specificataToken.

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

Parametri

token
SyntaxToken

Sintassi di origineToken in cui modificare il trivia.

oldTrivia
SyntaxTrivia

Trivia originale.

newTrivia
SyntaxTrivia

Trivia aggiornato.

Restituisce

Sintassi aggiornataToken con trivia sostituito.

Si applica a

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

Sostituisce il trivia in una sintassi specificataToken.

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

Parametri

token
SyntaxToken
computeReplacementTrivia
Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>

Restituisce

Si applica a