MCPcopy Create free account
hub / github.com/docopt/docopt.go / newOneOrMore

Function newOneOrMore

docopt.go:763–765  ·  view source on GitHub ↗
(pl ...*pattern)

Source from the content-addressed store, hash-verified

761}
762
763func newOneOrMore(pl ...*pattern) *pattern {
764 return newBranchPattern(patternOneOrMore, pl...)
765}
766
767func newOptional(pl ...*pattern) *pattern {
768 return newBranchPattern(patternOptionAL, pl...)

Callers 7

parseSeqFunction · 0.85
TestPatternFlatFunction · 0.85
TestParsePatternFunction · 0.85
TestOneOrMoreMatchFunction · 0.85
TestListArgumentMatchFunction · 0.85
TestPatternEitherFunction · 0.85

Calls 1

newBranchPatternFunction · 0.85

Tested by 6

TestPatternFlatFunction · 0.68
TestParsePatternFunction · 0.68
TestOneOrMoreMatchFunction · 0.68
TestListArgumentMatchFunction · 0.68
TestPatternEitherFunction · 0.68