2007-02-25 Jürg Billeter <j@bitron.ch>
* vala/valacodenode.vala: add to_string method
svn path=/trunk/; revision=195
2007-02-25 Jürg Billeter <j@bitron.ch>
+ * vala/valacodenode.vala: add to_string method
+
+2007-02-25 Jürg Billeter <j@bitron.ch>
+
* vapi/glib-2.0.vala: improve GSource support
2007-02-22 Raffaele Sandrini <rasa@gmx.ch>
}
private CCodeNode _ccodenode;
+
+ /**
+ * Returns a string that represents this code node.
+ *
+ * @return a string representation
+ */
+ public ref string to_string () {
+ if (source_reference != null) {
+ return source_reference.to_string ();
+ }
+ return null;
+ }
}