//-----<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); } } } }
//-----<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); } } } }