| 624 | // Schema printing |
| 625 | |
| 626 | static void PrintRepLevel(Repetition::type repetition, std::ostream& stream) { |
| 627 | switch (repetition) { |
| 628 | case Repetition::REQUIRED: |
| 629 | stream << "required"; |
| 630 | break; |
| 631 | case Repetition::OPTIONAL: |
| 632 | stream << "optional"; |
| 633 | break; |
| 634 | case Repetition::REPEATED: |
| 635 | stream << "repeated"; |
| 636 | break; |
| 637 | default: |
| 638 | break; |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | static void PrintType(const PrimitiveNode* node, std::ostream& stream) { |
| 643 | switch (node->physical_type()) { |