aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/AssemblyStack.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-28 21:13:41 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-07 21:42:22 +0800
commit502304f30b1dfa45a936d500c173858baf5735df (patch)
tree1a948469c7abd95b2ff4b9cb4142ff526a8f8bc0 /libsolidity/interface/AssemblyStack.h
parent937c2083207f28e0b084959492f72ef01119c202 (diff)
downloaddexon-solidity-502304f30b1dfa45a936d500c173858baf5735df.tar.gz
dexon-solidity-502304f30b1dfa45a936d500c173858baf5735df.tar.zst
dexon-solidity-502304f30b1dfa45a936d500c173858baf5735df.zip
Add analyze(block) to AssemblyStack
Diffstat (limited to 'libsolidity/interface/AssemblyStack.h')
-rw-r--r--libsolidity/interface/AssemblyStack.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/interface/AssemblyStack.h b/libsolidity/interface/AssemblyStack.h
index 62a5134a..f13a25ca 100644
--- a/libsolidity/interface/AssemblyStack.h
+++ b/libsolidity/interface/AssemblyStack.h
@@ -60,6 +60,10 @@ public:
/// Multiple calls overwrite the previous state.
bool parseAndAnalyze(std::string const& _sourceName, std::string const& _source);
+ /// Runs analysis step on the supplied block, returns false if input cannot be assembled.
+ /// Multiple calls overwrite the previous state.
+ bool analyze(assembly::Block const& _block, Scanner const* _scanner = nullptr);
+
/// Run the assembly step (should only be called after parseAndAnalyze).
eth::LinkerObject assemble(Machine _machine);