mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #2301 from ethereum/ASTFunctionTypeFix
insert ParameterList-node in FunctionType-json
This commit is contained in:
commit
451acd4c9f
@ -873,6 +873,8 @@ public:
|
|||||||
|
|
||||||
std::vector<ASTPointer<VariableDeclaration>> const& parameterTypes() const { return m_parameterTypes->parameters(); }
|
std::vector<ASTPointer<VariableDeclaration>> const& parameterTypes() const { return m_parameterTypes->parameters(); }
|
||||||
std::vector<ASTPointer<VariableDeclaration>> const& returnParameterTypes() const { return m_returnTypes->parameters(); }
|
std::vector<ASTPointer<VariableDeclaration>> const& returnParameterTypes() const { return m_returnTypes->parameters(); }
|
||||||
|
ASTPointer<ParameterList> const& parameterTypeList() const { return m_parameterTypes; }
|
||||||
|
ASTPointer<ParameterList> const& returnParameterTypeList() const { return m_returnTypes; }
|
||||||
|
|
||||||
Declaration::Visibility visibility() const
|
Declaration::Visibility visibility() const
|
||||||
{
|
{
|
||||||
|
@ -420,8 +420,8 @@ bool ASTJsonConverter::visit(FunctionTypeName const& _node)
|
|||||||
make_pair("payable", _node.isPayable()),
|
make_pair("payable", _node.isPayable()),
|
||||||
make_pair("visibility", visibility(_node.visibility())),
|
make_pair("visibility", visibility(_node.visibility())),
|
||||||
make_pair(m_legacy ? "constant" : "isDeclaredConst", _node.isDeclaredConst()),
|
make_pair(m_legacy ? "constant" : "isDeclaredConst", _node.isDeclaredConst()),
|
||||||
make_pair("parameterTypes", toJson(_node.parameterTypes())),
|
make_pair("parameterTypes", toJson(*_node.parameterTypeList())),
|
||||||
make_pair("returnParameterTypes", toJson(_node.returnParameterTypes())),
|
make_pair("returnParameterTypes", toJson(*_node.returnParameterTypeList())),
|
||||||
make_pair("typeDescriptions", typePointerToJson(_node.annotation().type))
|
make_pair("typeDescriptions", typePointerToJson(_node.annotation().type))
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user