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

Function fxAccessNodeCodeAssign

xs/sources/xsCode.c:2064–2072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2062}
2063
2064void fxAccessNodeCodeAssign(void* it, void* param, txFlag flag)
2065{
2066 txAccessNode* self = it;
2067 txDeclareNode* declaration = self->declaration;
2068 if (!declaration)
2069 fxCoderAddSymbol(param, -1, XS_CODE_SET_VARIABLE, self->symbol);
2070 else
2071 fxCoderAddIndex(param, 0, (declaration->flags & mxDeclareNodeClosureFlag) ? XS_CODE_SET_CLOSURE_1 : XS_CODE_SET_LOCAL_1, declaration->index);
2072}
2073
2074void fxAccessNodeCodeDelete(void* it, void* param)
2075{

Callers

nothing calls this directly

Calls 2

fxCoderAddSymbolFunction · 0.85
fxCoderAddIndexFunction · 0.85

Tested by

no test coverage detected