comment method

Comment comment ()

Comments are collected by the main parsing mechanism and then assigned to nodes where the current structure allows it

CSS comments:

/* */

LeSS comments:

//

Implementation

Comment comment() {
  if (parserInput.commentStore.isNotEmpty) {
    final CommentPointer comment = parserInput.commentStore.removeAt(0);
    return Comment(comment.text,
        isLineComment: comment.isLineComment,
        index: comment.index,
        currentFileInfo: context.currentFileInfo);
  }
  return null;

//2.2.0
//  comment: function () {
//      if (parserInput.commentStore.length) {
//          var comment = parserInput.commentStore.shift();
//          return new(tree.Comment)(comment.text, comment.isLineComment, comment.index, fileInfo);
//      }
//  }
}