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

Function fxJSONModule

xs/sources/xsSyntaxical.c:4354–4377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4352}
4353
4354void fxJSONModule(txParser* parser)
4355{
4356 fxJSONValue(parser);
4357
4358 fxPushSymbol(parser, parser->defaultSymbol);
4359 fxPushNULL(parser);
4360 fxPushNodeStruct(parser, 2, XS_TOKEN_CONST, 1);
4361 fxSwapNodes(parser);
4362 fxPushNodeStruct(parser, 2, XS_TOKEN_ASSIGN, 1);
4363 fxPushNodeStruct(parser, 1, XS_TOKEN_STATEMENT, 1);
4364
4365 fxPushSymbol(parser, parser->defaultSymbol);
4366 fxPushNULL(parser);
4367 fxPushNodeStruct(parser, 2, XS_TOKEN_SPECIFIER, 1);
4368 fxPushNodeList(parser, 1);
4369 fxPushNULL(parser);
4370 fxPushNULL(parser);
4371 fxPushNodeStruct(parser, 3, XS_TOKEN_EXPORT, 1);
4372
4373 fxPushNodeList(parser, 2);
4374 fxPushNodeStruct(parser, 1, XS_TOKEN_STATEMENTS, 1);
4375
4376 fxPushNodeStruct(parser, 1, XS_TOKEN_MODULE, 1);
4377}
4378
4379static txSymbol* fxJSXName(txParser* parser, txSymbol* before, txSymbol* after)
4380{

Callers 1

fxParserTreeFunction · 0.85

Calls 6

fxJSONValueFunction · 0.85
fxPushSymbolFunction · 0.85
fxPushNULLFunction · 0.85
fxPushNodeStructFunction · 0.85
fxSwapNodesFunction · 0.85
fxPushNodeListFunction · 0.85

Tested by

no test coverage detected