| 509 | } |
| 510 | |
| 511 | void validateFrame(const File& file, const FrameDecl& frame, const char* label) { |
| 512 | for (const auto& field : frame.fields) { |
| 513 | if (!field.payload && !findStruct(file, field.type) && !isIntegral(field.type)) |
| 514 | fail(field.line, std::string("unknown ") + label + " frame type '" + field.type + "'"); |
| 515 | } |
| 516 | } |
| 517 | |
| 518 | static bool isIntegral(std::string_view type) { |
| 519 | static const std::unordered_set<std::string_view> types = { |
nothing calls this directly
no outgoing calls
no test coverage detected