Commit ad23dce5 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

add to_string method

2007-02-25  Jürg Billeter  <j@bitron.ch>

	* vala/valacodenode.vala: add to_string method

svn path=/trunk/; revision=195
parent 1ec7892b
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
......
......@@ -102,4 +102,16 @@ public abstract class Vala.CodeNode {
}
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;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment