Expand description
Executor
This module contains the execution logic for the SessionSource.
FunctionsΒ§
- builtin_
member π - Returns the type of
builtin_ns.memberfor built-in global namespaces. - dyn_
member π - Returns the type of
ty.memberfor a known [DynSolType]. - elementary_
to_ πdyn - Maps a solar [
ElementaryType] to a [DynSolType]. - expr_
name_ πchain - Extracts a name chain from a member-access expression tree for HIR lookup.
- expr_
to_ πdyn - Converts an [
Expr] directly to a [DynSolType] for ABI inspection. - format_
event_ πdefinition - Formats an [
Event] into an inspection message. - format_
token π - Formats a value into an inspection message
- func_
members π - Returns Some if the custom type is a function member access.
- get_
function_ πreturn_ type - Get the return type of a contract method call
receiver.method(). - hir_
ty_ πto_ dyn - Converts a [
HirType] to a [DynSolType]. - infer_
custom_ πtype - Infers a custom typeβs true type by recursing through the HIR.
- infer_
var_ πty - Infers the type from a variableβs HIR type, optionally accessing a named member.
- lookup_
named_ πvariable_ type - Looks up
nameas a named variable in the REPL contract (state variables or run() locals) and returns its type as a [DynSolType]. - parse_
number_ πliteral - Parses an [
Expr] number/hex literal into aU256. ReturnsNoneif the expression is not a numeric literal. - resolve_
call π - Resolves a call expression to its return [
DynSolType]. - resolve_
member π - Resolves a member-access expression (
lhs.member) to its [DynSolType]. - should_
continue π - Whether execution should continue after inspecting this expression.
- solar_
ty_ πto_ dyn - Maps a solar [
Ty] to a [DynSolType].