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

Function fxGetNextTokenTemplate

xs/sources/xsLexical.c:1422–1444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1420}
1421
1422void fxGetNextTokenTemplate(txParser* parser)
1423{
1424 parser->states[2].crlf = 0;
1425 parser->states[2].escaped = 0;
1426 parser->states[2].integer = 0;
1427 parser->states[2].modifierLength = 0;
1428 parser->states[2].modifier = parser->emptyString;
1429 parser->states[2].number = 0;
1430 parser->states[2].rawLength = 0;
1431 parser->states[2].raw = parser->emptyString;
1432 parser->states[2].stringLength = 0;
1433 parser->states[2].string = parser->emptyString;
1434 parser->states[2].symbol = C_NULL;
1435 parser->states[2].token = XS_NO_TOKEN;
1436 fxGetNextString(parser, '`');
1437 if (parser->character == '{')
1438 parser->states[2].token = XS_TOKEN_TEMPLATE_MIDDLE;
1439 else
1440 parser->states[2].token = XS_TOKEN_TEMPLATE_TAIL;
1441 fxGetNextCharacter(parser);
1442 parser->states[0] = parser->states[2];
1443 parser->ahead = 0;
1444}
1445
1446void fxGetNextTokenJSON(txParser* parser)
1447{

Callers 1

fxTemplateExpressionFunction · 0.85

Calls 2

fxGetNextStringFunction · 0.85
fxGetNextCharacterFunction · 0.85

Tested by

no test coverage detected