added typeToString()

This commit is contained in:
Nicolas Cannasse
2018-02-04 22:50:28 +01:00
parent c124076279
commit 5429a3a4d4
+7
View File
@@ -37,6 +37,13 @@ class Printer {
return buf.toString();
}
public function typeToString( t : CType ) {
buf = new StringBuf();
tabs = "";
type(t);
return buf.toString();
}
inline function add<T>(s:T) buf.add(s);
function type( t : CType ) {