IsFunTypeExpression returns true if tpe is a UnionType.
(tpe ast.BaseTerm)
| 143 | |
| 144 | // IsFunTypeExpression returns true if tpe is a UnionType. |
| 145 | func IsFunTypeExpression(tpe ast.BaseTerm) bool { |
| 146 | op := typeOp(tpe) |
| 147 | return op != nil && op.Symbol == FunType.Symbol |
| 148 | } |
| 149 | |
| 150 | // IsUnionTypeExpression returns true if tpe is a UnionType. |
| 151 | func IsUnionTypeExpression(tpe ast.BaseTerm) bool { |
no test coverage detected