| 68 | } |
| 69 | |
| 70 | PathAnalysis::Progress PathAnalysis::forwardRecursive(const Token* tok, Info info, const std::function<PathAnalysis::Progress(const Info&)>& f) |
| 71 | { |
| 72 | if (!tok) |
| 73 | return Progress::Continue; |
| 74 | if (tok->astOperand1() && forwardRecursive(tok->astOperand1(), info, f) == Progress::Break) |
| 75 | return Progress::Break; |
| 76 | info.tok = tok; |
| 77 | if (f(info) == Progress::Break) |
| 78 | return Progress::Break; |
| 79 | if (tok->astOperand2() && forwardRecursive(tok->astOperand2(), std::move(info), f) == Progress::Break) |
| 80 | return Progress::Break; |
| 81 | return Progress::Continue; |
| 82 | } |
| 83 | |
| 84 | PathAnalysis::Progress PathAnalysis::forwardRange(const Token* startToken, const Token* endToken, Info info, const std::function<PathAnalysis::Progress(const Info&)>& f) const |
| 85 | { |
nothing calls this directly
no test coverage detected