Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
 public void Init(Type type, BaseGenerator internalGenerator)
 {
     this.type = type;
     this.internalGenerator = internalGenerator;
 }