function removeNewlineBetween(firstToken,secondToken){var textRange=[firstToken.range[1],secondToken.range[0]];var textBetween=sourceCode.text.slice(textRange[0],textRange[1]);var NEWLINE_REGEX=astUtils.createGlobalLinebreakMatcher();// Don't do a fix if there is a comment between the tokens
return function(fixer){return fixer.replaceTextRange(textRange,textBetween.trim()?null:textBetween.replace(NEWLINE_REGEX,""));};}
Fixes a place where a newline unexpectedly appears
@param {Token} firstToken The token before the unexpected newline
@param {Token} secondToken The token after the unexpected newline
@returns {Function} A fixer function to remove the newlines between the tokens