12 lines
324 B
Go
12 lines
324 B
Go
package comment
|
|
|
|
import "github.com/z7zmey/php-parser/node"
|
|
|
|
// Comments a collection of comment groups assigned to nodes
|
|
type Comments map[node.Node][]*Comment
|
|
|
|
// AddComments add comment group to the collection
|
|
func (c Comments) AddComments(node node.Node, comments []*Comment) {
|
|
c[node] = append(c[node], comments...)
|
|
}
|