MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / WriteDynamicProperty

Method WriteDynamicProperty

source/Debugger.cpp:2804–2821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2802
2803
2804void Debugger::PropertyWriter::WriteDynamicProperty(LPTSTR aName)
2805{
2806 FuncResult result_token;
2807 ExprTokenType t_this(mProp.this_object ? mProp.this_object : mObject);
2808 auto excpt_mode = g->ExcptMode;
2809 g->ExcptMode |= EXCPTMODE_CATCH;
2810 auto result = mObject->Invoke(result_token, IT_GET, aName, t_this, nullptr, 0);
2811 g->ExcptMode = excpt_mode;
2812 if (!result)
2813 {
2814 if (g->ThrownToken)
2815 g_script.FreeExceptionToken(g->ThrownToken);
2816 result_token.SetValue(_T("<error>"), 7);
2817 }
2818 mDbg.AppendPropertyName(mProp.fullname, mNameLength, CStringUTF8FromTChar(aName));
2819 _WriteProperty(result_token);
2820 result_token.Free();
2821}
2822
2823
2824void Debugger::PropertyWriter::_WriteProperty(ExprTokenType &aValue, IObject *aThisOverride)

Callers 1

DebugWritePropertyMethod · 0.80

Calls 5

FreeExceptionTokenMethod · 0.80
SetValueMethod · 0.80
AppendPropertyNameMethod · 0.80
InvokeMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected