예제 #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;
            }
        }
예제 #2
0
 public void Init(Type type, BaseGenerator internalGenerator)
 {
     this.type = type;
     this.internalGenerator = internalGenerator;
 }