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

Function fxReturnStatement

xs/sources/xsSyntaxical.c:1654–1665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1652}
1653
1654void fxReturnStatement(txParser* parser)
1655{
1656 txInteger aLine = parser->states[0].line;
1657 fxMatchToken(parser, XS_TOKEN_RETURN);
1658 if ((!parser->states[0].crlf) && (gxTokenFlags[parser->states[0].token] & XS_TOKEN_BEGIN_EXPRESSION)) {
1659 fxCommaExpression(parser);
1660 }
1661 else {
1662 fxPushNULL(parser);
1663 }
1664 fxPushNodeStruct(parser, 1, XS_TOKEN_RETURN, aLine);
1665}
1666
1667void fxSwitchStatement(txParser* parser)
1668{

Callers 1

fxStatementFunction · 0.85

Calls 4

fxMatchTokenFunction · 0.85
fxCommaExpressionFunction · 0.85
fxPushNULLFunction · 0.85
fxPushNodeStructFunction · 0.85

Tested by

no test coverage detected