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 |
|
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 |
|
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.NodeBase 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.ABCBase 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.ABCBase 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.
- abstractmethod type_of() solidity_parser.ast.types.Type¶
- class solidity_parser.ast.solnodes2.Modifier¶
Bases:
AST2Node,abc.ABCBase 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.UserDefinedErrorType¶
Bases:
solidity_parser.ast.types.TypeBase 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_user_error() bool¶
Check if the type is defined by a user defined Error function
- is_user_type() bool¶
Check if the type is a user defined type, e.g. struct, enum, contract, etc
- __str__()¶
- __repr__()¶
- code_str()¶
Returns the string representation of the type in Solidity syntax
- type_key(*args, **kwargs)¶
Returns a unique key for the type that can be used to cache types in the symbol table
- class solidity_parser.ast.solnodes2.ResolvedUserType¶
Bases:
solidity_parser.ast.types.TypeBase 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__()¶
- __repr__()¶
- 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.TypeBase 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__()¶
- class solidity_parser.ast.solnodes2.VisibilityModifier¶
Bases:
ModifierBase 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:
ModifierBase 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:
ModifierBase 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:
ModifierBase 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:
ModifierBase 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:
AST2NodeBase 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__()¶
- class solidity_parser.ast.solnodes2.NamedArgument¶
Bases:
AST2NodeBase 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.ABCBase 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.ABCBase 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:
AST2NodeBase 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:
AST2NodeBase 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:
TopLevelUnitBase 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:
TopLevelUnitBase 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:
TopLevelUnitBase 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:
TopLevelUnitBase 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:
TopLevelUnitBase 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:
AST2NodeBase 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:
TopLevelUnitBase 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:
AST2NodeBase 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:
TopLevelUnitBase 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:
AST2NodeBase 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:
ContractPartBase 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:
ContractPartBase 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:
ContractPartBase 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:
AST2NodeBase 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:
ContractPartBase 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(*args, **kwds)¶
Bases:
enum.EnumCreate 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__()¶
- class solidity_parser.ast.solnodes2.Var¶
Bases:
AST2NodeBase 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:
AST2NodeBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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(*args, **kwds)¶
Bases:
enum.EnumSpecial function type markers
- CONSTRUCTOR = 1¶
- SYNTHETIC_FIELD_GETTER = 2¶
- class solidity_parser.ast.solnodes2.FunctionDefinition¶
Bases:
ContractPartBase 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__()¶
- class solidity_parser.ast.solnodes2.BuiltinFunction¶
Bases:
AST2NodeBase 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:
ContractPartBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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:
ExprBase 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:
ExprBase 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:
ExprSingle operand expression
- is_pre: bool¶
- type_of() solidity_parser.ast.types.Type¶
- code_str()¶
- class solidity_parser.ast.solnodes2.BinaryOp¶
Bases:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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¶
- abstractmethod code_str()¶
- class solidity_parser.ast.solnodes2.TupleLoad¶
Bases:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprGets 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:
ExprSolidity 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:
ExprBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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__()¶
- code_str()¶
- class solidity_parser.ast.solnodes2.DynamicBuiltInValue¶
Bases:
ExprBase 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:
ExprBase 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:
ExprBase 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.CreateError¶
Bases:
ExprBase 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: UserDefinedErrorType¶
- type_of() solidity_parser.ast.types.Type¶
- code_str()¶
- class solidity_parser.ast.solnodes2.CreateAndDeployContract¶
Bases:
ExprBase 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.ABCBase 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:
CallBase 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__()¶
- class solidity_parser.ast.solnodes2.FunctionCall¶
Bases:
CallBase 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__()¶
- class solidity_parser.ast.solnodes2.FunctionPointerCall¶
Bases:
CallBase 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:
CallBase 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:
CallBase 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:
ExprBase 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:
ExprBase 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:
ExprBase 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:
StmtBase 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:
StmtBase 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:
RevertBase 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: CreateError¶
- code_str()¶
- class solidity_parser.ast.solnodes2.RevertWithReason¶
Bases:
RevertBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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:
StmtBase 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¶
- type solidity_parser.ast.solnodes2.Types = soltypes.VariableLengthArrayType | soltypes.VoidType | soltypes.IntType | soltypes.FunctionType | soltypes.ArrayType | soltypes.BytesType | soltypes.BoolType | soltypes.AnyType | soltypes.MappingType | soltypes.StringType | soltypes.AddressType | soltypes.FixedLengthArrayType | soltypes.ByteType | soltypes.MetaTypeType | soltypes.TupleType | soltypes.PreciseIntType | soltypes.PreciseIntType | soltypes.BuiltinType | ResolvedUserType | SuperType | soltypes.FloatType | soltypes.ErrorType | UserDefinedErrorType¶