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

Function PiuDebugMachinePushTag

tools/xsbug/DebugBehavior.c:1351–1423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1349}
1350
1351void PiuDebugMachinePushTag(PiuDebugMachine self, char* theName)
1352{
1353 xsMachine* the = self->the;
1354 self->itemSlot = xsNewObject();
1355 if (strcmp(theName, "xsbug") == 0) {
1356 (void)xsCall0(self->thisSlot, xsID_onParsing);
1357 }
1358 else if (strcmp(theName, "samples") == 0) {
1359 self->logging = 1;
1360 self->listSlot = self->itemSlot;
1361 }
1362 else if (strcmp(theName, "log") == 0) {
1363 self->logging = 1;
1364 self->listSlot = self->itemSlot;
1365 }
1366 else if (strcmp(theName, "bubble") == 0) {
1367 self->logging = 1;
1368 self->listSlot = self->itemSlot;
1369 }
1370 else if (strcmp(theName, "break") == 0) {
1371 self->logging = 1;
1372 self->listSlot = self->itemSlot;
1373 }
1374 else if (strcmp(theName, "breakpoints") == 0) {
1375 self->listSlot = xsNewArray(0);
1376 }
1377 else if (strcmp(theName, "instruments") == 0) {
1378 self->listSlot = xsNewArray(0);
1379 }
1380 else if (strcmp(theName, "files") == 0) {
1381 self->listSlot = xsNewArray(0);
1382 }
1383 else if (strcmp(theName, "frames") == 0) {
1384 self->listSlot = xsNewArray(0);
1385 }
1386 else if (strcmp(theName, "global") == 0) {
1387 self->column = -1;
1388 self->listSlot = xsNewArray(0);
1389 }
1390 else if (strcmp(theName, "grammar") == 0) {
1391 self->column = -1;
1392 self->listSlot = xsNewArray(0);
1393 }
1394 else if (strcmp(theName, "local") == 0) {
1395 self->column = -1;
1396 self->listSlot = xsNewArray(0);
1397 }
1398 else if (strcmp(theName, "result") == 0) {
1399 self->column = -1;
1400 self->logging = 1;
1401 self->listSlot = xsNewArray(0);
1402 }
1403 else if (strcmp(theName, "node") == 0) {
1404 self->column++;
1405 xsDefine(self->itemSlot, xsID_column, xsInteger(self->column), xsDefault);
1406 }
1407 else if (strcmp(theName, "property") == 0) {
1408 self->column++;

Callers 1

PiuDebugMachineParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected