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

write interface prerequisites

2007-07-23  Juerg Billeter  <j@bitron.ch>

	* vala/valainterfacewriter.vala: write interface prerequisites

svn path=/trunk/; revision=373
parent a8255b39
2007-07-23 Jürg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala: write interface prerequisites
2007-07-22 Raffaele Sandrini <raffaele@sandrini.ch>
* vapi/glib-2.0.vala: add basic internationalization functionality
......
......@@ -145,7 +145,7 @@ public class Vala.InterfaceWriter : CodeVisitor {
bool first = true;
foreach (TypeReference type_arg in type_args) {
if (!first) {
write_string (", ");
write_string (",");
} else {
first = false;
}
......@@ -251,7 +251,39 @@ public class Vala.InterfaceWriter : CodeVisitor {
write_string (">");
}
var prerequisites = iface.get_prerequisites ();
if (prerequisites != null) {
write_string (" : ");
bool first = true;
foreach (TypeReference prerequisite in prerequisites) {
if (!first) {
write_string (", ");
} else {
first = false;
}
write_string (prerequisite.data_type.get_full_name ());
var type_args = prerequisite.get_type_arguments ();
if (type_args != null) {
write_string ("<");
bool first = true;
foreach (TypeReference type_arg in type_args) {
if (!first) {
write_string (",");
} else {
first = false;
}
if (type_arg.data_type != null) {
write_string (type_arg.data_type.get_full_name ());
} else {
write_string (type_arg.type_parameter.name);
}
}
write_string (">");
}
}
}
write_begin_block ();
iface.accept_children (this);
......
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