1
0
mirror of https://github.com/strongdm/comply synced 2024-11-05 07:25:26 +00:00
comply/vendor/github.com/yosssi/ace/comment.go
2018-05-15 14:13:11 -07:00

26 lines
503 B
Go

package ace
import "io"
// comment represents a comment.
type comment struct {
elementBase
}
// Do nothing.
func (e *comment) WriteTo(w io.Writer) (int64, error) {
return 0, nil
}
// ContainPlainText returns true.
func (e *comment) ContainPlainText() bool {
return true
}
// newComment creates and returns a comment.
func newComment(ln *line, rslt *result, src *source, parent element, opts *Options) *comment {
return &comment{
elementBase: newElementBase(ln, rslt, src, parent, opts),
}
}