| 71 | } |
| 72 | |
| 73 | static std::optional<StringBox> parseString(TextParser& parser) { |
| 74 | if (!parser.parse('\'')) { |
| 75 | return std::nullopt; |
| 76 | } |
| 77 | |
| 78 | auto str = parser.readUntilCharacterAndParse('\''); |
| 79 | |
| 80 | if (!str) { |
| 81 | return std::nullopt; |
| 82 | } |
| 83 | |
| 84 | return StringCache::getGlobal().makeString(str.value()); |
| 85 | } |
| 86 | |
| 87 | static std::optional<ValueSchemaTypeReference> parseTypeReference(TextParser& parser) { |
| 88 | auto typeHint = ValueSchemaTypeReferenceTypeHintUnknown; |
no test coverage detected