PutLiteralValue returns a LiteralValue to the pool
(lit *LiteralValue)
| 775 | |
| 776 | // PutLiteralValue returns a LiteralValue to the pool |
| 777 | func PutLiteralValue(lit *LiteralValue) { |
| 778 | if lit == nil { |
| 779 | return |
| 780 | } |
| 781 | |
| 782 | // Reset fields (Value is interface{}, use nil as zero value) |
| 783 | lit.Value = nil |
| 784 | lit.Type = "" |
| 785 | |
| 786 | // Return to pool |
| 787 | literalValuePool.Put(lit) |
| 788 | } |
| 789 | |
| 790 | // PutExpression returns any Expression to the appropriate pool with iterative cleanup. |
| 791 | // |