BoolType returns a type named in honor of George Boole.
()
| 120 | |
| 121 | // BoolType returns a type named in honor of George Boole. |
| 122 | func BoolType() ast.ApplyFn { |
| 123 | return NewUnionType(NewSingletonType(ast.TrueConstant), NewSingletonType(ast.FalseConstant)) |
| 124 | } |
| 125 | |
| 126 | // IsListTypeExpression returns true if tpe is a ListType. |
| 127 | func IsListTypeExpression(tpe ast.BaseTerm) bool { |
no test coverage detected