Releases: OpenZeppelin/solidity-ast
Releases · OpenZeppelin/solidity-ast
v0.4.59
v0.4.58
- Fixed
YulFunctionDefinition.parameters
andreturnVariables
: made optional, used when empty. - Fixed
InlineAssembly.externalReferences[].suffix
: added'length'
option.
v0.4.57
- Fixed
ModifierDefinition.body
: made nullable to support Solidity 0.6.7 virtual modifiers with empty body.
v0.4.56
- Added
'cancun'
as a possible value forInlineAssembly.evmVersion
.
v0.4.55
- Fixed
TupleExpression.components
: array members are nullable.
v0.4.54
- Fixed
Literal.subdenomination
, previously typed asnull
, now typed with values'seconds'
,'minutes'
, etc. - Added
EnumDefinition.documentation
.
v0.4.53
- Added
ForStatement.isSimpleCounterLoop
, available since Solidity 0.8.22.
v0.4.52
- Fixed behavior of
findAll('*', ...)
aroundUsingForDirective.functionList
andImportDirective.symbolAliases
, which missed some identifiers and returned non-nodes.
v0.4.51
- Fixed bug in AST dereferencer reading a property of null.
v0.4.50
- Fixed
findAll
exhaustivity around objects in the AST that are not AST nodes. Affected queries forIdentifierPath
nodes underUsingForDirective.functionList
and forIdentifier
nodes underImportDirective.symbolAliases.foreign
. - Significantly optimized
findAll
andastDereferencer
. - Added ability to enumerate all nodes with
findAll('*', node)
or dereference an unknown node type withderef('*', id)
. - Added
SourceUnit.experimentalSolidity
, available since Solidity 0.8.21. - Added
ContractDefinition.usedEvents
andContractDefinition.internalFunctionIDs
, available since Solidity 0.8.20. - Added
StructDefinition.documentation
, available since Solidity 0.8.20. - Added
'shanghai'
as a possible value forInlineAssembly.evmVersion
. - Added
nativeSrc
to Yul AST nodes.