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

Function TokenIsPureNumeric

source/script2.cpp:16870–16884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16868
16869
16870SymbolType TokenIsPureNumeric(ExprTokenType &aToken)
16871{
16872 switch (aToken.symbol)
16873 {
16874 case SYM_INTEGER:
16875 case SYM_FLOAT:
16876 return aToken.symbol;
16877 case SYM_VAR:
16878 if (!aToken.var->IsUninitializedNormalVar()) // Caller doesn't want a warning, so avoid calling Contents().
16879 return aToken.var->IsPureNumeric();
16880 //else fall through:
16881 default:
16882 return PURE_NOT_NUMERIC;
16883 }
16884}
16885
16886
16887SymbolType TokenIsPureNumeric(ExprTokenType &aToken, SymbolType &aNumType)

Callers 6

InvokeMethod · 0.85
ControlChooseMethod · 0.85
ExpandExpressionMethod · 0.85
SetColorMethod · 0.85
DetermineTargetHwndFunction · 0.85
InvokeMethod · 0.85

Calls 4

IsNumericFunction · 0.85
IsPureNumericMethod · 0.80
IsNumericMethod · 0.80

Tested by

no test coverage detected