NewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed.
(expr TypedExpr, locale string)
| 541 | |
| 542 | // NewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed. |
| 543 | func NewTypedCollateExpr(expr TypedExpr, locale string) *CollateExpr { |
| 544 | node := &CollateExpr{ |
| 545 | Expr: expr, |
| 546 | Locale: locale, |
| 547 | } |
| 548 | node.typ = types.MakeCollatedString(types.String, locale) |
| 549 | return node |
| 550 | } |
| 551 | |
| 552 | // NewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed. |
| 553 | func NewTypedArrayFlattenExpr(input Expr) *ArrayFlatten { |
nothing calls this directly
no test coverage detected