Has checks if scope rule set has given scope, rule
(scope lexer.Reg, pr *Rule)
| 399 | |
| 400 | // Has checks if scope rule set has given scope, rule |
| 401 | func (rs ScopeRuleSet) Has(scope lexer.Reg, pr *Rule) bool { |
| 402 | sr := ScopeRule{scope, pr} |
| 403 | _, has := rs[sr] |
| 404 | return has |
| 405 | } |
| 406 | |
| 407 | // AddNonMatch adds given rule to non-matching rule set for this scope |
| 408 | func (ps *State) AddNonMatch(scope lexer.Reg, pr *Rule) { |
no outgoing calls
no test coverage detected