PutCastExpression returns a CastExpression to the pool
(ce *CastExpression)
| 1277 | |
| 1278 | // PutCastExpression returns a CastExpression to the pool |
| 1279 | func PutCastExpression(ce *CastExpression) { |
| 1280 | if ce == nil { |
| 1281 | return |
| 1282 | } |
| 1283 | PutExpression(ce.Expr) |
| 1284 | ce.Expr = nil |
| 1285 | ce.Type = "" |
| 1286 | castExprPool.Put(ce) |
| 1287 | } |
| 1288 | |
| 1289 | // GetIntervalExpression gets an IntervalExpression from the pool |
| 1290 | func GetIntervalExpression() *IntervalExpression { |