MCPcopy Create free account
hub / github.com/donatj/sqlread / LexSection

Function LexSection

scanner.go:191–198  ·  view source on GitHub ↗
(input io.ReaderAt, off, n int64)

Source from the content-addressed store, hash-verified

189}
190
191func LexSection(input io.ReaderAt, off, n int64) (*lexer, chan LexItem) {
192 l := &lexer{
193 input: io.NewSectionReader(input, off, n),
194 items: make(chan LexItem, 2000000),
195 }
196
197 return l, l.items
198}
199
200func (l *lexer) emit(t lexItemType) LexItem {
201 b := make([]byte, l.pos-l.start)

Callers 1

execQueryFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected