pub struct File {
pub id: u32,
pub module_id: String,
pub name: String,
pub display_path: String,
pub source: String,
pub items: Vec<Expression>,
}Fields§
§id: u32§module_id: String§name: StringStable bare filename (e.g. greet.lis); identity key for caching and
LSP path reconstruction.
display_path: StringCwd-relative path for diagnostics and --debug directives; equals
name for synthetic/test loaders that have no notion of cwd.
source: String§items: Vec<Expression>Implementations§
Source§impl File
impl File
pub fn new( module_id: &str, name: &str, display_path: &str, source: &str, items: Vec<Expression>, id: u32, ) -> Self
pub fn new_cached( module_id: &str, name: &str, display_path: &str, source: &str, id: u32, ) -> Self
pub fn is_d_lis(&self) -> bool
pub fn is_lis(&self) -> bool
pub fn imports(&self) -> Vec<FileImport>
pub fn go_filename(&self) -> String
Trait Implementations§
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnsafeUnpin for File
impl UnwindSafe for File
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more