persona-community-5/.pnpm-store/v3/files/10/251494d2e61a556eb98af4c05c59d9d10898de5c4c04dca79e4760a089edda69c33fbafeb7b5803ec60356d87380c6c402317f123e5b84abdde1ebfd023b93
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

17 lines
930 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTextWithParentheses = getTextWithParentheses;
const _1 = require(".");
function getTextWithParentheses(sourceCode, node) {
// Capture parentheses before and after the node
let beforeCount = 0;
let afterCount = 0;
if ((0, _1.isParenthesized)(node, sourceCode)) {
const bodyOpeningParen = (0, _1.nullThrows)(sourceCode.getTokenBefore(node, _1.isOpeningParenToken), _1.NullThrowsReasons.MissingToken('(', 'node'));
const bodyClosingParen = (0, _1.nullThrows)(sourceCode.getTokenAfter(node, _1.isClosingParenToken), _1.NullThrowsReasons.MissingToken(')', 'node'));
beforeCount = node.range[0] - bodyOpeningParen.range[0];
afterCount = bodyClosingParen.range[1] - node.range[1];
}
return sourceCode.getText(node, beforeCount, afterCount);
}
//# sourceMappingURL=getTextWithParentheses.js.map