| 232 | } // namespace |
| 233 | |
| 234 | Expect<void> |
| 235 | Validator::validate(const AST::Component::Component &Comp) noexcept { |
| 236 | spdlog::warn("Component Model Validation is in active development."sv); |
| 237 | CompCtx.reset(); |
| 238 | return validateComponent(Comp).and_then([&]() { |
| 239 | const_cast<AST::Component::Component &>(Comp).setIsValidated(); |
| 240 | return Expect<void>{}; |
| 241 | }); |
| 242 | } |
| 243 | |
| 244 | Expect<void> |
| 245 | Validator::validateComponent(const AST::Component::Component &Comp) noexcept { |
nothing calls this directly
no test coverage detected