diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-24 19:08:51 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-02-25 00:16:22 +0800 |
commit | 3e5c9a74b277aadf619aed9a41cc6936d64297b1 (patch) | |
tree | 7382cda16d153692cba6c69325f1103cbb9b4131 /CompilerContext.h | |
parent | 1891020ffb7d91b7eca4f69cc65e3722d6920361 (diff) | |
download | dexon-solidity-3e5c9a74b277aadf619aed9a41cc6936d64297b1.tar.gz dexon-solidity-3e5c9a74b277aadf619aed9a41cc6936d64297b1.tar.zst dexon-solidity-3e5c9a74b277aadf619aed9a41cc6936d64297b1.zip |
Reset CompilerContext's visited nodes at compile start
Diffstat (limited to 'CompilerContext.h')
-rw-r--r-- | CompilerContext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CompilerContext.h b/CompilerContext.h index c07d9fb2..6ee52a5b 100644 --- a/CompilerContext.h +++ b/CompilerContext.h @@ -100,6 +100,8 @@ public: void appendProgramSize() { return m_asm.appendProgramSize(); } /// Adds data to the data section, pushes a reference to the stack eth::AssemblyItem appendData(bytes const& _data) { return m_asm.append(_data); } + /// Resets the stack of visited nodes with a new stack having only @c _node + void resetVisitedNodes(ASTNode const* _node); /// Pops the stack of visited nodes void popVisitedNodes() { m_visitedNodes.pop();} /// Pushes an ASTNode to the stack of visited nodes |