| 843 | } |
| 844 | |
| 845 | BeDbgFile* BeDbgLoc::GetDbgFile() |
| 846 | { |
| 847 | auto checkScope = mDbgScope; |
| 848 | while (checkScope != NULL) |
| 849 | { |
| 850 | if (auto inlinedScope = BeValueDynCast<BeDbgInlinedScope>(checkScope)) |
| 851 | { |
| 852 | checkScope = inlinedScope->mScope; |
| 853 | } |
| 854 | if (auto dbgFile = BeValueDynCast<BeDbgFile>(checkScope)) |
| 855 | { |
| 856 | return dbgFile; |
| 857 | } |
| 858 | else if (auto dbgStruct = BeValueDynCast<BeDbgStructType>(checkScope)) |
| 859 | { |
| 860 | checkScope = dbgStruct->mScope; |
| 861 | } |
| 862 | else if (auto dbgEnum = BeValueDynCast<BeDbgEnumType>(checkScope)) |
| 863 | { |
| 864 | checkScope = dbgEnum->mScope; |
| 865 | } |
| 866 | else if (auto dbgNamespace = BeValueDynCast<BeDbgNamespace>(checkScope)) |
| 867 | { |
| 868 | checkScope = dbgNamespace->mScope; |
| 869 | } |
| 870 | else if (auto dbgFunc = BeValueDynCast<BeDbgFunction>(checkScope)) |
| 871 | { |
| 872 | return dbgFunc->mFile; |
| 873 | } |
| 874 | else if (auto dbgLexBlock = BeValueDynCast<BeDbgLexicalBlock>(checkScope)) |
| 875 | { |
| 876 | return dbgLexBlock->mFile; |
| 877 | } |
| 878 | else |
| 879 | return NULL; |
| 880 | } |
| 881 | return NULL; |
| 882 | } |
| 883 | |
| 884 | BeDbgLoc* BeDbgLoc::GetInlinedAt(int idx) |
| 885 | { |
no outgoing calls
no test coverage detected