function getClassHeadLocation(node, sourceCode) {
	const {body} = node;
	const tokenBeforeBody = sourceCode.getTokenBefore(body);

	const {start} = sourceCode.getLoc(node);
	const {end} = sourceCode.getLoc(tokenBeforeBody);

	return {start, end};
}
@typedef {line: number, column: number} Position

Get the location of the given class node for reporting.

@param {Node} node - The class node to get.
@param {SourceCode} sourceCode - The source code object to get tokens.
@returns {{start: Position, end: Position}} The location of the class node for reporting.