mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove escape function.
This commit is contained in:
committed by
Alex Beregszaszi
parent
a3f77527e9
commit
cd22da1d9e
@@ -21,9 +21,12 @@
|
||||
*/
|
||||
|
||||
#include <libsolidity/ast/ASTPrinter.h>
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <libsolidity/ast/AST.h>
|
||||
|
||||
#include <libdevcore/JSON.h>
|
||||
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace dev
|
||||
@@ -579,8 +582,13 @@ void ASTPrinter::printSourcePart(ASTNode const& _node)
|
||||
if (!m_source.empty())
|
||||
{
|
||||
SourceLocation const& location(_node.location());
|
||||
*m_ostream << indentation() << " Source: "
|
||||
<< escaped(m_source.substr(location.start, location.end - location.start), false) << endl;
|
||||
*m_ostream <<
|
||||
indentation() <<
|
||||
" Source: " <<
|
||||
/// Note: this "abuses" the JSON library to print a string (as it is not a valid root node).
|
||||
/// It also makes a copy of the string.
|
||||
jsonCompactPrint(m_source.substr(location.start, location.end - location.start)) <<
|
||||
endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user