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

Method emptyStack

syntax/parser.go:2805–2807  ·  view source on GitHub ↗

True if the group stack is empty.

()

Source from the content-addressed store, hash-verified

2803
2804// True if the group stack is empty.
2805func (p *parser) emptyStack() bool {
2806 return p.stack == nil
2807}
2808
2809// Start a new round for the parser state (in response to an open paren or string start)
2810func (p *parser) startGroup(openGroup *RegexNode) {

Callers 1

scanRegexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected