MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / EXPECTED_TRY

Function EXPECTED_TRY

lib/loader/ast/type.cpp:189–191  ·  view source on GitHub ↗

Read the composite type flag.

Source from the content-addressed store, hash-verified

187Expect<void> Loader::loadCompositeType(AST::CompositeType &CType) {
188 // Read the composite type flag.
189 EXPECTED_TRY(uint8_t B, FMgr.readByte().map_error([this](auto E) {
190 return logLoadError(E, FMgr.getLastOffset(), ASTNodeAttr::Type_Rec);
191 }));
192
193 // Read the compiste type by cases.
194 switch (static_cast<TypeCode>(B)) {

Callers 15

loadDescMethod · 0.70
loadCompositeTypeMethod · 0.70
loadLimitMethod · 0.70
loadTypeMethod · 0.70
loadModuleMethod · 0.70
resolvePathMethod · 0.50
bodyMethod · 0.50
fdFdstatGetMethod · 0.50
fdFilestatGetMethod · 0.50
fdFilestatSetTimesMethod · 0.50
filetypeMethod · 0.50
filesizeMethod · 0.50

Calls 1

getLastOffsetMethod · 0.80

Tested by 2

TEST_PFunction · 0.40
TEST_PFunction · 0.40