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