Lines Matching defs:child
602 bool Helpers::IsChild(const ir::AstNode *parent, const ir::AstNode *child)
604 while (child) {
605 if (child == parent) {
609 child = child->Parent();
615 bool Helpers::IsChildScope(const binder::Scope *parent, const binder::Scope *child)
617 while (child) {
618 if (child == parent) {
622 child = child->Parent();