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

Function fxBindingNodeCode

xs/sources/xsCode.c:2483–2498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2481}
2482
2483void fxBindingNodeCode(void* it, void* param)
2484{
2485 txBindingNode* self = it;
2486 txCoder* coder = param;
2487
2488 if (self->target->description->token == XS_TOKEN_ACCESS) {
2489 fxReportParserError(coder->parser, self->line, "invalid initializer");
2490 fxNodeDispatchCode(self->initializer, param);
2491 return;
2492 }
2493
2494 fxNodeDispatchCodeReference(self->target, param, 0);
2495 fxNodeDispatchCode(self->initializer, param);
2496 fxNodeDispatchCodeAssign(self->target, param, 0);
2497 fxCoderAddByte(coder, -1, XS_CODE_POP);
2498}
2499
2500void fxBindingNodeCodeAssign(void* it, void* param, txFlag flag)
2501{

Callers

nothing calls this directly

Calls 5

fxReportParserErrorFunction · 0.85
fxNodeDispatchCodeFunction · 0.85
fxNodeDispatchCodeAssignFunction · 0.85
fxCoderAddByteFunction · 0.85

Tested by

no test coverage detected