Returns a reference to the set of locations in the SQL query where this expression appears, if known. [`None`] is returned if the expression type doesn't support tracking locations yet.
(&self)
| 2258 | /// expression appears, if known. [`None`] is returned if the expression |
| 2259 | /// type doesn't support tracking locations yet. |
| 2260 | pub fn spans(&self) -> Option<&Spans> { |
| 2261 | match self { |
| 2262 | Expr::Column(col) => Some(&col.spans), |
| 2263 | _ => None, |
| 2264 | } |
| 2265 | } |
| 2266 | |
| 2267 | /// Check if the Expr is literal and get the literal value if it is. |
| 2268 | pub fn as_literal(&self) -> Option<&ScalarValue> { |
no outgoing calls
no test coverage detected