aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTJsonConverter.h
diff options
context:
space:
mode:
authordjudjuu <djuju@thinki.org>2017-03-13 22:19:41 +0800
committerdjudjuu <djuju@thinki.org>2017-03-16 23:56:44 +0800
commit616a9854e96b0892f3f0c881d87185b163cf3b87 (patch)
treed61803135ae728d6c9023fde846bdf2fe12823d6 /libsolidity/ast/ASTJsonConverter.h
parent0157b86ce655a8dd83f402039a4740a9b7d2eea6 (diff)
downloaddexon-solidity-616a9854e96b0892f3f0c881d87185b163cf3b87.tar.gz
dexon-solidity-616a9854e96b0892f3f0c881d87185b163cf3b87.tar.zst
dexon-solidity-616a9854e96b0892f3f0c881d87185b163cf3b87.zip
AST entry for VariableDeclaration
Diffstat (limited to 'libsolidity/ast/ASTJsonConverter.h')
-rw-r--r--libsolidity/ast/ASTJsonConverter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTJsonConverter.h b/libsolidity/ast/ASTJsonConverter.h
index 49f23f99..603f2ab1 100644
--- a/libsolidity/ast/ASTJsonConverter.h
+++ b/libsolidity/ast/ASTJsonConverter.h
@@ -151,8 +151,15 @@ private:
std::initializer_list<std::pair<std::string const, Json::Value const>> _attributes,
bool _hasChildren
);
+ void addJsonNode(
+ ASTNode const& _node,
+ std::string const& _nodeName,
+ std::vector<std::pair<std::string const, Json::Value const>> const& _attributes,
+ bool _hasChildren
+ );
std::string sourceLocationToString(SourceLocation const& _location) const;
std::string visibility(Declaration::Visibility const& _visibility);
+ std::string location(VariableDeclaration::Location _location);
std::string type(Expression const& _expression);
std::string type(VariableDeclaration const& _varDecl);
inline void goUp()
@@ -161,6 +168,7 @@ private:
m_jsonNodePtrs.pop();
}
+ bool m_inEvent = false;
bool processed = false;
Json::Value m_astJson;
std::stack<Json::Value*> m_jsonNodePtrs;