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

Method showColumnsIntpState

interpreter.go:92–134  ·  view source on GitHub ↗
(l *lexer)

Source from the content-addressed store, hash-verified

90}
91
92func (intp *Intp) showColumnsIntpState(l *lexer) state {
93 l.pos += 7
94 l.emit(TIntpShowColumns)
95
96 if l.accept(whitespace) < 1 {
97 l.emit(TIllegal)
98 return nil
99 }
100
101 l.start = l.pos
102
103 if !l.hasPrefixI("FROM") {
104 l.emit(TIllegal)
105 return nil
106 }
107 l.pos += 4
108 l.emit(TIntpFrom)
109
110 if l.accept(whitespace) < 1 {
111 l.emit(TIllegal)
112 return nil
113 }
114
115 l.start = l.pos
116
117 if eatIdentifier(l) {
118 l.emit(TIdentifier)
119 } else {
120 l.emit(TIllegal)
121 return nil
122 }
123
124 l.accept(whitespace)
125 l.start = l.pos
126
127 c := l.next()
128 if c != semi {
129 l.emit(TIllegal)
130 return nil
131 }
132
133 return nil
134}
135
136func (intp *Intp) selectIntpState(l *lexer) state {
137 l.start = l.pos

Callers

nothing calls this directly

Calls 5

eatIdentifierFunction · 0.85
emitMethod · 0.80
acceptMethod · 0.80
hasPrefixIMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected