TextSourceFile

Creates an in-memory TextSourceFile from given ref and content and returns it.