lib/token-store/index.js
function getAdjacentCommentTokensFromCursor(cursor) {
    const tokens = [];
    let currentToken = cursor.getOneToken();

    while (currentToken && astUtils.isCommentToken(currentToken)) {
        tokens.push(currentToken);
        currentToken = cursor.getOneToken();
    }

    return tokens;
}
function getAdjacentCommentTokensFromCursor(cursor) {
    const tokens = [];
    let currentToken = cursor.getOneToken();

    while (currentToken && astUtils.isCommentToken(currentToken)) {
        tokens.push(currentToken);
        currentToken = cursor.getOneToken();
    }

    return tokens;
}
function getAdjacentCommentTokensFromCursor ( cursor ) { const tokens = [ ] ; let currentToken = cursor . getOneToken ( ) ; while ( currentToken && astUtils . isCommentToken ( currentToken ) ) { tokens . push ( currentToken ) ; currentToken = cursor . getOneToken ( ) ; } return tokens ; }
Gets comment tokens that are adjacent to the current cursor position.
@param {Cursor} cursor - A cursor instance.
@returns {Array} An array of comment tokens adjacent to the current cursor position.
@private
Gets comment tokens that are adjacent to the current cursor position .