(m expr.TokenPager)
| 149 | } |
| 150 | |
| 151 | func discardComments(m expr.TokenPager) { |
| 152 | |
| 153 | for { |
| 154 | // We are going to loop until we find the first Non-Comment Token |
| 155 | switch m.Cur().T { |
| 156 | case lex.TokenComment, lex.TokenCommentML, |
| 157 | lex.TokenCommentStart, lex.TokenCommentHash, lex.TokenCommentEnd, |
| 158 | lex.TokenCommentSingleLine, lex.TokenCommentSlashes: |
| 159 | // discard |
| 160 | m.Next() |
| 161 | default: |
| 162 | // first non-comment token |
| 163 | return |
| 164 | } |
| 165 | |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | // First keyword was SELECT, so use the SELECT parser rule-set |
| 170 | func (m *Sqlbridge) parseSqlSelect() (*SqlSelect, error) { |
no test coverage detected