mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-18 12:05:32 +00:00
26 lines
853 B
JavaScript
26 lines
853 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 getPreviousNonSharedLineCommentNode = require('./getPreviousNonSharedLineCommentNode.cjs');
|
|
const isCustomProperty = require('./isCustomProperty.cjs');
|
|
const typeGuards = require('./typeGuards.cjs');
|
|
const isStandardSyntaxDeclaration = require('./isStandardSyntaxDeclaration.cjs');
|
|
|
|
/**
|
|
* @param {import('postcss').Node} node
|
|
* @returns {boolean}
|
|
*/
|
|
function isAfterStandardPropertyDeclaration(node) {
|
|
const prevNode = getPreviousNonSharedLineCommentNode(node);
|
|
|
|
return (
|
|
prevNode !== undefined &&
|
|
typeGuards.isDeclaration(prevNode) &&
|
|
isStandardSyntaxDeclaration(prevNode) &&
|
|
!isCustomProperty(prevNode.prop || '')
|
|
);
|
|
}
|
|
|
|
module.exports = isAfterStandardPropertyDeclaration;
|