private void addMethodInfos(List <MethodInfo> methodInfos) { var cirFunctions = new List <ICirFunction>(); var cirDataAnalysis = new CirFactory().createCirDataAnalysisObject(methodInfos); addCirFunctions(cirDataAnalysis.dCirFunction_bySignature.Values.ToList()); }
public void createCirDataAnalysisObject() { var cirFactory = new CirFactory(); cirDataAnalysis = cirFactory.createCirDataAnalysisObject(new List <String> { Assembly.GetExecutingAssembly().Location, DI.config.ExecutingAssembly }); Assert.That(cirDataAnalysis != null, "cirDataAnalysis was null"); }
public void createCirDataObject() { var cirFactory = new CirFactory(); ICirData cirData = new CirData(); DI.log.info("using assembly:{0} and O2_Kernel.dll", Assembly.GetExecutingAssembly().Location); cirFactory.processAssemblyDefinition(cirData, Assembly.GetExecutingAssembly().Location); cirFactory.processAssemblyDefinition(cirData, DI.config.ExecutingAssembly); Assert.That(cirData.dClasses_bySignature.Count > 0, "There were no classes in cirData object"); Assert.That(cirData.dFunctions_bySignature.Count > 0, "There were no function in cirData object"); O2Messages.setCirData(cirData); //CirFactoryUtils.showCirDataStats(); }
public static ICirClass toCir(this Type type) { var cirData = new CirData(); var assemblyLocation = type.assemblyLocation(); var assembly = CecilUtils.getAssembly(assemblyLocation); var cirFactory = new CirFactory(); cirFactory.loadAndMapSymbols(assembly, assemblyLocation, false, ""); var typeDefinition = CecilUtils.getType(assembly, type.Name); var cirType = cirFactory.processTypeDefinition(cirData, typeDefinition); cirData.remapXRefs(); return(cirType); }
private ICirData createCirData(List <string> filesToProcess) { var cirDataAnalysis = new CirDataAnalysis(); foreach (var fileToProcess in filesToProcess) { if (fileToProcess != "" && Path.GetExtension(fileToProcess) == ".xml") { var tempCirData = CirFactory.createCirDataFromXmlFileWithJavaMetadata(fileToProcess); CirDataAnalysisUtils.addO2CirDataFile(cirDataAnalysis, tempCirData, false /* runRemapXrefs*/); } } CirDataAnalysisUtils.remapXrefs(cirDataAnalysis); CirViewingUtils.openCirDataFileInCirViewerControl(cirDataAnalysis, "Cir Viewer"); return(CirDataAnalysisUtils.createCirDataFromCirDataAnalysis(cirDataAnalysis)); }