| 820 | ////////////////////////////////////////////////////////////////////////// |
| 821 | |
| 822 | BeDbgFunction* BeDbgLoc::GetDbgFunc() |
| 823 | { |
| 824 | auto checkScope = mDbgScope; |
| 825 | while (checkScope != NULL) |
| 826 | { |
| 827 | if (auto inlinedScope = BeValueDynCast<BeDbgInlinedScope>(checkScope)) |
| 828 | { |
| 829 | checkScope = inlinedScope->mScope; |
| 830 | } |
| 831 | if (auto dbgFunc = BeValueDynCast<BeDbgFunction>(checkScope)) |
| 832 | { |
| 833 | return dbgFunc; |
| 834 | } |
| 835 | else if (auto dbgLexBlock = BeValueDynCast<BeDbgLexicalBlock>(checkScope)) |
| 836 | { |
| 837 | checkScope = dbgLexBlock->mScope; |
| 838 | } |
| 839 | else |
| 840 | return NULL; |
| 841 | } |
| 842 | return NULL; |
| 843 | } |
| 844 | |
| 845 | BeDbgFile* BeDbgLoc::GetDbgFile() |
| 846 | { |
no outgoing calls
no test coverage detected