MCPcopy Create free account
hub / github.com/barnybug/cli53 / acceptRun

Method acceptRun

lexer.go:43–48  ·  view source on GitHub ↗
(pred func(rune) bool)

Source from the content-addressed store, hash-verified

41}
42
43func (l *lexer) acceptRun(pred func(rune) bool) string {
44 for pred(l.next()) {
45 }
46 l.backup()
47 return l.emit()
48}
49
50func (l *lexer) next() (rune rune) {
51 if l.pos >= len(l.input) {

Callers 1

ParseKeyValuesFunction · 0.80

Calls 3

nextMethod · 0.95
backupMethod · 0.95
emitMethod · 0.95

Tested by

no test coverage detected