package stmt import ( "github.com/z7zmey/php-parser/node" ) type HaltCompiler struct { name string attributes map[string]interface{} position *node.Position } func NewHaltCompiler() node.Node { return HaltCompiler{ "HaltCompiler", map[string]interface{}{}, nil, } } func (n HaltCompiler) Name() string { return "HaltCompiler" } func (n HaltCompiler) Attributes() map[string]interface{} { return n.attributes } func (n HaltCompiler) Attribute(key string) interface{} { return n.attributes[key] } func (n HaltCompiler) SetAttribute(key string, value interface{}) node.Node { n.attributes[key] = value return n } func (n HaltCompiler) Position() *node.Position { return n.position } func (n HaltCompiler) SetPosition(p *node.Position) node.Node { n.position = p return n } func (n HaltCompiler) Walk(v node.Visitor) { if v.EnterNode(n) == false { return } v.LeaveNode(n) }