solidity_parser.ast.solnodes2¶
Attributes¶
Classes¶
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Create a collection of name/value pairs. |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Special function type markers |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Single operand expression |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Gets a subarray at the given start and end indices from the given array |
|
Solidity 8 inline array creation |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
|
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that |
Functions¶
|
|
|
Module Contents¶
- solidity_parser.ast.solnodes2.T¶
- solidity_parser.ast.solnodes2.raiseNotPrintable()¶
- solidity_parser.ast.solnodes2.param_def_str(ps)¶
- class solidity_parser.ast.solnodes2.AST2Node¶
Bases:
solidity_parser.ast.nodebase.Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- get_top_level_unit() TopLevelUnit ¶
- class solidity_parser.ast.solnodes2.Stmt¶
Bases:
AST2Node
,abc.ABC
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.Expr¶
Bases:
AST2Node
,abc.ABC
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- abstract type_of() solidity_parser.ast.types.Type ¶
- class solidity_parser.ast.solnodes2.Modifier¶
Bases:
AST2Node
,abc.ABC
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.ResolvedUserType¶
Bases:
solidity_parser.ast.types.Type
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- scope: Scope¶
Shim for symbol table scoping. The scope field is also defined in solnodes1 Node but since this base class is defined in this file, it must be defined here as well
- __str__()¶
Return str(self).
- __repr__()¶
Return repr(self).
- type_key(*args, **kwargs)¶
Returns a unique key for the type that can be used to cache types in the symbol table
- code_str()¶
Returns the string representation of the type in Solidity syntax
- is_builtin() bool ¶
Check if the type is a Solidity builtin type, e.g. primitives, message object, abi object, etc
- is_user_type() bool ¶
Check if the type is a user defined type, e.g. struct, enum, contract, etc
- can_implicitly_cast_from(actual_type: solidity_parser.ast.types.Type) bool ¶
- get_types_for_declared_type() list[TopLevelUnit] ¶
- class solidity_parser.ast.solnodes2.SuperType¶
Bases:
solidity_parser.ast.types.Type
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- is_builtin() bool ¶
Check if the type is a Solidity builtin type, e.g. primitives, message object, abi object, etc
- get_types_for_declared_type() list[TopLevelUnit] ¶
- code_str()¶
Returns the string representation of the type in Solidity syntax
- __str__()¶
Return str(self).
- class solidity_parser.ast.solnodes2.VisibilityModifier¶
Bases:
Modifier
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.MutabilityModifier¶
Bases:
Modifier
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.OverrideSpecifier¶
Bases:
Modifier
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- bases: list[ResolvedUserType]¶
- code_str()¶
- class solidity_parser.ast.solnodes2.SuperConstructorInvocationModifier¶
Bases:
Modifier
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- base_ttype: ResolvedUserType¶
- code_str()¶
- class solidity_parser.ast.solnodes2.FunctionInvocationModifier¶
Bases:
Modifier
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Ident¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- text: str¶
- code_str()¶
- __str__()¶
Return str(self).
- class solidity_parser.ast.solnodes2.NamedArgument¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.TopLevelUnit¶
Bases:
AST2Node
,abc.ABC
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- source_unit_name: str¶
- descriptor() str ¶
- is_subttype_of(other_contract: TopLevelUnit) bool ¶
- as_type()¶
- get_supers() list[ContractDefinition | InterfaceDefinition] ¶
- get_subtypes() list[ContractDefinition | InterfaceDefinition] ¶
- is_enum() bool ¶
- is_struct() bool ¶
- is_contract() bool ¶
- is_interface() bool ¶
- is_udvt() bool ¶
- find_named_parts(name: str, explore_mro: bool, matching_types)¶
- class solidity_parser.ast.solnodes2.ContractPart¶
Bases:
AST2Node
,abc.ABC
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- has_modifier_kind(*kinds: solidity_parser.ast.solnodes.VisibilityModifierKind | solidity_parser.ast.solnodes.MutabilityModifierKind)¶
- class solidity_parser.ast.solnodes2.InheritSpecifier¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- name: ResolvedUserType¶
- code_str()¶
- class solidity_parser.ast.solnodes2.LibraryOverride¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- overriden_type: solidity_parser.ast.types.Type¶
- library: ResolvedUserType¶
- class solidity_parser.ast.solnodes2.FileDefinition¶
Bases:
TopLevelUnit
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- parts: list[ContractPart]¶
- descriptor() str ¶
- class solidity_parser.ast.solnodes2.ContractDefinition¶
Bases:
TopLevelUnit
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- is_abstract: bool¶
- inherits: list[InheritSpecifier]¶
- parts: list[ContractPart]¶
- type_overrides: list[LibraryOverride]¶
- _subtypes: list[solidity_parser.ast.nodebase.Ref[ContractDefinition | InterfaceDefinition]]¶
- class solidity_parser.ast.solnodes2.InterfaceDefinition¶
Bases:
TopLevelUnit
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- inherits: list[InheritSpecifier]¶
- parts: list[ContractPart]¶
- type_overrides: list[LibraryOverride]¶
- _subtypes: list[solidity_parser.ast.nodebase.Ref[ContractDefinition | InterfaceDefinition]]¶
- class solidity_parser.ast.solnodes2.LibraryDefinition¶
Bases:
TopLevelUnit
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- parts: list[ContractPart]¶
- type_overrides: list[LibraryOverride]¶
- class solidity_parser.ast.solnodes2.UserDefinedValueTypeDefinition¶
Bases:
TopLevelUnit
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.EnumMember¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.EnumDefinition¶
Bases:
TopLevelUnit
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- values: list[EnumMember]¶
- class solidity_parser.ast.solnodes2.StructMember¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.StructDefinition¶
Bases:
TopLevelUnit
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- members: list[StructMember]¶
- class solidity_parser.ast.solnodes2.ErrorParameter¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.ErrorDefinition¶
Bases:
ContractPart
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- inputs: list[ErrorParameter]¶
- class solidity_parser.ast.solnodes2.StateVariableDeclaration¶
Bases:
ContractPart
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.ConstantVariableDeclaration¶
Bases:
ContractPart
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.EventParameter¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- is_indexed: bool¶
- class solidity_parser.ast.solnodes2.EventDefinition¶
Bases:
ContractPart
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- inputs: list[EventParameter]¶
- is_anonymous: bool¶
- class solidity_parser.ast.solnodes2.Location¶
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes – see the documentation for details.
- MEMORY = 'memory'¶
- STORAGE = 'storage'¶
- CALLDATA = 'calldata'¶
- __str__()¶
Return str(self).
- class solidity_parser.ast.solnodes2.Var¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Parameter¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.Block¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- is_unchecked: bool¶
- code_str(brackets=True)¶
- class solidity_parser.ast.solnodes2.If¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Catch¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Try¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.While¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- is_do_while: bool¶
- code_str()¶
- class solidity_parser.ast.solnodes2.For¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.FunctionMarker¶
Bases:
enum.Enum
Special function type markers
- CONSTRUCTOR = 1¶
- SYNTHETIC_FIELD_GETTER = 2¶
- class solidity_parser.ast.solnodes2.FunctionDefinition¶
Bases:
ContractPart
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- markers: list[FunctionMarker]¶
- static param_str(ps) str ¶
- descriptor() str ¶
- __str__()¶
Return str(self).
- class solidity_parser.ast.solnodes2.BuiltinFunction¶
Bases:
AST2Node
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.ModifierDefinition¶
Bases:
ContractPart
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.TupleVarDecl¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.VarDecl¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.ExprStmt¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Literal¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- value: Any¶
- unit: solidity_parser.ast.solnodes.Unit = None¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.TypeLiteral¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of()¶
- code_str()¶
- class solidity_parser.ast.solnodes2.UnaryOp¶
Bases:
Expr
Single operand expression
- is_pre: bool¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.BinaryOp¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.TernaryOp¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.SelfObject¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.SuperObject¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.StateVarLoad¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.StaticVarLoad¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- ttype: ResolvedUserType¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.EnumLoad¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.StateVarStore¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- state_var()¶
- code_str()¶
- class solidity_parser.ast.solnodes2.LocalVarLoad¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.LocalVarStore¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.ArrayLengthStore¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- abstract code_str()¶
- class solidity_parser.ast.solnodes2.TupleLoad¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- index: int¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.ArrayLoad¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.ArrayStore¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.ArraySliceLoad¶
Bases:
Expr
Gets a subarray at the given start and end indices from the given array
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.CreateInlineArray¶
Bases:
Expr
Solidity 8 inline array creation
An inline array is one where the elements are explicitly stated in the definition, for example: ‘int[5] foo2 = [1, 0, 0, 0, 0];’
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.MappingLoad¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- type_of() solidity_parser.ast.types.Type ¶
- class solidity_parser.ast.solnodes2.MappingStore¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.GlobalValue¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- name: str¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.ABISelector¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- function: solidity_parser.ast.nodebase.Ref[FunctionDefinition | ErrorDefinition] | Expr¶
- type_of() solidity_parser.ast.types.Type ¶
- __str__()¶
Return str(self).
- code_str()¶
- class solidity_parser.ast.solnodes2.DynamicBuiltInValue¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- name: str¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.CreateMemoryArray¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.CreateStruct¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- ttype: ResolvedUserType¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.CreateAndDeployContract¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- ttype: ResolvedUserType¶
- call_options: list[NamedArgument]¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- solidity_parser.ast.solnodes2.check_arg_types(args: list[Expr], f: FunctionDefinition) bool ¶
- class solidity_parser.ast.solnodes2.Call¶
Bases:
Expr
,abc.ABC
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- call_options: list[NamedArgument]¶
- check_arg_types(f: FunctionDefinition) bool ¶
- param_str()¶
- class solidity_parser.ast.solnodes2.DirectCall¶
Bases:
Call
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- ttype: ResolvedUserType¶
- base_type()¶
- resolve_call() FunctionDefinition ¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- __str__()¶
Return str(self).
- class solidity_parser.ast.solnodes2.FunctionCall¶
Bases:
Call
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- base_type()¶
- resolve_call() FunctionDefinition ¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- __str__()¶
Return str(self).
- class solidity_parser.ast.solnodes2.FunctionPointerCall¶
Bases:
Call
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.DynamicBuiltInCall¶
Bases:
Call
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- base: Expr | ResolvedUserType¶
- name: str¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.BuiltInCall¶
Bases:
Call
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- name: str¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.Cast¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.GetType¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.GetFunctionPointer¶
Bases:
Expr
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- func: solidity_parser.ast.nodebase.Ref[FunctionDefinition | ErrorDefinition | EventDefinition | BuiltinFunction]¶
- type_of() solidity_parser.ast.types.Type ¶
- code_str()¶
- class solidity_parser.ast.solnodes2.EmitEvent¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Revert¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.RevertWithError¶
Bases:
Revert
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.RevertWithReason¶
Bases:
Revert
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Require¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Return¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Continue¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Break¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code_str()¶
- class solidity_parser.ast.solnodes2.Assembly¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- code: str¶
- code_str()¶
- class solidity_parser.ast.solnodes2.ExecModifiedCode¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- class solidity_parser.ast.solnodes2.UnprocessedCode¶
Bases:
Stmt
Base class for all AST nodes. Includes source location information, code comments and a parenting mechanism so that clients can traverse all child and parent nodes.
- error: Exception¶
- solidity_parser.ast.solnodes2.Types: TypeAlias = soltypes.VariableLengthArrayType | soltypes.VoidType | soltypes.IntType | soltypes.FunctionType...¶