isIdentifier checks if the current token is an identifier. Includes both regular identifiers and double-quoted identifiers. In SQL, double-quoted strings are treated as identifiers (e.g., "column_name").
()
| 907 | // Includes both regular identifiers and double-quoted identifiers. |
| 908 | // In SQL, double-quoted strings are treated as identifiers (e.g., "column_name"). |
| 909 | func (p *Parser) isIdentifier() bool { |
| 910 | return p.isType(models.TokenTypeIdentifier) || p.isType(models.TokenTypeDoubleQuotedString) |
| 911 | } |
| 912 | |
| 913 | // isStringLiteral checks if the current token is a string literal. |
| 914 | // Handles all string token subtypes (single-quoted, dollar-quoted, etc.) |
no test coverage detected