static void Main(string[] args) { Console.WriteLine("\nDemonstrating Test Stub for Dependency Analysis:"); Console.WriteLine("================================================"); List <string> files = ProcessCommandline(args); List <List <Elem> > tableList = new List <List <Elem> >(); tableList = GenerateTypeTable.TypeTableGenerator(files); List <CsNode <string, string> > nodes = PerformDependencyAnalysis.dependencyAnalysis(tableList, files); Console.WriteLine("Dependency Analysis is as below:"); Console.WriteLine("----------------------------------"); foreach (var node in nodes) { Console.Write("File:{0} depends on-", node.name); for (int i = 0; i < node.children.Count; ++i) { Console.Write("\n {0}:{1}", i + 1, node.children[i].targetNode.name); } Console.WriteLine("\n"); } Console.Read(); }
List <string> dependencyAnalysisOutput(List <string> files) { return(Display.showDependencies(PerformDependencyAnalysis.dependencyAnalysis(GenerateTypeTable.TypeTableGenerator(files), files))); }
List <string> sccOutput(List <string> files) { List <CsNode <string, string> > nodes = PerformDependencyAnalysis.dependencyAnalysis(GenerateTypeTable.TypeTableGenerator(files), files); StronglyConnectedComponent scc_obj = new StronglyConnectedComponent(); return(Display.showSCC(scc_obj.Tarjan(nodes))); }
List <string> typeAnalysisOutput(List <string> files) { List <string> fromDisplay = new List <string>(); return(Display.showTypeTableGUI(GenerateTypeTable.TypeTableGenerator(files))); }