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

Method EvalCondition

IDEHelper/WinDebugger.cpp:6039–6059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6037}
6038
6039bool WinDebugger::EvalCondition(DebugVisualizerEntry* debugVis, DbgCompileUnit* dbgCompileUnit, DbgTypedValue typedVal, DwFormatInfo& formatInfo, const StringImpl& condition, const Array<String>& dbgVisWildcardCaptures, String& errorStr)
6040{
6041 DwFormatInfo displayStrFormatInfo = formatInfo;
6042 displayStrFormatInfo.mHidePointers = false;
6043 displayStrFormatInfo.mRawString = false;
6044
6045 String errors;
6046 const String conditionStr = mDebugManager->mDebugVisualizers->DoStringReplace(condition, dbgVisWildcardCaptures);
6047 DbgTypedValue evalResult = EvaluateInContext(dbgCompileUnit, typedVal, conditionStr, &displayStrFormatInfo, NULL, &errors);
6048 if ((!evalResult) || (!evalResult.mType->IsBoolean()))
6049 {
6050 if (formatInfo.mRawString)
6051 return false;
6052
6053 errorStr += "<DbgVis Failed>";
6054 DbgVisFailed(debugVis, conditionStr, errors);
6055 return false;
6056 }
6057
6058 return evalResult.mBool;
6059}
6060
6061String WinDebugger::GetArrayItems(DbgCompileUnit* dbgCompileUnit, DebugVisualizerEntry* debugVis, DbgType* valueType, DbgTypedValue& curNode, int& count, String* outContinuationData)
6062{

Callers 1

Calls 2

DoStringReplaceMethod · 0.80
IsBooleanMethod · 0.45

Tested by

no test coverage detected