| 563 | } |
| 564 | |
| 565 | Progress updateScope(Token* endBlock, int depth = 20) |
| 566 | { |
| 567 | if (!endBlock) |
| 568 | return Break(); |
| 569 | assert(endBlock->link()); |
| 570 | Token* ctx = endBlock->link()->previous(); |
| 571 | if (Token::simpleMatch(ctx, ")")) |
| 572 | ctx = ctx->link()->previous(); |
| 573 | if (ctx) |
| 574 | analyzer->updateState(ctx); |
| 575 | return updateRange(endBlock->link(), endBlock, depth); |
| 576 | } |
| 577 | |
| 578 | /** |
| 579 | * @throws InternalError thrown on cyclic analysis |
no test coverage detected