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

Function PiuText_beginSpan

modules/piu/All/piuText.c:1243–1252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241}
1242
1243void PiuText_beginSpan(xsMachine *the)
1244{
1245 PiuText* self = PIU(Text, xsThis);
1246 xsIntegerValue c = xsToInteger(xsArgc);
1247 PiuStyle* style = ((c > 0) && xsTest(xsArg(0))) ? PIU(Style, xsArg(0)) : NULL;
1248 PiuTextLink* link = ((c > 1) && xsTest(xsArg(1))) ? PIU(TextLink, xsArg(1)) : NULL;
1249 if ((*self)->nodeOffset == -1)
1250 xsUnknownError("span outside block");
1251 PiuTextBeginNode(self, piuTextNodeBeginSpanKind, style, link);
1252}
1253
1254void PiuText_concat(xsMachine *the)
1255{

Callers

nothing calls this directly

Calls 1

PiuTextBeginNodeFunction · 0.85

Tested by

no test coverage detected