code: function isCollapsedOneLiner(node) {
              const before = sourceCode.getTokenBefore(node);
              const last = sourceCode.getLastToken(node);
              const lastExcludingSemicolon = astUtils.isSemicolonToken(last) ? sourceCode.getTokenBefore(last) : last;
  
              return before.loc.start.line === lastExcludingSemicolon.loc.end.line;
          }
docs: -------------------------------------------------------------------------- Helpers -------------------------------------------------------------------------- 
  Determines if a given node is a one-liner that's on the same line as it's preceding code.
  @param {ASTNode} node The node to check.
  @returns {boolean} True if the node is a one-liner that's on the same line as it's preceding code.
  @private