sol_ast library
Solidity AST node definitions and visitor framework.
Classes
- ArrayTypeName
- AssemblyStatement
- Assignment
- AstNode
- Base class for every node in the Solidity AST.
- AstVisitor
- Double-dispatch visitor. Override only the nodes you care about; the default implementation walks children where it makes sense.
- BinaryOperation
- Block
- BreakStatement
- CatchClause
- Conditional
- ContinueStatement
- ContractDefinition
- CustomErrorDefinition
- DeleteExpression
-
delete x - DoWhileStatement
- ElementaryTypeName
- EmitStatement
- EnumDefinition
- EventDefinition
- Expression
- Abstract base for expression nodes.
- ExpressionStatement
- ForStatement
- FunctionCall
- FunctionCallOptions
-
f{value: v, gas: g}(args)— call options. - FunctionDefinition
- FunctionTypeName
- Identifier
- IfStatement
- ImportDirective
- IndexAccess
- IndexRangeAccess
- InheritanceSpecifier
- Literal
- MappingTypeName
- MemberAccess
- ModifierDefinition
- ModifierInvocation
- NewExpression
- Parameter
- PragmaDirective
- ReturnStatement
- RevertStatement
- SourceFile
- Statement
- Abstract base for statement nodes.
- StateVariableDeclaration
- StructDefinition
- TryStatement
- TupleExpression
- TypeConversion
- TypeExpression
-
type(T),type(T).min,type(T).max— resolved as MemberAccess later. - TypeName
- Base class for all type-name nodes.
- UnaryOperation
- UncheckedStatement
- UserDefinedTypeName
- UserDefinedValueTypeDefinition
- UsingDirective
- VariableDeclaration
- A local variable or struct-member declaration.
- VariableDeclarationStatement
- WhileStatement