function getEndWithSpaces(token, sourceCode) {
	const text = sourceCode.text;
	let end = token.range[1];

	// Detect spaces after the token.
	while (ANY_SPACE.test(text[end] || "")) {
		end += 1;
	}

	return end;
}
Get the range of a given token and around whitespaces.
@param {Token} token The token to get range.
@param {SourceCode} sourceCode The source code object to get tokens.
@returns {number} The start of the range of the token and around whitespaces.