private void AddLeafNode(SyntaxTreeNode node) { if (stack.Count > 0) { InteriorNode inNode = (InteriorNode)stack.Pop(); if (inNode != null) { inNode.RightChild = node; node = inNode; } } stack.Push( node ); isPartial = true; }