(self)
| 1142 | |
| 1143 | impl ExprOrSource { |
| 1144 | pub fn into_ast(self) -> sql_ast::Expr { |
| 1145 | match self { |
| 1146 | ExprOrSource::Expr(ast) => *ast, |
| 1147 | ExprOrSource::Source(SourceExpr { text: source, .. }) => { |
| 1148 | // The s-string hack |
| 1149 | sql_ast::Expr::Identifier(sql_ast::Ident::new(source)) |
| 1150 | } |
| 1151 | } |
| 1152 | } |
| 1153 | |
| 1154 | pub fn into_source(self) -> String { |
| 1155 | match self { |
no outgoing calls
no test coverage detected