Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Demonstrating Test Stub for Type Analyser");
            Console.WriteLine("=========================================");
            Console.WriteLine("The Type Table is as below:");
            List <string>       files     = ProcessCommandline(args);
            List <List <Elem> > tableList = GenerateTypeTable.TypeTableGenerator(files);

            Display.showMetricsNamespace(tableList);
            Display.showMetricsClass(tableList);
            Display.showMetricsFunction(tableList);
            Display.showMetricsAlias(tableList);
            Display.showMetricsEnum(tableList);
            Display.showMetricsStruct(tableList);
            Display.showMetricsDelegate(tableList);
            Display.showMetricsUsing(tableList);
            Console.Read();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.Write("\nDemonstrating Project 3: Type Based Package Dependency Analysis");
            Console.Write("\n=================================================================\n");
            ShowCommandLine(args);
            List <List <Elem> > tableList = new List <List <Elem> >();
            List <string>       files     = ProcessCommandline(args);

            tableList = GenerateTypeTable.TypeTableGenerator(files);
            DisplayRequirement1(tableList);
            List <CsNode <string, string> > nodes = PerformDependencyAnalysis.dependencyAnalysis(tableList, files);

            DisplayRequirement2(nodes);
            StronglyConnectedComponent scc_obj = new StronglyConnectedComponent();
            List <string> scc = scc_obj.Tarjan(nodes);

            DisplayRequirement3(scc);
            Console.Read();
        }