MCPcopy Create free account
hub / github.com/brimdata/super / readByte

Method readByte

sup/lexer.go:146–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144}
145
146func (l *Lexer) readByte() (byte, error) {
147 if err := l.check(1); err != nil {
148 return 0, err
149 }
150 b := l.cursor[0]
151 l.cursor = l.cursor[1:]
152 if b == '\n' {
153 l.line++
154 }
155 return b, nil
156}
157
158func (l *Lexer) peekRune() (rune, int, error) {
159 if !utf8.FullRune(l.cursor) {

Callers 3

skipMultiLineMethod · 0.95
scanStringMethod · 0.95
scanToCloseQuoteMethod · 0.95

Calls 1

checkMethod · 0.95

Tested by

no test coverage detected