lib/loader/ast/expression.cpp
Expect<void> Loader::loadExpression(AST::Expression &Expr,
                                    std::optional<uint64_t> SizeBound) {
  if (auto Res = loadInstrSeq(SizeBound)) {
    // For the section size mismatch case, check in caller.
    Expr.getInstrs() = std::move(*Res);
  } else {
    spdlog::error(ErrInfo::InfoAST(ASTNodeAttr::Expression));
    return Unexpect(Res);
  }
  return {};
}
// Load to construct Expression node. See "include/loader/loader.h".
Load to construct Expression node.
Load to construct Expression node .
Expect<void> Loader::loadExpression(AST::Expression &Expr,
                                    std::optional<uint64_t> SizeBound) {
  if (auto Res = loadInstrSeq(SizeBound)) {
    Expr.getInstrs() = std::move(*Res);
  } else {
    spdlog::error(ErrInfo::InfoAST(ASTNodeAttr::Expression));
    return Unexpect(Res);
  }
  return {};
}
Expect < void > Loader :: loadExpression ( AST :: Expression & Expr , std :: optional < uint64_t > SizeBound ) { if ( auto Res = loadInstrSeq ( SizeBound ) ) { Expr . getInstrs ( ) = std :: move ( * Res ) ; } else { spdlog :: error ( ErrInfo :: InfoAST ( ASTNodeAttr :: Expression ) ) ; return Unexpect ( Res ) ; } return { } ; }
Load to construct Expression node.
Load to construct Expression node .
// For the section size mismatch case, check in caller.