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

Function TokenToObject

source/script2.cpp:17097–17108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17095
17096
17097IObject *TokenToObject(ExprTokenType &aToken)
17098// L31: Returns IObject* from SYM_OBJECT or SYM_VAR (where var->HasObject()), NULL for other tokens.
17099// Caller is responsible for calling AddRef() if that is appropriate.
17100{
17101 if (aToken.symbol == SYM_OBJECT)
17102 return aToken.object;
17103
17104 if (aToken.symbol == SYM_VAR)
17105 return aToken.var->ToObject();
17106
17107 return NULL;
17108}
17109
17110
17111

Callers 15

TokenToArrayFunction · 0.85
__NewMethod · 0.85
SetMenuMethod · 0.85
ExpandExpressionMethod · 0.85
VariadicCallFunction · 0.85
CallMethod · 0.85
CreateMethod · 0.85
GetEnumeratorFunction · 0.85
InvokeMethod · 0.85
CallAsMethodMethod · 0.85
ConvertKeyMethod · 0.85
UnhandledExceptionMethod · 0.85

Calls 1

ToObjectMethod · 0.45

Tested by

no test coverage detected