| 559 | } |
| 560 | |
| 561 | bool IsDyn(BfScopeData* scopeData) |
| 562 | { |
| 563 | auto checkScope = this; |
| 564 | // Scoping to a loop is dynamic - it doesn't have to cross the loop boundary. |
| 565 | // Scoping to a loop _body_ is not necessarily dynamic, however. |
| 566 | while (checkScope != NULL) |
| 567 | { |
| 568 | if (checkScope->mIsConditional) |
| 569 | return true; |
| 570 | if ((checkScope->mIsLoop) || (checkScope->mInnerIsConditional)) |
| 571 | return true; |
| 572 | if (checkScope == scopeData) |
| 573 | break; |
| 574 | if (checkScope->mOuterIsConditional) |
| 575 | return true; |
| 576 | checkScope = checkScope->mPrevScope; |
| 577 | } |
| 578 | return false; |
| 579 | } |
| 580 | |
| 581 | bool CrossesMixin(BfScopeData* scopeData) |
| 582 | { |
no outgoing calls
no test coverage detected