qml_static_analyzer 0.2.0

A static analyzer for QML files
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! [`ParseError`] – the error type returned by the QML parser.
#[derive(Debug, PartialEq, Eq)]
pub struct ParseError {
    pub line: usize,
    pub message: String,
}
impl std::fmt::Display for ParseError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "Parse error at line {}: {}", self.line, self.message)
    }
}