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

Function fxAssignmentExpression

xs/sources/xsSyntaxical.c:1860–1877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1858}
1859
1860void fxAssignmentExpression(txParser* parser)
1861{
1862 fxCheckParserStack(parser, parser->states[0].line);
1863 if (parser->states[0].token == XS_TOKEN_YIELD)
1864 fxYieldExpression(parser);
1865 else {
1866 fxConditionalExpression(parser);
1867 while (gxTokenFlags[parser->states[0].token] & XS_TOKEN_ASSIGN_EXPRESSION) {
1868 txToken aToken = parser->states[0].token;
1869 txInteger aLine = parser->states[0].line;
1870 if (!fxCheckReference(parser, aToken))
1871 fxReportParserError(parser, parser->states[0].line, "no reference");
1872 fxGetNextToken(parser);
1873 fxAssignmentExpression(parser);
1874 fxPushNodeStruct(parser, 2, aToken, aLine);
1875 }
1876 }
1877}
1878
1879void fxConditionalExpression(txParser* parser)
1880{

Callers 15

fxExportDeclarationFunction · 0.85
xsSyntaxical.cFile · 0.85
fxCommaExpressionFunction · 0.85
fxConditionalExpressionFunction · 0.85
fxLiteralExpressionFunction · 0.85
fxArrayExpressionFunction · 0.85
fxArrowExpressionFunction · 0.85
fxClassExpressionFunction · 0.85
fxGroupExpressionFunction · 0.85
fxObjectExpressionFunction · 0.85
fxYieldExpressionFunction · 0.85
fxParametersFunction · 0.85

Calls 7

fxCheckParserStackFunction · 0.85
fxYieldExpressionFunction · 0.85
fxConditionalExpressionFunction · 0.85
fxCheckReferenceFunction · 0.85
fxReportParserErrorFunction · 0.85
fxGetNextTokenFunction · 0.85
fxPushNodeStructFunction · 0.85

Tested by

no test coverage detected