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

Function fxAwaitNodeCode

xs/sources/xsCode.c:2454–2467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2452}
2453
2454void fxAwaitNodeCode(void* it, void* param)
2455{
2456 txStatementNode* self = it;
2457 txCoder* coder = param;
2458 txTargetCode* target = fxCoderCreateTarget(coder);
2459 fxNodeDispatchCode(self->expression, param);
2460 fxCoderAddByte(param, 0, XS_CODE_AWAIT);
2461 fxCoderAddBranch(coder, 1, XS_CODE_BRANCH_STATUS_1, target);
2462 fxCoderAddByte(param, -1, XS_CODE_SET_RESULT);
2463 fxCoderAdjustEnvironment(coder, coder->returnTarget);
2464 fxCoderAdjustScope(coder, coder->returnTarget);
2465 fxCoderAddBranch(param, 0, XS_CODE_BRANCH_1, coder->returnTarget);
2466 fxCoderAdd(coder, 0, target);
2467}
2468
2469void fxBigIntNodeCode(void* it, void* param)
2470{

Callers

nothing calls this directly

Calls 7

fxCoderCreateTargetFunction · 0.85
fxNodeDispatchCodeFunction · 0.85
fxCoderAddByteFunction · 0.85
fxCoderAddBranchFunction · 0.85
fxCoderAdjustEnvironmentFunction · 0.85
fxCoderAdjustScopeFunction · 0.85
fxCoderAddFunction · 0.85

Tested by

no test coverage detected