function createSourceCode(text) {
	const ast = espree.parse(text, DEFAULT_CONFIG);

	Traverser.traverse(ast, {
		enter(node, parent) {
			node.parent = parent;
		},
	});

	return new SourceCode(text, ast);
}
Create a SourceCode instance from the given code. Also add parent pointers in
the AST so that parent traversals will work.
@param {string} text The text of the code.
@returns {SourceCode} The SourceCode.