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

Function createTableParamDetailsState

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

Source from the content-addressed store, hash-verified

389}
390
391func createTableParamDetailsState(l *lexer) state {
392 l.start = l.pos
393 for {
394 c := l.next()
395
396 if c == coma || c == rprn {
397 l.rewind()
398 l.emit(TColumnDetails)
399 if c == coma {
400 l.next()
401 }
402
403 return createTableParamState
404 }
405
406 if l.hasPrefix("COMMENT ") {
407 l.pos += 7
408 l.accept(whitespace)
409 if !eatString(l) {
410 l.emit(TIllegal)
411 return nil
412 }
413 }
414
415 if l.hasPrefix("DEFAULT ") {
416 l.pos += 7
417 l.accept(whitespace)
418 eatString(l)
419 }
420 }
421}
422
423func eatNumber(l *lexer) bool {
424 if l.hasPrefix("-") {

Callers

nothing calls this directly

Calls 6

eatStringFunction · 0.85
nextMethod · 0.80
rewindMethod · 0.80
emitMethod · 0.80
hasPrefixMethod · 0.80
acceptMethod · 0.80

Tested by

no test coverage detected