aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-20 18:47:20 +0800
committerchriseth <c@ethdev.com>2017-01-20 19:00:16 +0800
commit7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad (patch)
tree1fbfc682094a366170500cf2987084c42e1c4834 /libsolidity/ast/AST.h
parentda178d967fb66ca508d16bbe3feecf1962dcf6ef (diff)
downloaddexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.tar
dexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.tar.gz
dexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.tar.bz2
dexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.tar.lz
dexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.tar.xz
dexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.tar.zst
dexon-solidity-7159944f0fa5d9eb3205cd8a3e1d6ec4f133a4ad.zip
Reset AST node IDs between compilation runs.
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r--libsolidity/ast/AST.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h
index 4af64963..116275c3 100644
--- a/libsolidity/ast/AST.h
+++ b/libsolidity/ast/AST.h
@@ -59,6 +59,8 @@ public:
/// @returns an identifier of this AST node that is unique for a single compilation run.
size_t id() const { return m_id; }
+ /// Resets the global ID counter. This invalidates all previous IDs.
+ static void resetID();
virtual void accept(ASTVisitor& _visitor) = 0;
virtual void accept(ASTConstVisitor& _visitor) const = 0;