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

Method IsGroup

parse/parser/rule.go:204–206  ·  view source on GitHub ↗

Rule IsGroup returns true if this node is a group, else it should have rules

()

Source from the content-addressed store, hash-verified

202
203// IsGroup returns true if this node is a group, else it should have rules
204func (pr *Rule) IsGroup() bool {
205 return pr.HasChildren()
206}
207
208// SetRuleMap is called on the top-level Rule and initializes the RuleMap
209func (pr *Rule) SetRuleMap(ps *State) {

Callers 2

WriteGrammarMethod · 0.95
ParseRulesMethod · 0.80

Calls 1

HasChildrenMethod · 0.45

Tested by

no test coverage detected