mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-18 20:15:38 +00:00
26 lines
699 B
JavaScript
26 lines
699 B
JavaScript
// NOTICE: This file is generated by Rollup. To modify it,
|
|
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
|
'use strict';
|
|
|
|
const isSharedLineComment = require('./isSharedLineComment.cjs');
|
|
|
|
/**
|
|
* @param {import('postcss').Node} node
|
|
* @returns {boolean}
|
|
*/
|
|
function isAfterSingleLineComment(node) {
|
|
const prevNode = node.prev();
|
|
|
|
return (
|
|
prevNode !== undefined &&
|
|
prevNode.type === 'comment' &&
|
|
!isSharedLineComment(prevNode) &&
|
|
prevNode.source !== undefined &&
|
|
prevNode.source.start !== undefined &&
|
|
prevNode.source.end !== undefined &&
|
|
prevNode.source.start.line === prevNode.source.end.line
|
|
);
|
|
}
|
|
|
|
module.exports = isAfterSingleLineComment;
|