function getExpectedDotArrows(source) {
	expectedPattern.lastIndex = 0;

	const retv = [];
	let m;

	while ((m = expectedPattern.exec(source)) !== null) {
		retv.push(m[1].replace(lineEndingPattern, "\n"));
	}

	return retv;
}
Extracts the content of `/*expected` comments from a given source code.
It's expected DOT arrows.
@param {string} source A source code text.
@returns {string[]} DOT arrows.