aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xixanta/src/lib.rs')
-rw-r--r--lib/xixanta/src/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/xixanta/src/lib.rs b/lib/xixanta/src/lib.rs
index 2da8fd0..ce9be6d 100644
--- a/lib/xixanta/src/lib.rs
+++ b/lib/xixanta/src/lib.rs
@@ -1,16 +1,20 @@
#[macro_use]
extern crate lazy_static;
+/// Information for a file that has been parsed/assembled.
#[derive(Clone, Debug, PartialEq)]
pub struct SourceInfo {
- pub working_directory: std::path::PathBuf,
+ /// Directory where the file is located.
+ pub directory: std::path::PathBuf,
+
+ /// Friendly name for the given file.
pub name: String,
}
impl Default for SourceInfo {
fn default() -> Self {
SourceInfo {
- working_directory: std::env::current_dir().unwrap().to_path_buf(),
+ directory: std::env::current_dir().unwrap().to_path_buf(),
name: "".to_string(),
}
}