Sha256: 7a421e7c608ac0ca7790fd17a1abc2e48367f56eb1f99d4de6eeaaef99d7590d
Contents?: true
Size: 476 Bytes
Versions: 190
Compression:
Stored size: 476 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = addComments; function addComments(node, type, comments) { if (!comments || !node) return node; const key = `${type}Comments`; if (node[key]) { if (type === "leading") { node[key] = comments.concat(node[key]); } else { node[key].push(...comments); } } else { node[key] = comments; } return node; } //# sourceMappingURL=addComments.js.map
Version data entries
190 entries across 17 versions & 3 rubygems