aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-17 17:31:09 +0800
committerchriseth <c@ethdev.com>2017-01-17 17:45:45 +0800
commit99eaadd2cd4ece9c3ceba16fa5559c45c2e66b08 (patch)
treeb02e8efce3ff7e63b8a285bca0c93e24fdc548ff /libsolidity/ast/AST.cpp
parent6ecb4aa36f8c30ca91f650d17f1214c2f2bc4319 (diff)
downloaddexon-solidity-99eaadd2cd4ece9c3ceba16fa5559c45c2e66b08.tar.gz
dexon-solidity-99eaadd2cd4ece9c3ceba16fa5559c45c2e66b08.tar.zst
dexon-solidity-99eaadd2cd4ece9c3ceba16fa5559c45c2e66b08.zip
Deterministic AST node identifiers.
Diffstat (limited to 'libsolidity/ast/AST.cpp')
-rw-r--r--libsolidity/ast/AST.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp
index 6f7a64dc..3db4627a 100644
--- a/libsolidity/ast/AST.cpp
+++ b/libsolidity/ast/AST.cpp
@@ -37,6 +37,8 @@ using namespace dev::solidity;
ASTNode::ASTNode(SourceLocation const& _location):
m_location(_location)
{
+ static size_t id = 0;
+ m_id = ++id;
}
ASTNode::~ASTNode()