(sql: string, i: number)
| 128 | } |
| 129 | |
| 130 | function scanBracketQuotedIdentifier(sql: string, i: number): SQLToken | null { |
| 131 | if (sql[i] !== "[") { return null; } |
| 132 | let j = i + 1; |
| 133 | while (j < sql.length) { |
| 134 | if (sql[j] === "]" && sql[j + 1] === "]") { j += 2; } |
| 135 | else if (sql[j] === "]") { j++; break; } |
| 136 | else { j++; } |
| 137 | } |
| 138 | return { type: TokenType.QuotedBlock, end: j }; |
| 139 | } |
| 140 | |
| 141 | function scanTokenAnsi(sql: string, i: number): SQLToken { |
| 142 | return scanSingleLineComment(sql, i) |
no outgoing calls
no test coverage detected