Optional
userFunction: numberOptional
raw: anyOptional
contextUnique identifier number for the node in the tree context
String representation of the operator.
Note that delete
is also an unary operation.
Optional
parentThe AST node that is containing current node
Indicates that operator is used as prefix ++x
(true
)
or suffix x++
(false
)
Optional
rawRaw original Solc AST node that was used to create current node.
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.
Type string, e.g. uint256
Optional
userCustom defintion that is bound to operator and used instead of default logic.
Available since Solidity 0.8.19.
The expressions that the unary operation is applied to,
e.g. 1
for -1
or someArray.length
for someArray.length--
.
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
Attribute to access the defintion, bound to the operator.
Is undefined
when there is no definition bound to the operator.
Generated using TypeDoc
Current tree context of the node