import{isComment as e,isRoot as r}from"./typeGuards.mjs";import o from"./getNextNonSharedLineCommentNode.mjs";import n from"./getPreviousNonSharedLineCommentNode.mjs";function t(e,r){return(e&&e.source&&e.source.end&&e.source.end.line)===(r&&r.source&&r.source.start&&r.source.start.line)}function s(s){if(!e(s))return!1;if(t(n(s),s))return!0;const i=o(s);if(i&&t(s,i))return!0;const u=s.parent;return void 0!==u&&!r(u)&&0===u.index(s)&&void 0!==s.raws.before&&!s.raws.before.includes("\n")}export{s as default};