示例#1
0
 public MethodGen(Emit.TypeBuilder typeBuilder, Collections.Dictionary <string, Emit.FieldBuilder> typefieldList, string dllProbeDirectory, TypeGen parent)
 {
     this.typeBuilder       = typeBuilder;
     this.dllProbeDirectory = dllProbeDirectory;
     this.typefieldList     = typefieldList;
     this.parent            = parent;
 }
示例#2
0
        private void GenerateType(TypeDeclaration typeDec, Emit.ModuleBuilder modb, string dllProbeDirectory)
        {
            TypeDeclaration temp = null;
            bool            flag = true;

            while (flag)
            {
                if (typeDec is TypeSequence)
                {
                    temp    = (typeDec as TypeSequence).First;
                    typeDec = (typeDec as TypeSequence).Second;
                }
                else
                {
                    temp = typeDec;
                    flag = false;
                }
                child = new TypeGen(temp, modb, dllProbeDirectory, this);
                child.GenerateCode();
                typeList.Add(child);
            }
        }