Solidity_visitor.ast_visitor
The AST visitor. Each method is called when reaching an element of the corresponding type in the AST.
method virtual visitBinaryOperator : Solidity_ast.binary_operator -> action
method virtual visitBool : bool -> action
method virtual visitChar : char -> action
method virtual visitCompareOperator : Solidity_ast.compare_operator -> action
method virtual visitContractDef : Solidity_ast.contract_definition -> action
method virtual visitContractKind : Solidity_ast.contract_kind -> action
method virtual visitContractPart : Solidity_ast.contract_part -> action
method virtual visitElementaryType : Solidity_ast.elementary_type -> action
method virtual visitEventDef : Solidity_ast.event_definition -> action
method virtual visitExpression : Solidity_ast.expression -> action
method virtual visitFunMutability : Solidity_ast.fun_mutability -> action
method virtual visitFunctionCallArguments : Solidity_ast.function_call_arguments ->
action
method virtual visitFunctionDef : Solidity_ast.function_definition -> action
method virtual visitFunctionType : Solidity_ast.function_type -> action
method virtual visitIdent : Solidity_common.Ident.t -> action
method virtual visitImportDirective : Solidity_ast.import_directive -> action
method virtual visitImportSymbols : Solidity_ast.import_symbols -> action
method virtual visitInt : int -> action
method virtual visitList : 'a list -> action
method virtual visitLongIdent : 'kind Solidity_common.LongIdent.t -> action
method virtual visitModifierDef : Solidity_ast.modifier_definition -> action
method virtual visitNode : 'a Solidity_common.node -> action
method virtual visitNumberUnit : Solidity_ast.number_unit -> action
method virtual visitOption : 'a option -> action
method virtual visitQ : Q.t -> action
method virtual visitSourceUnit : Solidity_ast.source_unit -> action
method virtual visitStateVariableDef : Solidity_ast.state_variable_definition ->
action
method virtual visitStatement : Solidity_ast.statement -> action
method virtual visitStorageLocation : Solidity_ast.storage_location -> action
method virtual visitString : string -> action
method virtual visitType : Solidity_ast.type_ -> action
method virtual visitTypeDef : Solidity_ast.type_definition -> action
method virtual visitUnaryOperator : Solidity_ast.unary_operator -> action
method virtual visitVarMutability : Solidity_ast.var_mutability -> action
method virtual visitVariableDef : Solidity_ast.variable_definition -> action
method virtual visitVisibility : Solidity_ast.visibility -> action
method getAnnot : unit -> Solidity_common.annot option
If the visitor is visiting a node, returns its annotation.
method getPos : unit -> Solidity_common.pos option
If the visitor is visiting a node, returns its location.
method setAnnot : Solidity_common.annot option -> unit
method setPos : Solidity_common.pos option -> unit