Trait moore_common::source::SourceFile
source · [−]pub trait SourceFile {
fn get_id(&self) -> Source;
fn get_path(&self) -> RcStr;
fn get_content(&self) -> Rc<dyn SourceContent>;
fn extract(&self, begin: usize, end: usize) -> String { ... }
}
Required methods
fn get_content(&self) -> Rc<dyn SourceContent>
fn get_content(&self) -> Rc<dyn SourceContent>
Obtain the content of this source file. The returned object may be used to iterate over the characters in the file or extract portions of it.