MCPcopy Create free account
hub / github.com/beefytech/Beef / GetDbgFile

Method GetDbgFile

IDEHelper/Backend/BeModule.cpp:845–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843}
844
845BeDbgFile* 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
884BeDbgLoc* BeDbgLoc::GetInlinedAt(int idx)
885{

Callers 7

FailMethod · 0.80
BuildMethod · 0.80
ToStringMethod · 0.80
StartMethod · 0.80
DbgGenerateModuleInfoMethod · 0.80
SoftFailMethod · 0.80
DoCodeEmissionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected