summaryrefslogtreecommitdiff
path: root/chromium/third_party/node/node_modules/@babel/types/lib/comments/addComment.js
blob: de19ab74e84300e4d4037331679958a379b21be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = addComment;

var _addComments = require("./addComments");

function addComment(node, type, content, line) {
  return (0, _addComments.default)(node, type, [{
    type: line ? "CommentLine" : "CommentBlock",
    value: content
  }]);
}