php-parser/comment/comment.go

14 lines
255 B
Go
Raw Normal View History

2018-01-02 22:12:28 +00:00
package comment
2018-01-08 22:30:28 +00:00
import "github.com/z7zmey/php-parser/node"
2018-01-02 22:12:28 +00:00
type Comment interface {
String() string
}
2018-01-08 22:30:28 +00:00
type Comments map[node.Node][]Comment
func (c Comments) AddComments(node node.Node, comments []Comment) {
c[node] = append(c[node], comments...)
}