Antlr3.Tool.Grammar.IsEmptyRule C# (CSharp) Method

IsEmptyRule() public method

public IsEmptyRule ( Antlr3.Tool.GrammarAST block ) : bool
block Antlr3.Tool.GrammarAST
return bool
        public virtual bool IsEmptyRule( GrammarAST block )
        {
            BitSet nonEmptyTerminals = new BitSet();
            nonEmptyTerminals.Add(ANTLRParser.TOKEN_REF);
            nonEmptyTerminals.Add(ANTLRParser.STRING_LITERAL);
            nonEmptyTerminals.Add(ANTLRParser.CHAR_LITERAL);
            nonEmptyTerminals.Add(ANTLRParser.WILDCARD);
            nonEmptyTerminals.Add(ANTLRParser.RULE_REF);
            return FindFirstTypeOutsideRewrite(block, nonEmptyTerminals) == null;
        }
Grammar