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

Function fxCatchNodeCode

xs/sources/xsCode.c:2577–2598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2575}
2576
2577void fxCatchNodeCode(void* it, void* param)
2578{
2579 txCatchNode* self = it;
2580 if (self->parameter) {
2581 fxScopeCodingBlock(self->scope, param);
2582 fxNodeDispatchCodeReference(self->parameter, param, 0);
2583 fxCoderAddByte(param, 1, XS_CODE_EXCEPTION);
2584 fxNodeDispatchCodeAssign(self->parameter, param, 0);
2585 fxCoderAddByte(param, -1, XS_CODE_POP);
2586 fxScopeCodingBlock(self->statementScope, param);
2587 fxScopeCodeDefineNodes(self->statementScope, param);
2588 fxScopeCodeUsingStatement(self->statementScope, param, self->statement);
2589 fxScopeCoded(self->statementScope, param);
2590 fxScopeCoded(self->scope, param);
2591 }
2592 else {
2593 fxScopeCodingBlock(self->statementScope, param);
2594 fxScopeCodeDefineNodes(self->statementScope, param);
2595 fxScopeCodeUsingStatement(self->statementScope, param, self->statement);
2596 fxScopeCoded(self->statementScope, param);
2597 }
2598}
2599
2600void fxChainNodeCode(void* it, void* param)
2601{

Callers

nothing calls this directly

Calls 7

fxScopeCodingBlockFunction · 0.85
fxCoderAddByteFunction · 0.85
fxNodeDispatchCodeAssignFunction · 0.85
fxScopeCodeDefineNodesFunction · 0.85
fxScopeCodedFunction · 0.85

Tested by

no test coverage detected