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:
parent
437687c030
commit
9066fcac16
3 changed files with 9 additions and 47 deletions
|
@ -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>
|
2003-05-13 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
* COPYING : Add the license. This is copied verbatim from
|
* COPYING : Add the license. This is copied verbatim from
|
||||||
|
|
|
@ -151,7 +151,7 @@ namespace GtkSharp.Generation {
|
||||||
if (prop.Validate ())
|
if (prop.Validate ())
|
||||||
prop.Generate (sw);
|
prop.Generate (sw);
|
||||||
else
|
else
|
||||||
Console.WriteLine(" in Object " + Name);
|
Console.WriteLine(" in Object " + QualifiedName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ namespace GtkSharp.Generation {
|
||||||
if (sig.Validate ())
|
if (sig.Validate ())
|
||||||
sig.Generate (sw, implementor);
|
sig.Generate (sw, implementor);
|
||||||
else
|
else
|
||||||
Console.WriteLine(" in Object " + Name);
|
Console.WriteLine(" in Object " + QualifiedName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ namespace GtkSharp.Generation {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Console.WriteLine(" in Object " + Name);
|
Console.WriteLine(" in Object " + QualifiedName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -323,7 +323,7 @@ namespace GtkSharp.Generation {
|
||||||
has_preferred = true;
|
has_preferred = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Console.WriteLine(" in Object " + Name);
|
Console.WriteLine(" in Object " + QualifiedName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!has_preferred && ctors.Count > 0)
|
if (!has_preferred && ctors.Count > 0)
|
||||||
|
|
|
@ -140,49 +140,6 @@ namespace GtkSharp.Generation {
|
||||||
Statistics.ObjectCount++;
|
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)
|
protected override void GenCtors (StreamWriter sw)
|
||||||
{
|
{
|
||||||
if (!Elem.HasAttribute("parent"))
|
if (!Elem.HasAttribute("parent"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue