mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix JSON output on macos.
This commit is contained in:
parent
4f4963131b
commit
c16e141ffb
@ -42,7 +42,7 @@ void ASTJsonConverter::addJsonNode(
|
|||||||
{
|
{
|
||||||
Json::Value node;
|
Json::Value node;
|
||||||
|
|
||||||
node["id"] = _node.id();
|
node["id"] = Json::UInt64(_node.id());
|
||||||
node["src"] = sourceLocationToString(_node.location());
|
node["src"] = sourceLocationToString(_node.location());
|
||||||
node["name"] = _nodeName;
|
node["name"] = _nodeName;
|
||||||
if (_attributes.size() != 0)
|
if (_attributes.size() != 0)
|
||||||
@ -124,7 +124,7 @@ bool ASTJsonConverter::visit(ContractDefinition const& _node)
|
|||||||
{
|
{
|
||||||
Json::Value linearizedBaseContracts(Json::arrayValue);
|
Json::Value linearizedBaseContracts(Json::arrayValue);
|
||||||
for (auto const& baseContract: _node.annotation().linearizedBaseContracts)
|
for (auto const& baseContract: _node.annotation().linearizedBaseContracts)
|
||||||
linearizedBaseContracts.append(baseContract->id());
|
linearizedBaseContracts.append(Json::UInt64(baseContract->id()));
|
||||||
addJsonNode(_node, "ContractDefinition", {
|
addJsonNode(_node, "ContractDefinition", {
|
||||||
make_pair("name", _node.name()),
|
make_pair("name", _node.name()),
|
||||||
make_pair("isLibrary", _node.isLibrary()),
|
make_pair("isLibrary", _node.isLibrary()),
|
||||||
|
Loading…
Reference in New Issue
Block a user