lib/rules/switch-colon-spacing.js
function fix(fixer, left, right, spacing) {
            if (commentsExistBetween(left, right)) {
                return null;
            }
            if (spacing) {
                return fixer.insertTextAfter(left, " ");
            }
            return fixer.removeRange([left.range[1], right.range[0]]);
        }
function fix(fixer, left, right, spacing) {
            if (commentsExistBetween(left, right)) {
                return null;
            }
            if (spacing) {
                return fixer.insertTextAfter(left, " ");
            }
            return fixer.removeRange([left.range[1], right.range[0]]);
        }
function fix ( fixer , left , right , spacing ) { if ( commentsExistBetween ( left , right ) ) { return null ; } if ( spacing ) { return fixer . insertTextAfter ( left , " " ) ; } return fixer . removeRange ( [ left . range [ 1 ] , right . range [ 0 ] ] ) ; }
Fix the spacing between the given 2 tokens.
@param {RuleFixer} fixer The fixer to fix.
@param {Token} left The left token of fix range.
@param {Token} right The right token of fix range.
@param {boolean} spacing The spacing style. `true` if there should be a space.
@returns {Fix|null} The fix object.
Fix the spacing between the given 2 tokens .