Mercurial > yakumo_izuru > aya
annotate vendor/github.com/yosssi/gcss/comment.go @ 75:84270933ac8d draft
The Emperor (IV)
* `aya help` is provided by aya.PrintUsage() now
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
| author | yakumo.izuru |
|---|---|
| date | Mon, 04 Dec 2023 02:21:03 +0000 |
| parents | 787b5ee0289d |
| children |
| rev | line source |
|---|---|
| 66 | 1 package gcss |
| 2 | |
| 3 import "io" | |
| 4 | |
| 5 // comment represents a comment of CSS. | |
| 6 type comment struct { | |
| 7 elementBase | |
| 8 } | |
| 9 | |
| 10 // WriteTo does nothing. | |
| 11 func (c *comment) WriteTo(w io.Writer) (int64, error) { | |
| 12 return 0, nil | |
| 13 } | |
| 14 | |
| 15 // newComment creates and returns a comment. | |
| 16 func newComment(ln *line, parent element) *comment { | |
| 17 return &comment{ | |
| 18 elementBase: newElementBase(ln, parent), | |
| 19 } | |
| 20 } |
