Function syntax::parse::file_to_filemapUnstable [-] [+] [src]

pub fn file_to_filemap(sess: &ParseSess, path: &Path, spanopt: Option<Span>) -> Rc<FileMap>

Given a session and a path and an optional span (for error reporting), add the path to the session's codemap and return the new filemap.