예제 #1
0
        public ContextImport()
        {
            //ImportNormalZTypes = new Dictionary<string, ZClassType>();
            //ImportGenericZTypes = new Dictionary<string, ZClassType>();
            //ImportDimTypes = new Dictionary<string, ZDimType>();
            //ImportDims = new List<ZDimType>();
            DictName = new WordDictionary("导入类表");
            //DictMember = new WordDictionary("导入成员表");
            //ZEnumList = new List<ZEnumType>();

            ImportPackageDescList = new ZPackageDescList();
        }
예제 #2
0
        private bool LoadPackage(ZPackageDescList addTo, Dictionary <Assembly, ZAssemblyDesc> addFrom)
        {
            if (addTo.Contains(this.PackageFullName))
            {
                ErrorE(this.Position, "开发包'{0}'已经导入", PackageFullName);
                return(false);
            }
            ZPackageDesc packageDesc = SearchZPackageDesc(this.PackageFullName, addFrom);

            if (packageDesc == null)
            {
                ErrorE(this.Position, "不存在'{0}'开发包", PackageFullName);
                return(false);
            }
            else
            {
                addTo.Add(packageDesc);
            }
            return(true);
        }