Crate solscript_ast

Crate solscript_ast 

Source
Expand description

SolScript Abstract Syntax Tree (Solidity-Style)

This crate defines all AST node types for the SolScript language.

Structs§

Arg
ArrayExpr
ArrayType
Array type: T[] (dynamic) or T[N] (fixed)
AssignExpr
Attribute
AttributeArg
BinaryExpr
Block
CallExpr
ConstructorDef
ContractDef
DeleteStmt
EmitStmt
EnumDef
EnumVariant
ErrorDef
ErrorParam
EventDef
EventParam
ExprStmt
FieldAccessExpr
FnDef
FnSig
ForStmt
GenericArgs
GenericParam
GenericParams
Ident
IfExpr
IfStmt
ImportItem
ImportStmt
IndexExpr
InterfaceDef
MappingType
Mapping type: mapping(KeyType => ValueType)
MethodCallExpr
ModifierDef
ModifierInvocation
NewExpr
Param
Program
A complete SolScript program (compilation unit)
RequireStmt
ReturnParam
ReturnStmt
RevertStmt
SelfdestructStmt
Span
A span representing a range in the source code
Spanned
A value with an associated span
StateVar
StructDef
StructField
TernaryExpr
TupleExpr
TypePath
A type path: uint256, address, MyContract
TypeTuple
A tuple type: (T, U, V)
UnaryExpr
VarDeclStmt
WhileStmt

Enums§

AssignOp
AttributeValue
BinaryOp
ContractMember
ElseBranch
Expr
ForInit
IfExprElse
Item
Top-level items
Literal
PrimitiveType
Built-in primitive types (Solidity-style naming)
RevertKind
StateMutability
Stmt
StorageLocation
TypeExpr
A type expression in the source code
UnaryOp
Visibility