NewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed.
(expr TypedExpr, locale string)
| 464 | |
| 465 | // NewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed. |
| 466 | func NewTypedCollateExpr(expr TypedExpr, locale string) *CollateExpr { |
| 467 | node := &CollateExpr{ |
| 468 | Expr: expr, |
| 469 | Locale: locale, |
| 470 | } |
| 471 | node.typ = types.MakeCollatedString(types.String, locale) |
| 472 | return node |
| 473 | } |
| 474 | |
| 475 | // NewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed. |
| 476 | func NewTypedArrayFlattenExpr(input Expr) *ArrayFlatten { |
nothing calls this directly
no test coverage detected
searching dependent graphs…