MCPcopy Index your code
hub / github.com/lutzroeder/netron / calcIfExitStatus

Method calcIfExitStatus

source/python.js:18602–18615  ·  view source on GitHub ↗
(then_status, else_status)

Source from the content-addressed store, hash-verified

18600 return result;
18601 }
18602 calcIfExitStatus(then_status, else_status) {
18603 if (then_status === 'THROWS') {
18604 return else_status;
18605 } else if (else_status === 'THROWS') {
18606 return then_status;
18607 }
18608 if (then_status === 'WONT' && else_status === 'WONT') {
18609 return 'WONT';
18610 }
18611 if (then_status === 'WILL' && else_status === 'WILL') {
18612 return 'WILL';
18613 }
18614 return 'MIGHT';
18615 }
18616 transformIf(node) {
18617 const [then_block, else_block] = node.blocks();
18618 let then_pair = this.transformExits(then_block);

Callers 1

transformIfMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected