aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-08-05 17:48:09 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-08-09 02:08:31 +0800
commitbf76321c9ea74651898d677ec6d2aabcc524ed89 (patch)
tree56d0fe0cdb91e9913e6bc471bd070116f4cc33b6 /libsolidity/ast
parent539afbeea32fb646e7d0979ee4fb949d914e89bc (diff)
downloaddexon-solidity-bf76321c9ea74651898d677ec6d2aabcc524ed89.tar.gz
dexon-solidity-bf76321c9ea74651898d677ec6d2aabcc524ed89.tar.zst
dexon-solidity-bf76321c9ea74651898d677ec6d2aabcc524ed89.zip
Move LiteralString::toString from the header
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/Types.cpp5
-rw-r--r--libsolidity/ast/Types.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 5630743b..df4ec0aa 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -852,6 +852,11 @@ bool StringLiteralType::operator==(const Type& _other) const
return m_value == dynamic_cast<StringLiteralType const&>(_other).m_value;
}
+std::string StringLiteralType::toString(bool) const
+{
+ return "literal_string \"" + m_value + "\"";
+}
+
TypePointer StringLiteralType::mobileType() const
{
return make_shared<ArrayType>(DataLocation::Memory, true);
diff --git a/libsolidity/ast/Types.h b/libsolidity/ast/Types.h
index 1ee762e5..1282e5d8 100644
--- a/libsolidity/ast/Types.h
+++ b/libsolidity/ast/Types.h
@@ -419,7 +419,7 @@ public:
virtual bool canLiveOutsideStorage() const override { return false; }
virtual unsigned sizeOnStack() const override { return 0; }
- virtual std::string toString(bool) const override { return "literal_string \"" + m_value + "\""; }
+ virtual std::string toString(bool) const override;
virtual TypePointer mobileType() const override;
std::string const& value() const { return m_value; }