NewTypedOrExpr returns a new OrExpr that is verified to be well-typed.
(left, right TypedExpr)
| 220 | |
| 221 | // NewTypedOrExpr returns a new OrExpr that is verified to be well-typed. |
| 222 | func NewTypedOrExpr(left, right TypedExpr) *OrExpr { |
| 223 | node := &OrExpr{Left: left, Right: right} |
| 224 | node.typ = types.Bool |
| 225 | return node |
| 226 | } |
| 227 | |
| 228 | // TypedLeft returns the OrExpr's left expression as a TypedExpr. |
| 229 | func (node *OrExpr) TypedLeft() TypedExpr { |