public static void GenerateCode(BaseGenerator start, CodeWriter writer) { BaseGenerator current = start; while (current != null) { // set writer current.Writer = writer; current.Generate(); // advance to next current = current.Next; } }
public void Init(Type type, BaseGenerator internalGenerator) { this.type = type; this.internalGenerator = internalGenerator; }