Deterministic AST node identifiers.

This commit is contained in:
chriseth
2017-01-17 10:45:45 +01:00
parent 6ecb4aa36f
commit 99eaadd2cd
4 changed files with 11 additions and 2 deletions
+2
View File
@@ -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()