static void Main(string[] args) { DependencyModel DM = new DependencyModel(); TypeModel TM = new TypeModel(); TM.addType("X", "XFile"); TM.addType("X", "YFile"); TM.addType("Y", "ZFile"); TypeView tv = new TypeView(); tv.Display(); Console.Write("\n\n"); DM.addDependency("XFile", "YFile"); DependencyView depv = new DependencyView(); depv.Display(); }
//----< match tokens and usings with TypeModel >------------------------- public void FindDependencies() { // Console.Write("\n --- FindDefinedTypes() shows how to integrate parser into analysis. ---"); //Console.Write("\n --- You will need to add rules and actions to meet requirements. ---\n"); DependencyController dc = new DependencyController(); FileModel fm = new FileModel(); List<string> file = fm.files(); Console.WriteLine(); dc.findDependency(file); DependencyView depv = new DependencyView(); depv.Display(); Displaysummary(); //foreach (string file in fm.files()) //{ fm.CurrentFile = file; //dc.findDependency(file); }
public void Displaysummary() { FileView fvs = new FileView(); TypeView tvs = new TypeView(); DependencyView dvs = new DependencyView(); fvs.displaySum(); tvs.displaySum(); dvs.displaySum(); }