Include public state variables' base functions in the AST.

This commit is contained in:
chriseth 2019-12-11 15:32:28 +01:00
parent 1fb62b91d2
commit f1e7bec11d

View File

@ -386,6 +386,8 @@ bool ASTJsonConverter::visit(VariableDeclaration const& _node)
};
if (m_inEvent)
attributes.emplace_back("indexed", _node.isIndexed());
if (!_node.annotation().baseFunctions.empty())
attributes.emplace_back(make_pair("baseFunctions", getContainerIds(_node.annotation().baseFunctions, true)));
setJsonNode(_node, "VariableDeclaration", std::move(attributes));
return false;
}