MCPcopy Create free account
hub / github.com/alibaba/euler / DeleteNode

Method DeleteNode

euler/parser/tree.h:214–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 }
213
214 void DeleteNode(TreeNode* t) {
215 if (t->GetParent() != nullptr) {
216 t->GetParent()->DeleteChild(t);
217 } else {
218 delete t;
219 }
220 }
221
222 void PostTraversal(TreeNode* root,
223 std::vector<TreeNode*>* results) const {

Callers

nothing calls this directly

Calls 2

GetParentMethod · 0.80
DeleteChildMethod · 0.80

Tested by

no test coverage detected