terraform/config/lang/ast/call.go

21 lines
241 B
Go
Raw Normal View History

2015-01-11 22:03:37 +01:00
package ast
// Call represents a function call.
type Call struct {
Func string
Args []Node
2015-01-12 09:28:47 +01:00
Posx Pos
2015-01-11 22:03:37 +01:00
}
2015-01-12 00:26:54 +01:00
func (n *Call) Accept(v Visitor) {
for _, a := range n.Args {
a.Accept(v)
}
v(n)
}
2015-01-12 09:28:47 +01:00
func (n *Call) Pos() Pos {
return n.Posx
}