다음을 통해 공유


SyntaxNodeExtensions.ReplaceTrivia 메서드

정의

오버로드

ReplaceTrivia<TRoot>(TRoot, SyntaxTrivia, SyntaxTrivia)

지정된 퀴즈가 새 퀴즈로 대체된 노드의 새 트리를 만듭니다.

ReplaceTrivia<TRoot>(TRoot, SyntaxTrivia, IEnumerable<SyntaxTrivia>)

지정된 이전 퀴즈가 새 퀴즈로 대체된 노드의 새 트리를 만듭니다.

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

지정된 퀴즈가 새 퀴즈로 대체된 노드의 새 트리를 만듭니다.

ReplaceTrivia<TRoot>(TRoot, SyntaxTrivia, SyntaxTrivia)

Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs

지정된 퀴즈가 새 퀴즈로 대체된 노드의 새 트리를 만듭니다.

public:
generic <typename TRoot>
 where TRoot : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TRoot ReplaceTrivia(TRoot root, Microsoft::CodeAnalysis::SyntaxTrivia trivia, Microsoft::CodeAnalysis::SyntaxTrivia newTrivia);
public static TRoot ReplaceTrivia<TRoot> (this TRoot root, Microsoft.CodeAnalysis.SyntaxTrivia trivia, Microsoft.CodeAnalysis.SyntaxTrivia newTrivia) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
static member ReplaceTrivia : 'Root * Microsoft.CodeAnalysis.SyntaxTrivia * Microsoft.CodeAnalysis.SyntaxTrivia -> 'Root (requires 'Root :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function ReplaceTrivia(Of TRoot As SyntaxNode) (root As TRoot, trivia As SyntaxTrivia, newTrivia As SyntaxTrivia) As TRoot

형식 매개 변수

TRoot

루트 노드의 형식입니다.

매개 변수

root
TRoot

노드 트리의 루트 노드입니다.

trivia
SyntaxTrivia

바꿀 퀴즈입니다.

newTrivia
SyntaxTrivia

이전 퀴즈 대신 새 트리에서 사용할 새로운 퀴즈입니다.

반환

TRoot

적용 대상

ReplaceTrivia<TRoot>(TRoot, SyntaxTrivia, IEnumerable<SyntaxTrivia>)

Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs

지정된 이전 퀴즈가 새 퀴즈로 대체된 노드의 새 트리를 만듭니다.

public:
generic <typename TRoot>
 where TRoot : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TRoot ReplaceTrivia(TRoot root, Microsoft::CodeAnalysis::SyntaxTrivia oldTrivia, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxTrivia> ^ newTrivia);
public static TRoot ReplaceTrivia<TRoot> (this TRoot root, Microsoft.CodeAnalysis.SyntaxTrivia oldTrivia, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> newTrivia) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
static member ReplaceTrivia : 'Root * Microsoft.CodeAnalysis.SyntaxTrivia * seq<Microsoft.CodeAnalysis.SyntaxTrivia> -> 'Root (requires 'Root :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function ReplaceTrivia(Of TRoot As SyntaxNode) (root As TRoot, oldTrivia As SyntaxTrivia, newTrivia As IEnumerable(Of SyntaxTrivia)) As TRoot

형식 매개 변수

TRoot

루트 노드의 형식입니다.

매개 변수

root
TRoot

노드 트리의 루트입니다.

oldTrivia
SyntaxTrivia

바꿀 퀴즈입니다. 루트 노드의 하위 항목입니다.

newTrivia
IEnumerable<SyntaxTrivia>

지정된 퀴즈 대신 트리에서 사용할 퀴즈 시퀀스입니다.

반환

TRoot

적용 대상

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

Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs
Source:
SyntaxNodeExtensions.cs

지정된 퀴즈가 새 퀴즈로 대체된 노드의 새 트리를 만듭니다.

public:
generic <typename TRoot>
 where TRoot : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
 static TRoot ReplaceTrivia(TRoot root, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxTrivia> ^ trivia, Func<Microsoft::CodeAnalysis::SyntaxTrivia, Microsoft::CodeAnalysis::SyntaxTrivia, Microsoft::CodeAnalysis::SyntaxTrivia> ^ computeReplacementTrivia);
public static TRoot ReplaceTrivia<TRoot> (this TRoot root, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> trivia, Func<Microsoft.CodeAnalysis.SyntaxTrivia,Microsoft.CodeAnalysis.SyntaxTrivia,Microsoft.CodeAnalysis.SyntaxTrivia> computeReplacementTrivia) where TRoot : Microsoft.CodeAnalysis.SyntaxNode;
static member ReplaceTrivia : 'Root * seq<Microsoft.CodeAnalysis.SyntaxTrivia> * Func<Microsoft.CodeAnalysis.SyntaxTrivia, Microsoft.CodeAnalysis.SyntaxTrivia, Microsoft.CodeAnalysis.SyntaxTrivia> -> 'Root (requires 'Root :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function ReplaceTrivia(Of TRoot As SyntaxNode) (root As TRoot, trivia As IEnumerable(Of SyntaxTrivia), computeReplacementTrivia As Func(Of SyntaxTrivia, SyntaxTrivia, SyntaxTrivia)) As TRoot

형식 매개 변수

TRoot

루트 노드의 형식입니다.

매개 변수

root
TRoot

노드 트리의 루트 노드입니다.

trivia
IEnumerable<SyntaxTrivia>

바꿀 퀴즈입니다. 루트 노드의 하위 항목입니다.

computeReplacementTrivia
Func<SyntaxTrivia,SyntaxTrivia,SyntaxTrivia>

지정된 인수에 대한 대체 퀴즈를 계산하는 함수입니다. 첫 번째 인수는 원래 퀴즈입니다. 두 번째 인수는 잠재적으로 다시 작성된 하위 구조와 동일한 퀴즈입니다.

반환

TRoot

적용 대상