diff options
author | chriseth <chris@ethereum.org> | 2016-12-11 23:39:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-11 23:39:23 +0800 |
commit | 0e9b72725e71e5a6a27cef403d09db894dc9ab56 (patch) | |
tree | 9020e75727aa7f3fd21bd720a07bf4371dbdc008 | |
parent | 84d4f3da025f58ac1d7b2d252532c7142da29925 (diff) | |
parent | df762302400ad95218ea3205d8e30332ec567028 (diff) | |
download | dexon-solidity-0e9b72725e71e5a6a27cef403d09db894dc9ab56.tar.gz dexon-solidity-0e9b72725e71e5a6a27cef403d09db894dc9ab56.tar.zst dexon-solidity-0e9b72725e71e5a6a27cef403d09db894dc9ab56.zip |
Merge pull request #1497 from federicobond/json-names
Fix names of JSON AST nodes
-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)) }); |