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

Method loadFieldType

lib/loader/ast/type.cpp:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177Expect<void> Loader::loadFieldType(AST::FieldType &FType) {
178 // The error code logging is handled.
179 EXPECTED_TRY(auto Type, loadValType(ASTNodeAttr::Type_Rec, true));
180 FType.setStorageType(Type);
181 // The error code logging is handled.
182 EXPECTED_TRY(auto Mut, loadMutability(ASTNodeAttr::Type_Rec));
183 FType.setValMut(Mut);
184 return {};
185}
186
187Expect<void> Loader::loadCompositeType(AST::CompositeType &CType) {
188 // Read the composite type flag.

Callers

nothing calls this directly

Calls 2

setStorageTypeMethod · 0.80
setValMutMethod · 0.45

Tested by

no test coverage detected