| 27 | } |
| 28 | |
| 29 | auto logUnknownError(std::string_view ModName, std::string_view ExtName, |
| 30 | ExternalType ExtType) { |
| 31 | spdlog::error(ErrCode::Value::UnknownImport); |
| 32 | spdlog::error(ErrInfo::InfoLinking(ModName, ExtName, ExtType)); |
| 33 | spdlog::error(ErrInfo::InfoAST(ASTNodeAttr::Desc_Import)); |
| 34 | return Unexpect(ErrCode::Value::UnknownImport); |
| 35 | } |
| 36 | |
| 37 | bool matchLimit(const AST::Limit &Exp, const AST::Limit &Got) { |
| 38 | if (Exp.getAddrType() != Got.getAddrType()) { |
no test coverage detected