| 474 | } |
| 475 | |
| 476 | void PiuCodeFormat(PiuCode* self) |
| 477 | { |
| 478 | xsMachine* the = (*self)->the; |
| 479 | PiuCodeParserRecord parserRecord; |
| 480 | PiuCodeParser parser = &parserRecord; |
| 481 | xsTry { |
| 482 | PiuCodeParserBegin(self, parser); |
| 483 | if ((*self)->type == 1) |
| 484 | PiuCodeFormatJS(parser); |
| 485 | else if ((*self)->type == 2) |
| 486 | PiuCodeFormatJSON(parser); |
| 487 | else if ((*self)->type == 3) |
| 488 | PiuCodeFormatXML(parser); |
| 489 | PiuCodeParserEnd(self, parser); |
| 490 | } |
| 491 | xsCatch { |
| 492 | PiuCodeParserEnd(self, parser); |
| 493 | } |
no test coverage detected