ParentToThis(ref TSyntaxNode?, TSyntaxNode?) Method

Definition

Namespace Tomlyn.Syntax
Assembly Tomlyn.dll

Helper method to deparent/parent a node to this instance.

protected void ParentToThis<TSyntaxNode>(ref TSyntaxNode? set, TSyntaxNode? node)
    where TSyntaxNode : SyntaxNode

Type parameters

TSyntaxNode
Type of the node

Parameters

set
{TSyntaxNode}

The previous child node parented to this instance

node
{TSyntaxNode}

The new child node to parent to this instance