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

Method Has

parse/parser/state.go:401–405  ·  view source on GitHub ↗

Has checks if scope rule set has given scope, rule

(scope lexer.Reg, pr *Rule)

Source from the content-addressed store, hash-verified

399
400// Has checks if scope rule set has given scope, rule
401func (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
408func (ps *State) AddNonMatch(scope lexer.Reg, pr *Rule) {

Callers 3

MatchOnlyToksMethod · 0.45
MatchMixedMethod · 0.45
IsNonMatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected