IsUnionTypeExpression returns true if tpe is a UnionType.
(tpe ast.BaseTerm)
| 149 | |
| 150 | // IsUnionTypeExpression returns true if tpe is a UnionType. |
| 151 | func IsUnionTypeExpression(tpe ast.BaseTerm) bool { |
| 152 | op := typeOp(tpe) |
| 153 | return op != nil && op.Symbol == UnionType.Symbol |
| 154 | } |
| 155 | |
| 156 | // IsRelTypeExpression returns true if tpe is a RelType. |
| 157 | func IsRelTypeExpression(tpe ast.BaseTerm) bool { |
no test coverage detected