MCPcopy Index your code
hub / github.com/prettier/prettier / isAllEmptyAndNoLineBreak

Function isAllEmptyAndNoLineBreak

src/main/comments/attach.js:264–264  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

262}
263
264const isAllEmptyAndNoLineBreak = (text) => !/[\S\n\u2028\u2029]/.test(text);
265function isOwnLineComment(text, options, decoratedComments, commentIndex) {
266 const { comment, precedingNode } = decoratedComments[commentIndex];
267 const { locStart, locEnd } = options;

Callers 2

isOwnLineCommentFunction · 0.85
isEndOfLineCommentFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…