[prettyprint] r587 committed - Move a function to .cpp file

0 views
Skip to first unread message

prett...@googlecode.com

unread,
Jul 7, 2010, 8:16:32 PM7/7/10
to pp-d...@googlegroups.com
Revision: 587
Author: thockin
Date: Wed Jul 7 17:15:34 2010
Log: Move a function to .cpp file


http://code.google.com/p/prettyprint/source/detail?r=587

Modified:
/trunk/language/syntax_tree.cpp
/trunk/language/syntax_tree.h

=======================================
--- /trunk/language/syntax_tree.cpp Tue Jul 6 21:00:55 2010
+++ /trunk/language/syntax_tree.cpp Wed Jul 7 17:15:34 2010
@@ -36,6 +36,12 @@
}
return ret;
}
+
+string
+Definition::to_string() const
+{
+ return m_type.to_string() + " " + m_init_ident->to_string();
+}

string
Argument::to_string() const
=======================================
--- /trunk/language/syntax_tree.h Tue Jul 6 21:00:55 2010
+++ /trunk/language/syntax_tree.h Wed Jul 7 17:15:34 2010
@@ -299,12 +299,8 @@
return m_init_ident->initializer();
}

- // FIXME: move to .cpp file
virtual string
- to_string() const
- {
- return m_type.to_string() + " " + m_init_ident->to_string();
- }
+ to_string() const;

virtual int
validate(const ValidateOptions &flags, Environment *env)

Reply all
Reply to author
Forward
0 new messages