2003-05-18 Mike Kestner <mkestner@speakeasy.net>

* generator/ClassBase.cs : Use QualifiedName in spew
	* generator/ObjectGen.cs (Validate): kill, not used

svn path=/trunk/gtk-sharp/; revision=14673
This commit is contained in:
Mike Kestner 2003-05-18 19:24:28 +00:00
parent 437687c030
commit 9066fcac16
3 changed files with 9 additions and 47 deletions

View file

@ -1,3 +1,8 @@
2003-05-18 Mike Kestner <mkestner@speakeasy.net>
* generator/ClassBase.cs : Use QualifiedName in spew
* generator/ObjectGen.cs (Validate): kill, not used
2003-05-13 Mike Kestner <mkestner@speakeasy.net>
* COPYING : Add the license. This is copied verbatim from

View file

@ -151,7 +151,7 @@ namespace GtkSharp.Generation {
if (prop.Validate ())
prop.Generate (sw);
else
Console.WriteLine(" in Object " + Name);
Console.WriteLine(" in Object " + QualifiedName);
}
}
@ -164,7 +164,7 @@ namespace GtkSharp.Generation {
if (sig.Validate ())
sig.Generate (sw, implementor);
else
Console.WriteLine(" in Object " + Name);
Console.WriteLine(" in Object " + QualifiedName);
}
}
@ -216,7 +216,7 @@ namespace GtkSharp.Generation {
}
}
else
Console.WriteLine(" in Object " + Name);
Console.WriteLine(" in Object " + QualifiedName);
}
}
@ -323,7 +323,7 @@ namespace GtkSharp.Generation {
has_preferred = true;
}
else
Console.WriteLine(" in Object " + Name);
Console.WriteLine(" in Object " + QualifiedName);
}
if (!has_preferred && ctors.Count > 0)

View file

@ -140,49 +140,6 @@ namespace GtkSharp.Generation {
Statistics.ObjectCount++;
}
private bool Validate ()
{
string parent = Elem.GetAttribute("parent");
string cs_parent = SymbolTable.GetCSType(parent);
if (cs_parent == "") {
Console.WriteLine ("Object " + QualifiedName + " Unknown parent " + parent);
return false;
}
if (ctors != null)
foreach (Ctor ctor in ctors)
if (!ctor.Validate()) {
Console.WriteLine ("in Object " + QualifiedName);
return false;
}
if (props != null)
foreach (Property prop in props.Values)
if (!prop.Validate()) {
Console.WriteLine ("in Object " + QualifiedName);
return false;
}
if (sigs != null)
foreach (Signal sig in sigs.Values)
if (!sig.Validate()) {
Console.WriteLine ("in Object " + QualifiedName);
return false;
}
if (methods != null)
foreach (Method method in methods.Values)
if (!method.Validate()) {
Console.WriteLine ("in Object " + QualifiedName);
return false;
}
if (SymbolTable.GetCSType(parent) == null)
return false;
return true;
}
protected override void GenCtors (StreamWriter sw)
{
if (!Elem.HasAttribute("parent"))