code: function isOnSameLineWithNextToken(node) {
              const prevToken = sourceCode.getLastToken(node, 1);
              const nextToken = sourceCode.getTokenAfter(node);
  
              return !!nextToken && astUtils.isTokenOnSameLine(prevToken, nextToken);
          }
docs: Check whether a given node is on the same line with the next token.
  @param {Node} node A statement node to check.
  @returns {boolean} `true` if the node is on the same line with the next token.