Make ParsedSource::new pub

It will be used from main
This commit is contained in:
Henrik Hørlück Berg
2023-08-18 07:02:31 +02:00
committed by Fabian Boehm
parent 3777bc941f
commit cf8e0ae1b5

View File

@@ -114,7 +114,7 @@ unsafe impl Sync for ParsedSource {}
const _: () = assert_sync::<ParsedSource>();
impl ParsedSource {
fn new(src: WString, ast: Ast) -> Self {
pub fn new(src: WString, ast: Ast) -> Self {
let src_ffi = src.to_ffi();
ParsedSource { src, src_ffi, ast }
}