Bagikan melalui


SyntaxNodeExtensions.RemoveNodes<TRoot> Metode

Definisi

Membuat pohon node baru dengan node yang ditentukan dihapus.

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

Jenis parameter

TRoot

Jenis simpul akar.

Parameter

root
TRoot

Simpul akar tempat untuk menghapus simpul turunan.

nodes
IEnumerable<SyntaxNode>

Simpul yang akan dihapus.

options
SyntaxRemoveOptions

Opsi yang menentukan bagaimana trivia simpul diperlakukan.

Mengembalikan

TRoot

Berlaku untuk