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

Function fxPushNodeList

xs/sources/xsSyntaxical.c:625–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625void fxPushNodeList(txParser* parser, txInteger count)
626{
627 txNodeList* list = fxNewParserChunk(parser, sizeof(txNodeList));
628 txNode* previous = NULL;
629 txNode* current = parser->root;
630 txNode* next;
631 parser->nodeCount -= count;
632 list->length = count;
633 while (count) {
634 next = current->next;
635 current->next = previous;
636 previous = current;
637 current = next;
638 count--;
639 }
640 parser->root = current;
641 list->description = &gxTokenDescriptions[XS_NO_TOKEN];
642 list->first = previous;
643 fxPushNode(parser, (txNode*)list);
644}
645
646void fxPushNULL(txParser* parser)
647{

Callers 15

fxModuleFunction · 0.85
fxExportDeclarationFunction · 0.85
fxImportDeclarationFunction · 0.85
fxProgramFunction · 0.85
fxBodyFunction · 0.85
fxStatementsFunction · 0.85
fxSwitchStatementFunction · 0.85
fxVariableStatementFunction · 0.85
fxCommaExpressionFunction · 0.85
fxCallExpressionFunction · 0.85
fxLiteralExpressionFunction · 0.85
fxArrayExpressionFunction · 0.85

Calls 2

fxNewParserChunkFunction · 0.85
fxPushNodeFunction · 0.85

Tested by

no test coverage detected