PutBinaryExpression returns a BinaryExpression to the pool
(expr *BinaryExpression)
| 738 | |
| 739 | // PutBinaryExpression returns a BinaryExpression to the pool |
| 740 | func PutBinaryExpression(expr *BinaryExpression) { |
| 741 | if expr == nil { |
| 742 | return |
| 743 | } |
| 744 | PutExpression(expr.Left) |
| 745 | PutExpression(expr.Right) |
| 746 | expr.Left = nil |
| 747 | expr.Right = nil |
| 748 | expr.Operator = "" |
| 749 | binaryExprPool.Put(expr) |
| 750 | } |
| 751 | |
| 752 | // GetExpressionSlice gets a slice of Expression from the pool |
| 753 | func GetExpressionSlice() *[]Expression { |