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

Function fxJSXName

xs/sources/xsSyntaxical.c:4379–4387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4377}
4378
4379static txSymbol* fxJSXName(txParser* parser, txSymbol* before, txSymbol* after)
4380{
4381 txSize beforeLength = before->length;
4382 txSize afterLength = after->length;
4383 txSize length = beforeLength + 1 + afterLength + 1;
4384 txString string = fxNewParserChunk(parser, length);
4385 snprintf(string, length, "%s-%s", before->string, after->string);
4386 return fxNewParserSymbol(parser, string);
4387}
4388
4389void fxJSXAttributeName(txParser* parser)
4390{

Callers 1

fxJSXAttributeNameFunction · 0.85

Calls 2

fxNewParserChunkFunction · 0.85
fxNewParserSymbolFunction · 0.85

Tested by

no test coverage detected