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

Function fxAccessNodeCode

xs/sources/xsCode.c:2052–2062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2050}
2051
2052void fxAccessNodeCode(void* it, void* param)
2053{
2054 txAccessNode* self = it;
2055 txDeclareNode* declaration = self->declaration;
2056 if (!declaration) {
2057 fxAccessNodeCodeReference(it, param, 0);
2058 fxCoderAddSymbol(param, 0, XS_CODE_GET_VARIABLE, self->symbol);
2059 }
2060 else
2061 fxCoderAddIndex(param, 1, (declaration->flags & mxDeclareNodeClosureFlag) ? XS_CODE_GET_CLOSURE_1 : XS_CODE_GET_LOCAL_1, declaration->index);
2062}
2063
2064void fxAccessNodeCodeAssign(void* it, void* param, txFlag flag)
2065{

Callers

nothing calls this directly

Calls 3

fxCoderAddSymbolFunction · 0.85
fxCoderAddIndexFunction · 0.85

Tested by

no test coverage detected