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

Function eatString

states.go:444–453  ·  view source on GitHub ↗
(l *lexer)

Source from the content-addressed store, hash-verified

442}
443
444func eatString(l *lexer) bool {
445 delim := l.next()
446 l.rewind()
447
448 if delim != sq && delim != dq {
449 return false
450 }
451
452 return eatDelimStr(l, delim)
453}
454
455func eatDelimStr(l *lexer, delim byte) bool {
456 first := l.next()

Callers 5

insertRowStateFunction · 0.85
createTableExtraFunction · 0.85

Calls 3

eatDelimStrFunction · 0.85
nextMethod · 0.80
rewindMethod · 0.80

Tested by

no test coverage detected