MCPcopy
hub / github.com/tomnomnom/gron / backup

Method backup

ungron.go:81–83  ·  view source on GitHub ↗

backup moves the lexer back one rune can only be used once per call of next()

()

Source from the content-addressed store, hash-verified

79// backup moves the lexer back one rune
80// can only be used once per call of next()
81func (l *lexer) backup() {
82 l.pos -= l.width
83}
84
85// peek returns the next rune in the input
86// without moving the internal pointer

Callers 7

peekMethod · 0.95
acceptMethod · 0.95
acceptRunMethod · 0.95
acceptFuncMethod · 0.95
acceptRunFuncMethod · 0.95
acceptUntilMethod · 0.95
acceptUntilUnescapedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected