diff options
author | Federico Bond <federicobond@gmail.com> | 2016-12-11 13:07:08 +0800 |
---|---|---|
committer | Federico Bond <federicobond@gmail.com> | 2016-12-11 13:07:08 +0800 |
commit | df762302400ad95218ea3205d8e30332ec567028 (patch) | |
tree | 7b9b6d6320fc8ca2c1174ce4d7552f7965f446e2 /libsolidity | |
parent | 84443eb56022cdb236425b99e253d0b142261372 (diff) | |
download | dexon-solidity-df762302400ad95218ea3205d8e30332ec567028.tar.gz dexon-solidity-df762302400ad95218ea3205d8e30332ec567028.tar.zst dexon-solidity-df762302400ad95218ea3205d8e30332ec567028.zip |
Fix names of JSON AST nodes
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/ast/ASTJsonConverter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.cpp b/libsolidity/ast/ASTJsonConverter.cpp index f6b06be6..493707b9 100644 --- a/libsolidity/ast/ASTJsonConverter.cpp +++ b/libsolidity/ast/ASTJsonConverter.cpp @@ -318,7 +318,7 @@ bool ASTJsonConverter::visit(Throw const& _node) bool ASTJsonConverter::visit(VariableDeclarationStatement const& _node) { - addJsonNode(_node, "VariableDefinitionStatement", {}, true); + addJsonNode(_node, "VariableDeclarationStatement", {}, true); return true; } @@ -407,7 +407,7 @@ bool ASTJsonConverter::visit(Identifier const& _node) bool ASTJsonConverter::visit(ElementaryTypeNameExpression const& _node) { - addJsonNode(_node, "ElementaryTypenameExpression", { + addJsonNode(_node, "ElementaryTypeNameExpression", { make_pair("value", _node.typeName().toString()), make_pair("type", type(_node)) }); |