| 1250 | // >>>>>>>> WasmEdge AST module functions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
| 1251 | |
| 1252 | WASMEDGE_CAPI_EXPORT uint32_t WasmEdge_ASTModuleListImportsLength( |
| 1253 | const WasmEdge_ASTModuleContext *Cxt) noexcept { |
| 1254 | if (Cxt) { |
| 1255 | return static_cast<uint32_t>( |
| 1256 | fromASTModCxt(Cxt)->getImportSection().getContent().size()); |
| 1257 | } |
| 1258 | return 0; |
| 1259 | } |
| 1260 | |
| 1261 | WASMEDGE_CAPI_EXPORT uint32_t WasmEdge_ASTModuleListImports( |
| 1262 | const WasmEdge_ASTModuleContext *Cxt, |