| 657 | // Schema printing |
| 658 | |
| 659 | static void PrintRepLevel(Repetition::type repetition, std::ostream& stream) { |
| 660 | switch (repetition) { |
| 661 | case Repetition::REQUIRED: |
| 662 | stream << "required"; |
| 663 | break; |
| 664 | case Repetition::OPTIONAL: |
| 665 | stream << "optional"; |
| 666 | break; |
| 667 | case Repetition::REPEATED: |
| 668 | stream << "repeated"; |
| 669 | break; |
| 670 | default: |
| 671 | break; |
| 672 | } |
| 673 | } |
| 674 | |
| 675 | static void PrintType(const PrimitiveNode* node, std::ostream& stream) { |
| 676 | switch (node->physical_type()) { |