aboutsummaryrefslogtreecommitdiffstats
path: root/ASTPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ASTPrinter.cpp')
-rw-r--r--ASTPrinter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ASTPrinter.cpp b/ASTPrinter.cpp
index eb9d92f0..987ad11c 100644
--- a/ASTPrinter.cpp
+++ b/ASTPrinter.cpp
@@ -30,8 +30,8 @@ namespace dev
namespace solidity
{
-ASTPrinter::ASTPrinter(ASTPointer<ASTNode> const& _ast, string const& _source):
- m_indentation(0), m_source(_source), m_ast(_ast)
+ASTPrinter::ASTPrinter(ASTNode& _ast, string const& _source):
+ m_indentation(0), m_source(_source), m_ast(&_ast)
{
}
@@ -430,8 +430,8 @@ void ASTPrinter::printSourcePart(ASTNode const& _node)
if (!m_source.empty())
{
Location const& location(_node.getLocation());
- *m_ostream << getIndentation() << " Source: |"
- << m_source.substr(location.start, location.end - location.start) << "|" << endl;
+ *m_ostream << getIndentation() << " Source: "
+ << escaped(m_source.substr(location.start, location.end - location.start), false) << endl;
}
}