示例#1
0
 //-----<checks if any file has alias name as the namespace of other file>--------//
 public static void pass3(List <CompareFiles> ns, List <CompareFiles> us, List <List <Elem> > allTables, List <string> files, List <Tuple <string, string> > graph)
 {
     foreach (var name in ns)
     {
         foreach (var use in us)
         {
             if (name.Typename == use.Aliasname)
             {
                 SecondParsing.secondParse(name.Filename, use.Filename, allTables, files, graph);
             }
         }
     }
 }
示例#2
0
 //-----<checks if two files have the same namespace>--------//
 public static void pass2(List <CompareFiles> ns, List <List <Elem> > allTables, List <string> files, List <Tuple <string, string> > graph)
 {
     foreach (var name in ns)
     {
         foreach (var name1 in ns)
         {
             if (name.Filename != name1.Filename && name.Typename == name1.Typename)
             {
                 SecondParsing.secondParse(name.Filename, name1.Filename, allTables, files, graph);
             }
         }
     }
 }