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

Method GetLanguage

IDEHelper/DbgExprEvaluator.cpp:4363–4375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4361}
4362
4363DbgLanguage DbgExprEvaluator::GetLanguage()
4364{
4365 if (mLanguage != DbgLanguage_NotSet)
4366 return mLanguage;
4367 if ((mDbgCompileUnit != NULL) && (mDbgCompileUnit->mLanguage != DbgLanguage_Unknown))
4368 return mDbgCompileUnit->mLanguage;
4369 if (mExplicitThis)
4370 return mExplicitThis.mType->mLanguage;
4371 auto currentMethod = GetCurrentMethod();
4372 if (currentMethod != NULL)
4373 return currentMethod->GetLanguage();
4374 return DbgLanguage_Beef; // Default to Beef
4375}
4376
4377DbgFlavor DbgExprEvaluator::GetFlavor()
4378{

Callers 5

ReadTypedValueMethod · 0.45
DoLookupIdentifierMethod · 0.45
MatchMethodMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected