public override bool test(ITokenCollection semi) { Repository repo = Repository.getInstance(); ITokenCollection local = semi.clone(); if (local[0] == "using") { return(false); } Display.displayRules(actionDelegate, "rule DetectDeclar"); int index; local.find(";", out index); if (index != -1) { local = compactGeneric(local); int pos = 0; while (pos < local.size()) { if (repo.qualTable.contains(local[pos])) { local.remove(pos); } else { ++pos; } } local.find("=", out index); if (index != -1) { while (index < local.size() - 1) { local.remove(index); } } int indexPar; local.find("(", out indexPar); if (indexPar > -1) { return(false); } if (local.size() == 3) { doActions(local); return(false); } if (local.size() == 5 && local[1] == ".") { doActions(local); return(false); } } return(false); }