diff options
author | Alex Sinyagin <sinyagin.alexander@gmail.com> | 2016-08-18 21:29:44 +0800 |
---|---|---|
committer | Alex Sinyagin <sinyagin.alexander@gmail.com> | 2016-08-18 21:29:44 +0800 |
commit | 4387d8bbe3096864da6db478006493e491e8eda6 (patch) | |
tree | 2872b870d67f240c4e1ba2b92951ad08546ad739 /libsolidity | |
parent | 9139d763d302ac2a1afbd9d28c9b0d0861a14d3e (diff) | |
download | dexon-solidity-4387d8bbe3096864da6db478006493e491e8eda6.tar.gz dexon-solidity-4387d8bbe3096864da6db478006493e491e8eda6.tar.zst dexon-solidity-4387d8bbe3096864da6db478006493e491e8eda6.zip |
Do not add children to EnumValue and PlaceholderStatement elements in JSON AST
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp index c7a9d7ec..3ce572bf 100644 --- a/libsolidity/ast/ASTJsonConverter.cpp +++ b/libsolidity/ast/ASTJsonConverter.cpp @@ -152,7 +152,7 @@ bool ASTJsonConverter::visit(EnumDefinition const& _node) bool ASTJsonConverter::visit(EnumValue const& _node) { - addJsonNode(_node, "EnumValue", { make_pair("name", _node.name()) }, true); + addJsonNode(_node, "EnumValue", { make_pair("name", _node.name()) }); return true; } @@ -244,7 +244,7 @@ bool ASTJsonConverter::visit(Block const& _node) bool ASTJsonConverter::visit(PlaceholderStatement const& _node) { - addJsonNode(_node, "PlaceholderStatement", {}, true); + addJsonNode(_node, "PlaceholderStatement", {}); return true; } @@ -432,7 +432,6 @@ void ASTJsonConverter::endVisit(EnumDefinition const&) void ASTJsonConverter::endVisit(EnumValue const&) { - goUp(); } void ASTJsonConverter::endVisit(ParameterList const&) @@ -499,7 +498,6 @@ void ASTJsonConverter::endVisit(Block const&) void ASTJsonConverter::endVisit(PlaceholderStatement const&) { - goUp(); } void ASTJsonConverter::endVisit(IfStatement const&) |