Searched defs:new_child (Results 1 - 1 of 1) sorted by relevance

/frameworks/base/tools/aapt2/
H A DDominatorTree.cpp41 bool DominatorTree::Node::TryAddChild(std::unique_ptr<Node> new_child) { argument
42 CHECK(new_child->value_) << "cannot add a root or empty node as a child";
43 if (value_ && !Dominates(new_child.get())) {
47 return AddChild(std::move(new_child));
50 bool DominatorTree::Node::AddChild(std::unique_ptr<Node> new_child) { argument
54 if (new_child->Dominates(child.get())) {
55 child->parent_ = new_child.get();
56 new_child->children_.push_back(std::move(child));
72 if (child->Dominates(new_child.get())) {
73 child->AddChild(std::move(new_child));
[all...]

Completed in 416 milliseconds