Optional
documentation: string | StructuredDocumentationOptional
typeName: TypeNameOptional
overrideSpecifier: OverrideSpecifierOptional
value: ExpressionOptional
nameLocation: stringOptional
raw: anyOptional
contextCurrent tree context of the node
Optional
documentationOptional documentation appearing above the variable declaration:
undefined
when not specified.string
for compatibility reasons.StructuredDocumentation
when specified and compiler version is 0.6.9
or newer.Unique identifier number for the node in the tree context
Set if variable declaration is marked as indexed
.
Indexed variable declarations may appear in parameter list of event definitions.
Variable mutability, for example mutable
, immutable
or constant
.
Identifier of the variable
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.
Id of scoped 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.
Set if variable is a state variable. Not set is variable is local.
Data storage location. For example: storage
, memory
or calldata
.
If it's not set, then the value is default
.
Type string
Optional
vOverride specifier if provided
Optional
vVariable type. Can be empty for Solidity 0.4.x declarations with var
keyword.
Optional
vThe expression that is assigned in place as part of the declaration.
In common, it is set for state variables that have initializers in place.
Also, it is not set for declarations,
that are children of VariableDeclarationStatement
,
as such statements have own initial value property
and may have tuple assignments.
State variable visibility, for example public
, internal
or private
.
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
Generated using TypeDoc
Set if the variable can not be assigned a new value after declaration