| 322 | } |
| 323 | |
| 324 | static bool ExpectIndex(GLTFPropsParser& propsParser, int& idx) |
| 325 | { |
| 326 | auto node = propsParser.GetNext(); |
| 327 | if (node.mKind != GLTFPropsParser::NodeKind_LBracket) |
| 328 | return false; |
| 329 | node = propsParser.GetNext(); |
| 330 | if (node.mKind != GLTFPropsParser::NodeKind_Integer) |
| 331 | return false; |
| 332 | idx = node.mValueInt; |
| 333 | node = propsParser.GetNext(); |
| 334 | if (node.mKind != GLTFPropsParser::NodeKind_RBracket) |
| 335 | return false; |
| 336 | return true; |
| 337 | }; |
| 338 | |
| 339 | static bool ExpectOpen(GLTFPropsParser& propsParser) |
| 340 | { |
no test coverage detected