init: archlens — architecture diagram generator
Some checks failed
CI / Check / Test (push) Failing after 1m24s
Some checks failed
CI / Check / Test (push) Failing after 1m24s
Hex arch + DDD, tree-sitter parsing, Mermaid/ASCII output. Supports Rust + Python. 92 tests. CI, diff, --check for staleness detection.
This commit is contained in:
21
crates/domain/src/value_objects/source/source_file.rs
Normal file
21
crates/domain/src/value_objects/source/source_file.rs
Normal file
@@ -0,0 +1,21 @@
|
||||
use crate::{FilePath, Language};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct SourceFile {
|
||||
path: FilePath,
|
||||
language: Language,
|
||||
}
|
||||
|
||||
impl SourceFile {
|
||||
pub fn new(path: FilePath, language: Language) -> Self {
|
||||
Self { path, language }
|
||||
}
|
||||
|
||||
pub fn path(&self) -> &FilePath {
|
||||
&self.path
|
||||
}
|
||||
|
||||
pub fn language(&self) -> Language {
|
||||
self.language
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user