Module hir

Source
Expand description

High-level intermediate representation (HIR).

Structs§

Arena
HIR arena allocator.
BinOp
A binary operation: a + b, a += b.
Block
A block of statements.
CallArgs
A list of function call arguments.
Contract
A contract, interface, or library.
ContractId
A Contract ID.
Enum
An enum.
EnumId
An Enum ID.
Error
A custom error.
ErrorId
An Error ID.
Event
An event.
EventId
An Event ID.
Expr
An expression.
ExprId
An Expr ID.
Function
A function.
FunctionId
A Function ID.
Hir
The high-level intermediate representation (HIR).
Lit
A literal: hex"1234", 5.6 ether.
Modifier
A modifier or base class call.
NamedArg
A named argument: name: value.
Source
A source file.
SourceId
A Source ID.
Stmt
A statement.
StmtTry
A try statement: try fooBar(42) returns (...) { ... } catch (...) { ... }.
Struct
A struct.
StructId
A Struct ID.
TryCatchClause
Clause of a try/catch block: returns/catch (...) { ... }.
Type
A type name.
TypeArray
An array type.
TypeFunction
A function type name.
TypeMapping
A mapping type.
Udvt
A user-defined value type.
UdvtId
An Udvt ID.
UnOp
A unary operation: !x, -x, x++.
Variable
A constant or variable declaration.
VariableId
A Variable ID.

Enums§

BinOpKind
A kind of binary operation.
CallArgsKind
A list of function call argument expressions.
ContractKind
The kind of contract.
DataLocation
A storage location.
ElementaryType
Elementary/primitive type.
ExprKind
A kind of expression.
FunctionKind
A kind of function.
Item
ItemId
LoopSource
The loop type that yielded an StmtKind::Loop.
Res
Resolved name.
StateMutability
StmtKind
A kind of statement.
TypeKind
The kind of a type.
UnOpKind
A kind of unary operation.
VarKind
The kind of variable.
VarMut
The mutability of a variable.
Visibility
Visibility ordered from restricted to unrestricted.

Traits§

Visit
HIR traversal.