| 241 | } |
| 242 | |
| 243 | Result SharedValidator::OnTag(const Location& loc, Var sig_var) { |
| 244 | Result result = Result::Ok; |
| 245 | FuncType type; |
| 246 | result |= CheckFuncTypeIndex(sig_var, &type); |
| 247 | if (!type.results.empty()) { |
| 248 | result |= PrintError(loc, "Tag signature must have 0 results."); |
| 249 | } |
| 250 | tags_.push_back(TagType{type.params}); |
| 251 | return result; |
| 252 | } |
| 253 | |
| 254 | Result SharedValidator::OnExport(const Location& loc, |
| 255 | ExternalKind kind, |
no test coverage detected