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

Function TokenTypeString

source/script2.cpp:16678–16688  ·  view source on GitHub ↗

Returns the type name of the given value.

Source from the content-addressed store, hash-verified

16676
16677// Returns the type name of the given value.
16678LPTSTR TokenTypeString(ExprTokenType &aToken)
16679{
16680 switch (TypeOfToken(aToken))
16681 {
16682 case SYM_STRING: return STRING_TYPE_STRING;
16683 case SYM_INTEGER: return INTEGER_TYPE_STRING;
16684 case SYM_FLOAT: return FLOAT_TYPE_STRING;
16685 case SYM_OBJECT: return TokenToObject(aToken)->Type();
16686 default: return _T(""); // For maintainability.
16687 }
16688}
16689
16690
16691

Callers 3

UnknownMemberErrorMethod · 0.85
TokenTypeAndValueFunction · 0.85
BIF_DECLFunction · 0.85

Calls 3

TypeOfTokenFunction · 0.85
TokenToObjectFunction · 0.85
TypeMethod · 0.45

Tested by

no test coverage detected