NewOrderBy creates OrderBy
(location *NodeLocation, sortItems []*SortItem)
| 24 | |
| 25 | // NewOrderBy creates OrderBy |
| 26 | func NewOrderBy(location *NodeLocation, sortItems []*SortItem) *OrderBy { |
| 27 | return &OrderBy{ |
| 28 | NewNode(location), |
| 29 | sortItems, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | // Accept accepts visitor |
| 34 | func (n *OrderBy) Accept(visitor AstVisitor, ctx interface{}) interface{} { |