Lines Matching refs:Child
70 void syntax::Tree::appendChildLowLevel(Node *Child, NodeRole Role) { in appendChildLowLevel() argument
71 assert(Child->getRole() == NodeRole::Detached); in appendChildLowLevel()
74 Child->setRole(Role); in appendChildLowLevel()
75 appendChildLowLevel(Child); in appendChildLowLevel()
78 void syntax::Tree::appendChildLowLevel(Node *Child) { in appendChildLowLevel() argument
79 assert(Child->Parent == nullptr); in appendChildLowLevel()
80 assert(Child->NextSibling == nullptr); in appendChildLowLevel()
81 assert(Child->PreviousSibling == nullptr); in appendChildLowLevel()
82 assert(Child->getRole() != NodeRole::Detached); in appendChildLowLevel()
84 Child->Parent = this; in appendChildLowLevel()
86 Child->PreviousSibling = this->LastChild; in appendChildLowLevel()
87 this->LastChild->NextSibling = Child; in appendChildLowLevel()
89 this->FirstChild = Child; in appendChildLowLevel()
91 this->LastChild = Child; in appendChildLowLevel()
94 void syntax::Tree::prependChildLowLevel(Node *Child, NodeRole Role) { in prependChildLowLevel() argument
95 assert(Child->getRole() == NodeRole::Detached); in prependChildLowLevel()
98 Child->setRole(Role); in prependChildLowLevel()
99 prependChildLowLevel(Child); in prependChildLowLevel()
102 void syntax::Tree::prependChildLowLevel(Node *Child) { in prependChildLowLevel() argument
103 assert(Child->Parent == nullptr); in prependChildLowLevel()
104 assert(Child->NextSibling == nullptr); in prependChildLowLevel()
105 assert(Child->PreviousSibling == nullptr); in prependChildLowLevel()
106 assert(Child->getRole() != NodeRole::Detached); in prependChildLowLevel()
108 Child->Parent = this; in prependChildLowLevel()
110 Child->NextSibling = this->FirstChild; in prependChildLowLevel()
111 this->FirstChild->PreviousSibling = Child; in prependChildLowLevel()
113 this->LastChild = Child; in prependChildLowLevel()
115 this->FirstChild = Child; in prependChildLowLevel()