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

Function fxPushStringNode

xs/sources/xsSyntaxical.c:675–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673}
674
675void fxPushStringNode(txParser* parser, txInteger length, txString value, txInteger line)
676{
677 txStringNode* node = fxNewParserChunk(parser, sizeof(txStringNode));
678 node->description = &gxTokenDescriptions[XS_TOKEN_STRING];
679 node->path = parser->path;
680 node->line = line;
681 node->flags = parser->states[0].escaped;
682 node->length = length;
683 node->value = value;
684 fxPushNode(parser, (txNode*)node);
685}
686
687void fxPushSymbol(txParser* parser, txSymbol* symbol)
688{

Callers 12

fxExportDeclarationFunction · 0.85
fxImportDeclarationFunction · 0.85
fxCallExpressionFunction · 0.85
fxLiteralExpressionFunction · 0.85
fxClassExpressionFunction · 0.85
fxFunctionExpressionFunction · 0.85
fxNewExpressionFunction · 0.85
fxTemplateExpressionFunction · 0.85
fxJSONValueFunction · 0.85
fxJSONObjectFunction · 0.85
fxJSXAttributeValueFunction · 0.85
fxJSXElementFunction · 0.85

Calls 2

fxNewParserChunkFunction · 0.85
fxPushNodeFunction · 0.85

Tested by

no test coverage detected