prettier-plugin-awk
Version:
[](https://github.com/Beaglefoot/prettier-plugin-awk/actions/workflows/tests.yml) [](https://www.npmjs
11 lines • 502 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.doesCommentBelongToNode = void 0;
function doesCommentBelongToNode(node) {
if (!node.previousNamedSibling || node.type !== 'comment')
return false;
return (node.previousNamedSibling.startPosition.row <= node.startPosition.row &&
node.previousNamedSibling.endPosition.row >= node.startPosition.row);
}
exports.doesCommentBelongToNode = doesCommentBelongToNode;
//# sourceMappingURL=utils.js.map
;