NewMod node constructor
(Variable node.Node, Expression node.Node)
| 17 | |
| 18 | // NewMod node constructor |
| 19 | func NewMod(Variable node.Node, Expression node.Node) *Mod { |
| 20 | return &Mod{ |
| 21 | FreeFloating: nil, |
| 22 | Left: Variable, |
| 23 | Right: Expression, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | // SetPosition sets node position |
| 28 | func (n *Mod) SetPosition(p *position.Position) { |