MCPcopy Create free account
hub / github.com/dlclark/regexp2 / emptyStack

Method emptyStack

syntax/parser.go:2417–2419  ·  view source on GitHub ↗

True if the group stack is empty.

()

Source from the content-addressed store, hash-verified

2415
2416// True if the group stack is empty.
2417func (p *parser) emptyStack() bool {
2418 return p.stack == nil
2419}
2420
2421// Start a new round for the parser state (in response to an open paren or string start)
2422func (p *parser) startGroup(openGroup *RegexNode) {

Callers 1

scanRegexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected