UNPKG

prettier-plugin-awk

Version:

[![tests](https://github.com/Beaglefoot/prettier-plugin-awk/actions/workflows/tests.yml/badge.svg)](https://github.com/Beaglefoot/prettier-plugin-awk/actions/workflows/tests.yml) [![npm](https://img.shields.io/npm/v/prettier-plugin-awk)](https://www.npmjs

11 lines 502 B
"use strict"; 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