lammps-analyser 0.1.0-pre-release-3

A CLI tool and language server for LAMMPS simulation input scripts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::Display;

pub trait FileNameReport {
    /// Simply output a string that is printed to the screen.
    fn make_file_name_report(&self, filename: &str) -> String;
}

pub trait LspDiagnostic: Display {
    /// Convert the error into an LSP Diagnostic
    /// If the report requires more information than is on the type and the source code,
    /// it may be better to add an inherent method that creates the diagnostic.
    fn make_lsp_report(&self, text: &str) -> lsp_types::Diagnostic;
}