MCPcopy Create free account
hub / github.com/cogentcore/core / IsNonMatch

Method IsNonMatch

parse/parser/state.go:413–415  ·  view source on GitHub ↗

IsNonMatch looks for rule in nonmatch list at given scope

(scope lexer.Reg, pr *Rule)

Source from the content-addressed store, hash-verified

411
412// IsNonMatch looks for rule in nonmatch list at given scope
413func (ps *State) IsNonMatch(scope lexer.Reg, pr *Rule) bool {
414 return ps.NonMatches.Has(scope, pr)
415}
416
417// ResetNonMatches resets the non-match map -- do after every EOS
418func (ps *State) ResetNonMatches() {

Callers 1

MatchMethod · 0.80

Calls 1

HasMethod · 0.45

Tested by

no test coverage detected