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

Function fxPrefixExpression

xs/sources/xsSyntaxical.c:2102–2118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2100}
2101
2102void fxPrefixExpression(txParser* parser)
2103{
2104 if (gxTokenFlags[parser->states[0].token] & XS_TOKEN_PREFIX_EXPRESSION) {
2105 txToken aToken = parser->states[0].token;
2106 txInteger aLine = parser->states[0].line;
2107 fxCheckParserStack(parser, aLine);
2108 fxGetNextToken(parser);
2109 fxPrefixExpression(parser);
2110 fxCheckArrowFunction(parser, 1);
2111 if (!fxCheckReference(parser, aToken))
2112 fxReportParserError(parser, parser->states[0].line, "no reference");
2113 fxPushNodeStruct(parser, 1, aToken, aLine);
2114 parser->root->flags = mxExpressionNoValue;
2115 }
2116 else
2117 fxPostfixExpression(parser);
2118}
2119
2120void fxPostfixExpression(txParser* parser)
2121{

Callers 2

fxUnaryExpressionFunction · 0.85

Calls 7

fxCheckParserStackFunction · 0.85
fxGetNextTokenFunction · 0.85
fxCheckArrowFunctionFunction · 0.85
fxCheckReferenceFunction · 0.85
fxReportParserErrorFunction · 0.85
fxPushNodeStructFunction · 0.85
fxPostfixExpressionFunction · 0.85

Tested by

no test coverage detected