17 lines
453 B
JavaScript
17 lines
453 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = addComment;
|
|
|
|
var _addComments = _interopRequireDefault(require("./addComments"));
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
function addComment(node, type, content, line) {
|
|
return (0, _addComments.default)(node, type, [{
|
|
type: line ? "CommentLine" : "CommentBlock",
|
|
value: content
|
|
}]);
|
|
} |