예제 #1
0
    static void Main(string[] args)
       {

           TypeModel types = new TypeModel();
           types.addType("X", "XFile");
           types.addType("X", "YFile");
           types.addType("Y", "ZFile");
           TypeView tv = new TypeView();
           tv.Display();
           Console.Write("\n\n");

           
    }
예제 #2
0
 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();
 }
예제 #3
0
      public override void doAction(CSsemi.CSemiExp semi)
      {
          TypeModel tm = new TypeModel();
          FileModel fm = new FileModel();
          
       // Console.Write("\n  Entering scope: ");

        if (semi.Contains("class") != -1)
        {
            int index = semi.Contains("class");
           // Console.Write("class: ");
            tm.addType(semi[index + 1], fm.CurrentFile);
            

        }
        else if (semi.Contains("struct") != -1)
        {
            int index = semi.Contains("struct");
            //Console.Write("struct: ");
            tm.addType(semi[index + 1], fm.CurrentFile);
        }
        else if (semi.Contains("interface") != -1)
        {
            int index = semi.Contains("class");
            //Console.Write("interface: ");
            tm.addType(semi[index + 1], fm.CurrentFile);       
        }
        else if (semi.Contains("enum") != -1)
        {
            int index = semi.Contains("class");
            //Console.Write("enum: ");
            tm.addType(semi[index + 1], fm.CurrentFile);
        }
        else if (semi.Contains("delegte") != -1)
        {
            int index = semi.Contains("delegate");
            //Console.Write("delegate: ");
            tm.addType(semi[index + 2], fm.CurrentFile);
        }
        else

            Console.Write("");

        }