aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ASTPrinter.cpp
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-09-01 17:19:02 +0800
committerLianaHus <liana@ethdev.com>2015-09-08 19:12:00 +0800
commit02d4198242ec3dacc7af31c9446c83adcf014de9 (patch)
tree6d000f103d2520ebec433c41726dd30350462d8b /libsolidity/ASTPrinter.cpp
parent1b5e6fc9e76ad3cf30e6e7bfc0e868dbb5267ff4 (diff)
downloaddexon-solidity-02d4198242ec3dacc7af31c9446c83adcf014de9.tar.gz
dexon-solidity-02d4198242ec3dacc7af31c9446c83adcf014de9.tar.zst
dexon-solidity-02d4198242ec3dacc7af31c9446c83adcf014de9.zip
removed get prefix
style fixes
Diffstat (limited to 'libsolidity/ASTPrinter.cpp')
-rw-r--r--libsolidity/ASTPrinter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libsolidity/ASTPrinter.cpp b/libsolidity/ASTPrinter.cpp
index 9c701766..a64e8490 100644
--- a/libsolidity/ASTPrinter.cpp
+++ b/libsolidity/ASTPrinter.cpp
@@ -507,11 +507,11 @@ void ASTPrinter::endVisit(Literal const&)
void ASTPrinter::printSourcePart(ASTNode const& _node)
{
if (m_gasCosts.count(&_node))
- *m_ostream << getIndentation() << " Gas costs: " << m_gasCosts.at(&_node) << endl;
+ *m_ostream << indentation() << " Gas costs: " << m_gasCosts.at(&_node) << endl;
if (!m_source.empty())
{
SourceLocation const& location(_node.location());
- *m_ostream << getIndentation() << " Source: "
+ *m_ostream << indentation() << " Source: "
<< escaped(m_source.substr(location.start, location.end - location.start), false) << endl;
}
}
@@ -519,19 +519,19 @@ void ASTPrinter::printSourcePart(ASTNode const& _node)
void ASTPrinter::printType(Expression const& _expression)
{
if (_expression.type())
- *m_ostream << getIndentation() << " Type: " << _expression.type()->toString() << "\n";
+ *m_ostream << indentation() << " Type: " << _expression.type()->toString() << "\n";
else
- *m_ostream << getIndentation() << " Type unknown.\n";
+ *m_ostream << indentation() << " Type unknown.\n";
}
-string ASTPrinter::getIndentation() const
+string ASTPrinter::indentation() const
{
return string(m_indentation * 2, ' ');
}
void ASTPrinter::writeLine(string const& _line)
{
- *m_ostream << getIndentation() << _line << endl;
+ *m_ostream << indentation() << _line << endl;
}
}