php-parser/node/node.go

18 lines
400 B
Go
Raw Normal View History

2017-12-03 18:49:18 +00:00
package node
2018-06-24 07:19:44 +00:00
import (
"github.com/z7zmey/php-parser/meta"
2018-06-24 07:19:44 +00:00
"github.com/z7zmey/php-parser/position"
"github.com/z7zmey/php-parser/walker"
)
2018-01-17 16:58:45 +00:00
2018-01-11 17:33:25 +00:00
// Node interface
2017-12-31 10:59:22 +00:00
type Node interface {
2018-02-20 17:52:07 +00:00
walker.Walkable
2018-01-11 18:19:02 +00:00
Attributes() map[string]interface{} // Attributes returns node attributes as map
2018-06-24 07:19:44 +00:00
SetPosition(p *position.Position)
GetPosition() *position.Position
AddMeta(m []meta.Meta)
GetMeta() []meta.Meta
2017-12-31 09:57:55 +00:00
}