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

Function fxJSXNamespace

xs/sources/xsSyntaxical.c:4614–4622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4612}
4613
4614txSymbol* fxJSXNamespace(txParser* parser, txSymbol* namespace, txSymbol* name)
4615{
4616 txSize namespaceLength = namespace->length;
4617 txSize nameLength = name->length;
4618 txSize length = namespaceLength + 1 + nameLength + 1;
4619 txString string = fxNewParserChunk(parser, length);
4620 snprintf(string, length, "%s:%s", namespace->string, name->string);
4621 return fxNewParserSymbol(parser, string);
4622}

Callers 2

fxJSXAttributeNameFunction · 0.85
fxJSXElementNameFunction · 0.85

Calls 2

fxNewParserChunkFunction · 0.85
fxNewParserSymbolFunction · 0.85

Tested by

no test coverage detected