lib/rules/padding-line-between-statements.js
function getPaddingLineSequences(prevNode, nextNode) {
            const pairs = [];
            let prevToken = getActualLastToken(sourceCode, prevNode);

            if (nextNode.loc.start.line - prevToken.loc.end.line >= 2) {
                do {
                    const token = sourceCode.getTokenAfter(
                        prevToken,
                        { includeComments: true }
                    );

                    if (token.loc.start.line - prevToken.loc.end.line >= 2) {
                        pairs.push([prevToken, token]);
                    }
                    prevToken = token;

                } while (prevToken.range[0] < nextNode.range[0]);
            }

            return pairs;
        }
function getPaddingLineSequences(prevNode, nextNode) {
            const pairs = [];
            let prevToken = getActualLastToken(sourceCode, prevNode);

            if (nextNode.loc.start.line - prevToken.loc.end.line >= 2) {
                do {
                    const token = sourceCode.getTokenAfter(
                        prevToken,
                        { includeComments: true }
                    );

                    if (token.loc.start.line - prevToken.loc.end.line >= 2) {
                        pairs.push([prevToken, token]);
                    }
                    prevToken = token;

                } while (prevToken.range[0] < nextNode.range[0]);
            }

            return pairs;
        }
function getPaddingLineSequences ( prevNode , nextNode ) { const pairs = [ ] ; let prevToken = getActualLastToken ( sourceCode , prevNode ) ; if ( nextNode . loc . start . line - prevToken . loc . end . line >= 2 ) { do { const token = sourceCode . getTokenAfter ( prevToken , { includeComments : true } ) ; if ( token . loc . start . line - prevToken . loc . end . line >= 2 ) { pairs . push ( [ prevToken , token ] ) ; } prevToken = token ; } while ( prevToken . range [ 0 ] < nextNode . range [ 0 ] ) ; } return pairs ; }
Gets padding line sequences between the given 2 statements.
Comments are separators of the padding line sequences.

@param {ASTNode} prevNode The previous statement to count.
@param {ASTNode} nextNode The current statement to count.
@returns {Array<Token[]>} The array of token pairs.
@private
Gets padding line sequences between the given 2 statements . Comments are separators of the padding line sequences .