NewSingletonType returns a new SingletonType.
(d ast.Constant)
| 115 | |
| 116 | // NewSingletonType returns a new SingletonType. |
| 117 | func NewSingletonType(d ast.Constant) ast.ApplyFn { |
| 118 | return newTypeExpr(SingletonType, d) |
| 119 | } |
| 120 | |
| 121 | // BoolType returns a type named in honor of George Boole. |
| 122 | func BoolType() ast.ApplyFn { |