aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/ASTPrinter.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-02-22 09:13:41 +0800
committerchriseth <c@ethdev.com>2016-03-30 08:37:00 +0800
commit949b00ed591303c531ed8fa73087b710b7a554de (patch)
tree182664f2545e6211d7994ef90a1e7746d5482981 /libsolidity/ast/ASTPrinter.cpp
parent8236732e9a5d2535afd3a3573a70d5aab3da3efe (diff)
downloaddexon-solidity-949b00ed591303c531ed8fa73087b710b7a554de.tar.gz
dexon-solidity-949b00ed591303c531ed8fa73087b710b7a554de.tar.zst
dexon-solidity-949b00ed591303c531ed8fa73087b710b7a554de.zip
Parsing for inline assembly.
Diffstat (limited to 'libsolidity/ast/ASTPrinter.cpp')
-rw-r--r--libsolidity/ast/ASTPrinter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTPrinter.cpp b/libsolidity/ast/ASTPrinter.cpp
index 283bc8f9..9ed9c6d5 100644
--- a/libsolidity/ast/ASTPrinter.cpp
+++ b/libsolidity/ast/ASTPrinter.cpp
@@ -171,6 +171,13 @@ bool ASTPrinter::visit(ArrayTypeName const& _node)
return goDeeper();
}
+bool ASTPrinter::visit(InlineAssembly const& _node)
+{
+ writeLine("InlineAssembly");
+ printSourcePart(_node);
+ return goDeeper();
+}
+
bool ASTPrinter::visit(Block const& _node)
{
writeLine("Block");
@@ -433,6 +440,11 @@ void ASTPrinter::endVisit(ArrayTypeName const&)
m_indentation--;
}
+void ASTPrinter::endVisit(InlineAssembly const&)
+{
+ m_indentation--;
+}
+
void ASTPrinter::endVisit(Block const&)
{
m_indentation--;