setBogus() public method

public setBogus ( bool isBogus ) : void
isBogus bool
return void
Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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();
        }