(l *lexer)
| 90 | } |
| 91 | |
| 92 | func (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 | |
| 136 | func (intp *Intp) selectIntpState(l *lexer) state { |
| 137 | l.start = l.pos |
nothing calls this directly
no test coverage detected