NewReference node constructor
(Variable node.Node)
| 16 | |
| 17 | // NewReference node constructor |
| 18 | func NewReference(Variable node.Node) *Reference { |
| 19 | return &Reference{ |
| 20 | FreeFloating: nil, |
| 21 | Variable: Variable, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // SetPosition sets node position |
| 26 | func (n *Reference) SetPosition(p *position.Position) { |