Exemplo n.º 1
0
        public void Import(ZLClassInfo zclassype)
        {
            string zname = zclassype.ZTypeName;

            ZLClassDict.Add(zname, zclassype);
            FileSegementer.AddWord(zname);
            ArgSegementer.AddWord(zname);

            foreach (ZLFieldInfo memberItem in zclassype.ZFields)
            {
                string[] itemNames = memberItem.GetZFieldZNames();
                foreach (var name in itemNames)
                {
                    //ZLPropertyDict.Add(name, memberItem);
                    FileSegementer.AddWord(name);
                }
            }

            foreach (ZLPropertyInfo memberItem in zclassype.ZPropertys)
            {
                string[] itemNames = memberItem.GetZPropertyZNames();
                foreach (var name in itemNames)
                {
                    //ZLPropertyDict.Add(name, memberItem);
                    FileSegementer.AddWord(name);
                }
            }

            foreach (ZLMethodInfo item in zclassype.ZMethods)
            {
                ImportMethod(item);
            }
        }
Exemplo n.º 2
0
        public void ImportZCompiling(ZCClassInfo zclassype)
        {
            string zname = zclassype.ZTypeName;

            CompilingClassDict.Add(zname, zclassype);
            FileSegementer.AddWord(zname);
            ArgSegementer.AddWord(zname);
        }
Exemplo n.º 3
0
 public void Import(ZLDimInfo zldim)
 {
     //AddZTypeWord(dtype);
     // ImportZDimItem(zldim);
     foreach (var dimName in zldim.Dims.Keys)
     {
         var dimType = zldim.Dims[dimName];
         ZLDimItemDict.Add(dimName, dimType);
         FileSegementer.AddWord(dimName);
         ArgSegementer.AddWord(dimName);
     }
 }
Exemplo n.º 4
0
        public void Import(ZLEnumInfo zlenum)
        {
            string zname = zlenum.ZTypeName;

            ZLEnumDict.Add(zname, zlenum);
            FileSegementer.AddWord(zname);
            ArgSegementer.AddWord(zname);

            foreach (ZLEnumItemInfo enumItem in zlenum.EnumElements)
            {
                string[] itemNames = enumItem.GetZNames();
                foreach (var name in itemNames)
                {
                    FileSegementer.AddWord(name);
                    ZLEnumItemDict.Add(name, enumItem);
                }
            }
        }