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

Function createTableParamTypeEnumValuesState

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

Source from the content-addressed store, hash-verified

328}
329
330func createTableParamTypeEnumValuesState(l *lexer) state {
331 if l.accept([]byte{lprn}) != 1 {
332 l.emit(TIllegal)
333 return nil
334 }
335
336 l.start = l.pos
337 for {
338 if eatString(l) {
339 l.emit(TColumnEnumVal)
340 }
341
342 c := l.next()
343 if c == rprn {
344 return createTableParamDetailsState
345 }
346
347 if c != coma {
348 l.emit(TIllegal)
349 return nil
350 }
351
352 l.start = l.pos
353 }
354}
355
356func createTableParamTypeSizeState(l *lexer) state {
357 if l.accept([]byte{lprn}) != 1 {

Callers

nothing calls this directly

Calls 4

eatStringFunction · 0.85
acceptMethod · 0.80
emitMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected