Lines Matching refs:found
171 void AnyChildHelper(bool *found, const NodePredicate &cb, AstNode *ast)
173 if (*found) {
178 *found = true;
182 ast->Iterate([=](AstNode *child) { AnyChildHelper(found, cb, child); });
187 bool found = false;
188 Iterate([&found, cb](AstNode *child) { AnyChildHelper(&found, cb, child); });
189 return found;
192 void FindChildHelper(AstNode *&found, const NodePredicate &cb, AstNode *ast)
194 if (found != nullptr) {
199 found = ast;
203 ast->Iterate([&found, cb](AstNode *child) { FindChildHelper(found, cb, child); });
208 AstNode *found = nullptr;
209 Iterate([&found, cb](AstNode *child) { FindChildHelper(found, cb, child); });
210 return found;