[−][src]Trait swc_common::FileLoader
An abstraction over the fs operations used by the Parser.
Required methods
pub fn file_exists(&self, path: &Path) -> bool
[src]
Query the existence of a file.
pub fn abs_path(&self, path: &Path) -> Option<PathBuf>
[src]
Return an absolute path to a file, if possible.
pub fn read_file(&self, path: &Path) -> Result<String>
[src]
Read the contents of an UTF-8 file into memory.