ErrorInvalidOperator creates an error for an invalid operator. This is used when an operator token has invalid syntax, such as: - Incomplete multi-character operators - Invalid operator combinations Parameters: - value: The invalid operator string - location: Position where the operator started R
(value string, location models.Location)
| 147 | // |
| 148 | // Example: "invalid operator: <=> at line 1, column 20" |
| 149 | func ErrorInvalidOperator(value string, location models.Location) *Error { |
| 150 | return NewError(fmt.Sprintf("invalid operator: %s", value), location) |
| 151 | } |