Beispiel #1
0
        public DuProject Run(DuProject preLoaderResult)
        {
            Logger.LogMessage("POSTLOADING STADE START", Logger.LogLevel.Warning);
            var files = preLoaderResult.LinkedFiles;

            Logger.LogMessage("Start files sorting", Logger.LogLevel.Info);

            Logger.LogMessage("Code files....", Logger.LogLevel.Info);
            preLoaderResult.CodeFiles.AddRange(files.Where(s => s.ContentType == DuProjectFileInfo.Type.Code).Select(s => new DuCode(s)));

            Logger.LogMessage("Property file....", Logger.LogLevel.Info);
            var val = files.SingleOrDefault(s => s.ContentType == DuProjectFileInfo.Type.Properties);

            preLoaderResult.PropertyFile = val == null ? null : new DuProjectProperies(val);

            Logger.LogMessage("Assets files....", Logger.LogLevel.Info);
            preLoaderResult.AssestFiles.AddRange(files.Where(s => s.ContentType == DuProjectFileInfo.Type.Asset).Select(s => new DuProjectAsset(s)));

            Logger.LogMessage("End files sorting", Logger.LogLevel.Info);

            Logger.LogMessage("Finalizing project object", Logger.LogLevel.Info);
            preLoaderResult.FinalizeObject();

            Logger.LogMessage("POSTLOADING STADE END", Logger.LogLevel.Warning);
            return(preLoaderResult);
        }
Beispiel #2
0
        public DuAnalyzedProject Run(DuProject project)
        {
            Logger.LogMessage("ANALYSING STADE START", Logger.LogLevel.Warning);

            var analyzedProject = new DuAnalyzedProject(project);

            foreach (var item in project.CodeFiles)
            {
                Logger.LogMessage("Analysing File at " + item.FileInfo.Path, Logger.LogLevel.Info);

                NonLecsicAnalys(item);
                Logger.LogMessage("File prepared to analize", Logger.LogLevel.Info);

                var analyzed = BlockSplitingAndTypping(item);
                Logger.LogMessage("Block and Instructions defined", Logger.LogLevel.Info);

                analyzed = AliasReplace(analyzed);
                Logger.LogMessage("Alias replace complite", Logger.LogLevel.Info);

                analyzedProject.AnalysedCode.Add(analyzed);
                Logger.LogMessage("File analize complite", Logger.LogLevel.Info);
            }

            Logger.LogMessage("Finalizing...", Logger.LogLevel.Info);
            analyzedProject = FinalizeAnalyse(analyzedProject);

            Logger.LogMessage("ANALYSING STADE END", Logger.LogLevel.Warning);

            return(analyzedProject);
        }
Beispiel #3
0
        private static void LookUpProjectModules(DuProject project, string basePath)
        {
            foreach (var path in project.ModulesPaths)
            {
                var seeAllSybFolders = false;
                var searchPath       = basePath + "\\" + path;

                if (path.StartsWith("!"))
                {
                    seeAllSybFolders = true;
                    searchPath       = basePath + "\\" + path[1..];