public bool CheckBogus(Symbol sym) { if (sym == null) { return(false); } if (!sym.hasBogus()) { bool fBogus = sym.computeCurrentBogusState(); if (fBogus) { // Only set this if everything is declared or // at least 1 declared thing is bogus sym.setBogus(fBogus); } } return(sym.hasBogus() && sym.checkBogus()); }
public bool CheckBogus(Symbol sym) { if (sym == null) { return false; } if (!sym.hasBogus()) { bool fBogus = sym.computeCurrentBogusState(); if (fBogus) { // Only set this if everything is declared or // at least 1 declared thing is bogus sym.setBogus(fBogus); } } return sym.hasBogus() && sym.checkBogus(); }