IsRelTypeExpression returns true if tpe is a RelType.
(tpe ast.BaseTerm)
| 155 | |
| 156 | // IsRelTypeExpression returns true if tpe is a RelType. |
| 157 | func IsRelTypeExpression(tpe ast.BaseTerm) bool { |
| 158 | op := typeOp(tpe) |
| 159 | return op != nil && op.Symbol == RelType.Symbol |
| 160 | } |
| 161 | |
| 162 | // ListTypeArg returns the type argument of a ListType. |
| 163 | func ListTypeArg(tpe ast.BaseTerm) (ast.BaseTerm, error) { |