1 package org.daisy.pipeline.css.sass.impl;
2
3 class Comment {
4
5 final String text;
6 final int column;
7
8 // FIXME: take into account column number of first line of the document
9
10 /**
11 * @param column Position of the comment's {@code /*} opening within the stylesheet document, as
12 * a 0-based column number.
13 */
14 Comment(String text, int column) {
15 this.text = text;
16 this.column = column;
17 }
18
19 Comment(Comment comment) {
20 this(comment.text, comment.column);
21 }
22
23 @Override
24 public String toString() {
25 return "/*" + text + "*/";
26 }
27 }