Optional
overrideSpecifier: OverrideSpecifierOptional
body: BlockOptional
documentation: string | StructuredDocumentationOptional
nameLocation: stringOptional
raw: anyOptional
contextOptional
documentationOptional documentation appearing above the function definition:
undefined
when not specified.string
when specified and compiler version is older than 0.6.3
.StructuredDocumentation
when specified and compiler version is 0.6.3
or newer.Unique identifier number for the node in the tree context
Is false
if the function not have an implementation
and true
if it is implemented in place.
Set if it is a constructor
A kind of a function definition
Identifier of the function
Optional
nameThe source range for name string
Optional
parentThe AST node that is containing current node
Optional
rawRaw original Solc AST node that was used to create current node.
Node id of scoped contract or source unit
Source mapping data corresponting to the AST node.
The value has format start:length:sourceIndex
:
start
is the starting index of the corresponding
code fragment substring in the source string;length
is the length of corresponding code fragment substring;sourceIndex
is the index number of the source unit (file),
that contains the AST node.To get parsed values, use sourceInfo
accessor.
Function state mutability, that is non-payable, payable
, pure
or view
.
Deprecated constant
is only allowed in 0.4.x
Optional
vFunction body block: can be empty if function is declared, but not implemented. Always filled otherwise.
Invoked modifiers
Optional
vOverride specifier if provided
A list of local variables that are declared and initialized with the input values
A list of local variables that are declared and returned to the caller
Is true
if function is declared as possibly overridable
(using virtual
keyword since Solidity 0.6).
Is false
otherwise.
Function visibility, for example: public
, internal
, private
or external
.
Returns current node AST context. Throws an error if no context is set.
Returns parsed parts of the src
property value
Type of the AST node
Reference to a scoped ContractDefinition
if function is declared in contract.
Reference to a scoped SourceUnit
if function is declared on file level
(since Solidity 0.7.1).
Generated using TypeDoc
Current tree context of the node