mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add statemutability to AST JSON
This commit is contained in:
parent
a61c88e9fe
commit
33ea314a24
@ -325,6 +325,7 @@ bool ASTJsonConverter::visit(FunctionDefinition const& _node)
|
||||
make_pair("name", _node.name()),
|
||||
make_pair(m_legacy ? "constant" : "isDeclaredConst", _node.isDeclaredConst()),
|
||||
make_pair("payable", _node.isPayable()),
|
||||
make_pair("statemutability", stateMutabilityToString(_node.stateMutability())),
|
||||
make_pair("visibility", Declaration::visibilityToString(_node.visibility())),
|
||||
make_pair("parameters", toJson(_node.parameterList())),
|
||||
make_pair("isConstructor", _node.isConstructor()),
|
||||
@ -419,6 +420,7 @@ bool ASTJsonConverter::visit(FunctionTypeName const& _node)
|
||||
setJsonNode(_node, "FunctionTypeName", {
|
||||
make_pair("payable", _node.isPayable()),
|
||||
make_pair("visibility", Declaration::visibilityToString(_node.visibility())),
|
||||
make_pair("statemutability", stateMutabilityToString(_node.stateMutability())),
|
||||
make_pair(m_legacy ? "constant" : "isDeclaredConst", _node.isDeclaredConst()),
|
||||
make_pair("parameterTypes", toJson(*_node.parameterTypeList())),
|
||||
make_pair("returnParameterTypes", toJson(*_node.returnParameterTypeList())),
|
||||
|
Loading…
Reference in New Issue
Block a user