diff options
author | chriseth <c@ethdev.com> | 2017-01-17 17:31:09 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-01-17 17:45:45 +0800 |
commit | 99eaadd2cd4ece9c3ceba16fa5559c45c2e66b08 (patch) | |
tree | b02e8efce3ff7e63b8a285bca0c93e24fdc548ff /libsolidity/ast/AST.cpp | |
parent | 6ecb4aa36f8c30ca91f650d17f1214c2f2bc4319 (diff) | |
download | dexon-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.cpp | 2 |
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() |