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

26 lines
503 B
Go
Raw Normal View History

2018-05-15 21:13:11 +00:00
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),
}
}