コード例 #1
0
        public string createMethodMappings()
        {
            if (ShowLogViewer)
            {
                showLogViewer();
            }
            "Loading Ast source files from folder: {0}".info(SourceFolder);
            O2MappedAstData astData = SourceFolder.getAstData(References, UseCachedData);

            "There are {0} AST files loaded".debug(astData.files().size());
            "Calculating MethodsMappings".info();
            var methodMapingsIndexedBySignature = astData.externalMethodsAndProperties(MethodFilter, ResultsFolder, NumberOfItemsToProcess)
                                                  .indexedBy_ResolvedSignature();

            //var methodMapingsIndexedBySignature = new Dictionary<string,List<KeyValuePair<INode,IMethodOrProperty>>>();

//			if (addProperties)
            astData.add_Properties(ResultsFolder);
            var savedFile = astData.saveMappings(methodMapingsIndexedBySignature);

            "MethodMappings saved to: {0} : {1}".info(savedFile, ((Int32)savedFile.fileInfo().size()).kBytesStr());

            //PublicDI.log.showMessageBox("Click Ok to continue");
            "AstData loaded".info();
            if (LogViewer.notNull())
            {
                LogViewer.parentForm().close();
            }
            return(savedFile);
            //show.info(astData);
            //"Hello there".info();


            //show.info(astData);
            //return "done";
        }