code: function getLastTokenOnLine(node) {
              const lastToken = sourceCode.getLastToken(node);
              const secondToLastToken = sourceCode.getTokenBefore(lastToken);
  
              return astUtils.isSemicolonToken(lastToken) && lastToken.loc.start.line > secondToLastToken.loc.end.line
                  ? secondToLastToken
                  : lastToken;
          }
docs: Gets the last token of a node that is on the same line as the rest of the node.
  This will usually be the last token of the node, but it will be the second-to-last token if the node has a trailing
  semicolon on a different line.
  @param {ASTNode} node A directive node
  @returns {Token} The last token of the node on the line