syster-base 0.1.12-alpha

Core library for SysML v2 and KerML parsing, AST, and semantic analysis
Documentation
1
2
3
4
5
6
7
8
9
10
//! Trait for abstracting over parsed file types without depending on syntax layer

/// A trait for parsed files that can provide import information
///
/// This trait allows the semantic layer to work with parsed files
/// without directly depending on the syntax layer's concrete types.
pub trait ParsedFile: std::fmt::Debug {
    /// Extracts import statements from the file
    fn extract_imports(&self) -> Vec<String>;
}