NewUnionType returns a new UnionType.
(elems ...ast.BaseTerm)
| 110 | |
| 111 | // NewUnionType returns a new UnionType. |
| 112 | func NewUnionType(elems ...ast.BaseTerm) ast.ApplyFn { |
| 113 | return newTypeExpr(UnionType, elems...) |
| 114 | } |
| 115 | |
| 116 | // NewSingletonType returns a new SingletonType. |
| 117 | func NewSingletonType(d ast.Constant) ast.ApplyFn { |