(factory ExprFactory, id int64, c *exprpb.Constant)
| 200 | } |
| 201 | |
| 202 | func exprLiteral(factory ExprFactory, id int64, c *exprpb.Constant) (Expr, error) { |
| 203 | val, err := ConstantToVal(c) |
| 204 | if err != nil { |
| 205 | return nil, err |
| 206 | } |
| 207 | return factory.NewLiteral(id, val), nil |
| 208 | } |
| 209 | |
| 210 | func exprIdent(factory ExprFactory, id int64, i *exprpb.Expr_Ident) (Expr, error) { |
| 211 | return factory.NewIdent(id, i.GetName()), nil |
no test coverage detected