2025-04-15 16:39:47 +02:00

25 lines
429 B
JavaScript

'use strict';
const utils = require('./utils');
const LineComment = require('./line');
/**
* Create a new BlockComment
*
* @param {String} `str` string of JavaScript
* @param {Object} `token` Parsed AST token
*/
class BlockComment extends LineComment {
constructor(str, token) {
super(str, token);
this.value = utils.stripStars(this.raw);
}
}
/**
* expose `BlockComment`
*/
module.exports = BlockComment;