mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Provide access to scoped structs.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include <libsolidity/ASTJsonConverter.h>
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <libsolidity/AST.h>
|
||||
|
||||
using namespace std;
|
||||
@@ -144,7 +145,9 @@ bool ASTJsonConverter::visit(ElementaryTypeName const& _node)
|
||||
|
||||
bool ASTJsonConverter::visit(UserDefinedTypeName const& _node)
|
||||
{
|
||||
addJsonNode("UserDefinedTypeName", { make_pair("name", _node.name()) });
|
||||
addJsonNode("UserDefinedTypeName", {
|
||||
make_pair("name", boost::algorithm::join(_node.namePath(), "."))
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user