NewArrayItem node constructor
(Key node.Node, Val node.Node, Unpack bool)
| 18 | |
| 19 | // NewArrayItem node constructor |
| 20 | func NewArrayItem(Key node.Node, Val node.Node, Unpack bool) *ArrayItem { |
| 21 | return &ArrayItem{ |
| 22 | FreeFloating: nil, |
| 23 | Key: Key, |
| 24 | Val: Val, |
| 25 | Unpack: Unpack, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // SetPosition sets node position |
| 30 | func (n *ArrayItem) SetPosition(p *position.Position) { |