MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxTypeOf

Function fxTypeOf

xs/sources/xsAPI.c:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48/* Slot */
49
50txKind fxTypeOf(txMachine* the, txSlot* theSlot)
51{
52 if (theSlot->kind == XS_STRING_X_KIND)
53 return XS_STRING_KIND;
54 if (theSlot->kind == XS_BIGINT_X_KIND)
55 return XS_BIGINT_KIND;
56#if mxHostFunctionPrimitive
57 if (theSlot->kind == XS_HOST_FUNCTION_KIND)
58 return XS_REFERENCE_KIND;
59#endif
60 return theSlot->kind;
61}
62
63/* Primitives */
64

Callers 7

builtinGetCallbackFunction · 0.85
builtinGetSignedIntegerFunction · 0.85
fxFindBooleanFunction · 0.85
fxFindIntegerFunction · 0.85
fxFindNumberFunction · 0.85
fxFindStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected