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

Function PiuDebugMachineParseTag

tools/xsbug/DebugBehavior.c:1177–1238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175}
1176
1177void PiuDebugMachineParseTag(PiuDebugMachine self, char* theName)
1178{
1179 xsMachine* the = self->the;
1180 if (strcmp(theName, "break") == 0) {
1181 xsDefine(self->listSlot, xsID_data, xsString(""), xsDefault);
1182 }
1183 else if (strcmp(theName, "samples") == 0) {
1184 xsDefine(self->listSlot, xsID_data, xsString(""), xsDefault);
1185 }
1186 else if (strcmp(theName, "log") == 0) {
1187 xsDefine(self->listSlot, xsID_data, xsString(""), xsDefault);
1188 }
1189 else if (strcmp(theName, "bubble") == 0) {
1190 xsDefine(self->listSlot, xsID_data, xsString(""), xsDefault);
1191 }
1192 else if (strcmp(theName, "breakpoint") == 0) {
1193 (void)xsCall1(self->listSlot, xsID_push, self->itemSlot);
1194 }
1195 else if (strcmp(theName, "instrument") == 0) {
1196 (void)xsCall1(self->listSlot, xsID_push, self->itemSlot);
1197 }
1198 else if (strcmp(theName, "file") == 0) {
1199 (void)xsCall1(self->listSlot, xsID_push, self->itemSlot);
1200 }
1201 else if (strcmp(theName, "frame") == 0) {
1202 (void)xsCall1(self->listSlot, xsID_push, self->itemSlot);
1203 }
1204 else if (strcmp(theName, "local") == 0) {
1205 xsVar(0) = xsGet(self->itemSlot, xsID_path);
1206 xsVar(1) = xsGet(self->itemSlot, xsID_line);
1207 if (xsTest(xsVar(0)) && xsTest(xsVar(1))) {
1208 (void)xsCall2(self->thisSlot, xsID_onFileChanged, xsVar(0), xsVar(1));
1209 }
1210 xsVar(0) = xsGet(self->itemSlot, xsID_name);
1211 xsVar(1) = xsGet(self->itemSlot, xsID_value);
1212 (void)xsCall2(self->thisSlot, xsID_onFrameChanged, xsVar(0), xsVar(1));
1213 }
1214 else if (strcmp(theName, "login") == 0) {
1215 xsVar(0) = xsGet(self->itemSlot, xsID_name);
1216 xsVar(1) = xsGet(self->itemSlot, xsID_value);
1217 (void)xsCall2(self->thisSlot, xsID_onTitleChanged, xsVar(0), xsVar(1));
1218 }
1219 else if (strcmp(theName, "result") == 0) {
1220 xsDefine(self->listSlot, xsID_data, xsString(""), xsDefault);
1221 }
1222 else if (strcmp(theName, "node") == 0) {
1223 (void)xsCall1(self->listSlot, xsID_push, self->itemSlot);
1224 }
1225 else if (strcmp(theName, "property") == 0) {
1226 (void)xsCall1(self->listSlot, xsID_push, self->itemSlot);
1227 }
1228 else if (strcmp(theName, "eval") == 0) {
1229 xsDefine(self->listSlot, xsID_data, xsString(""), xsDefault);
1230 }
1231 else if (strcmp(theName, "pr") == 0) {
1232 }
1233 else if (strcmp(theName, "ps") == 0) {
1234 xsDefine(self->listSlot, xsID_data, xsString(""), xsDefault);

Callers 1

PiuDebugMachineParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected