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

Method current

docopt.go:655–660  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

653}
654
655func (tl *tokenList) current() *token {
656 if len(tl.tokens) > 0 {
657 return (*token)(&(tl.tokens[0]))
658 }
659 return nil
660}
661
662func (tl *tokenList) length() int {
663 return len(tl.tokens)

Callers 7

parsePatternFunction · 0.80
parseArgvFunction · 0.80
parseExprFunction · 0.80
parseSeqFunction · 0.80
parseAtomFunction · 0.80
parseLongFunction · 0.80
parseShortsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected