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

Method UnknownMemberError

source/script.cpp:13094–13103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13092}
13093
13094__declspec(noinline)
13095ResultType ResultToken::UnknownMemberError(ExprTokenType &aObject, int aFlags, LPCTSTR aMember)
13096{
13097 TCHAR msg[512];
13098 if (!aMember)
13099 aMember = (aFlags & IT_CALL) ? _T("Call") : _T("__Item");
13100 sntprintf(msg, _countof(msg), _T("This value of type \"%s\" has no %s named \"%s\".")
13101 , TokenTypeString(aObject), (aFlags & IT_CALL) ? _T("method") : _T("property"), aMember);
13102 return Error(msg, nullptr, (aFlags & IT_CALL) ? ErrorPrototype::Method : ErrorPrototype::Property);
13103}
13104
13105__declspec(noinline)
13106ResultType ResultToken::Win32Error(DWORD aError)

Callers 9

ExpandExpressionMethod · 0.80
CallMethodFunction · 0.80
InvokeMethod · 0.80
GetOwnPropDescMethod · 0.80
GetObjectIntPropertyFunction · 0.80
SetObjectIntPropertyFunction · 0.80
ObjectToStringFunction · 0.80
ValidateFunctorFunction · 0.80
BIF_DECLFunction · 0.80

Calls 2

sntprintfFunction · 0.85
TokenTypeStringFunction · 0.85

Tested by

no test coverage detected