lib/rules/padding-line-between-statements.js
function isDirectivePrologue(node, sourceCode) {
    if (isDirective(node, sourceCode)) {
        for (const sibling of node.parent.body) {
            if (sibling === node) {
                break;
            }
            if (!isDirective(sibling, sourceCode)) {
                return false;
            }
        }
        return true;
    }
    return false;
}
function isDirectivePrologue(node, sourceCode) {
    if (isDirective(node, sourceCode)) {
        for (const sibling of node.parent.body) {
            if (sibling === node) {
                break;
            }
            if (!isDirective(sibling, sourceCode)) {
                return false;
            }
        }
        return true;
    }
    return false;
}
function isDirectivePrologue ( node , sourceCode ) { if ( isDirective ( node , sourceCode ) ) { for ( const sibling of node . parent . body ) { if ( sibling === node ) { break ; } if ( ! isDirective ( sibling , sourceCode ) ) { return false ; } } return true ; } return false ; }
Check whether the given node is a part of directive prologue or not.
@param {ASTNode} node The node to check.
@param {SourceCode} sourceCode The source code object to get tokens.
@returns {boolean} `true` if the node is a part of directive prologue.
Check whether the given node is a part of directive prologue or not .