Helper method to deparent/parent a SyntaxToken to this instance with an expected kind of token condition.
protected void ParentToThis<TSyntaxNode, TExpected>(ref TSyntaxNode? set, TSyntaxNode? node, bool expectedKindSuccess, TExpected expectedMessage)
where TSyntaxNode : SyntaxToken
The previous child node parented to this instance
The new child node to parent to this instance
true if kind is matching, false otherwise
The message to display if the kind is not matching