function getAllComments() {
			const comments = [];

			sourceCode.getAllComments().forEach(commentNode => {
				const containingNode = sourceCode.getNodeByRangeIndex(
					commentNode.range[0],
				);

				if (isJSXEmptyExpressionInSingleLineContainer(containingNode)) {
					// push a unique node only
					if (comments.at(-1) !== containingNode.parent) {
						comments.push(containingNode.parent);
					}
				} else {
					comments.push(commentNode);
				}
			});

			return comments;
		}
Returns an array of all comments in the source code.
If the element in the array is a JSXEmptyExpression contained with a single line JSXExpressionContainer,
the element is changed with JSXExpressionContainer node.
@returns {ASTNode[]} An array of comment nodes