2002-03-07 Mike Kestner <mkestner@speakeasy.net>

* generator/CodeGenerator.cs : Refactor generatable iteration.
	* generator/SymbolTable.cs : Add Generatables property to expose complex_types.Values.

svn path=/trunk/gtk-sharp/; revision=3008
This commit is contained in:
Mike Kestner 2002-03-08 22:40:00 +00:00
parent 7c31e5f7cb
commit 95d51167de
3 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2002-03-07 Mike Kestner <mkestner@speakeasy.net>
* generator/CodeGenerator.cs : Refactor generatable iteration.
* generator/SymbolTable.cs : Add Generatables property to expose complex_types.Values.
2002-03-02 Mike Kestner <mkestner@speakeasy.net>
* makefile : add linux build.

View file

@ -23,9 +23,7 @@ namespace GtkSharp.Generation {
SymbolTable table = p.Parse ();
Console.WriteLine (table.Count + " types parsed.");
IDictionaryEnumerator de = table.GetEnumerator();
while (de.MoveNext()) {
IGeneratable gen = (IGeneratable) de.Value;
foreach (IGeneratable gen in table.Generatables) {
gen.Generate (table);
}

View file

@ -84,9 +84,10 @@ namespace GtkSharp.Generation {
}
}
public IDictionaryEnumerator GetEnumerator()
{
return complex_types.GetEnumerator();
public IEnumerable Generatables {
get {
return complex_types.Values;
}
}
private String Trim(String type)