Lines Matching refs:comments
57 comments : false, property
81 if (options.comments) {
82 var comments = options.comments;
83 if (typeof options.comments === "string" && /^\/.*\/[a-zA-Z]*$/.test(options.comments)) {
84 var regex_pos = options.comments.lastIndexOf("/");
85 comments = new RegExp(
86 options.comments.substr(1, regex_pos - 1),
87 options.comments.substr(regex_pos + 1)
90 if (comments instanceof RegExp) {
92 return comment.type != "comment5" && comments.test(comment.value);
94 } else if (typeof comments === "function") {
96 return comment.type != "comment5" && comments(this, comment);
98 } else if (comments === "some") {
274 || options.comments
502 var comments = dump(node);
503 if (!comments) comments = [];
509 if (before) comments = comments.concat(before);
516 if (comments.length > 0 && options.shebang && comments[0].type == "comment5") {
517 print("#!" + comments.shift().value + "\n");
524 comments = comments.filter(comment_filter, node);
526 comments.forEach(function(comment, index) {
538 var comments = token.comments_before;
539 if (!comments) {
541 token.comments_before = comments = [];
543 if (comments._dumped === self) return;
544 comments._dumped = self;
545 return comments;
553 var comments = token[tail ? "comments_before" : "comments_after"];
554 if (!comments || comments._dumped === self) return;
555 if (!(node instanceof AST_Statement || all(comments, function(c) {
558 comments._dumped = self;
559 comments.filter(comment_filter, node).forEach(function(comment, index) {
595 prepend_comments: options.comments || options.shebang ? prepend_comments : noop,
596 append_comments : options.comments ? append_comments : noop,