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

Function PiuTextLinkDictionary

modules/piu/All/piuText.c:251–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void PiuTextLinkDictionary(xsMachine* the, void* it)
252{
253 PiuTextLink* self = it;
254 if (xsFindResult(xsArg(1), xsID_anchor)) {
255 if (xsTest(xsArg(0))) {
256 xsSetAt(xsArg(0), xsResult, xsThis);
257 }
258 }
259 if (xsFindResult(xsArg(1), xsID_Behavior)) {
260 if (xsIsInstanceOf(xsResult, xsFunctionPrototype)) {
261 fxPush(xsResult);
262 fxNew(the);
263 fxRunCount(the, 0);
264 xsResult = fxPop();
265 (*self)->behavior = xsToReference(xsResult);
266 }
267 }
268 else if (xsFindResult(xsArg(1), xsID_behavior)) {
269 if (xsIsInstanceOf(xsResult, xsObjectPrototype)) {
270 (*self)->behavior = xsToReference(xsResult);
271 }
272 }
273}
274
275void PiuTextLinkMark(xsMachine* the, void* it, xsMarkRoot markRoot)
276{

Callers 1

PiuTextLink_createFunction · 0.85

Calls 2

fxNewFunction · 0.85
fxRunCountFunction · 0.85

Tested by

no test coverage detected