pub fn get_fixes<'db>(
db: &'db dyn Database,
linter_params: &LinterDiagnosticParams,
diagnostics: Vec<SemanticDiagnostic<'db>>,
) -> HashMap<FileId<'db>, Vec<DiagnosticFixSuggestion>>Expand description
Gets the fixes for a set of a compiler diagnostics (that uses Cairo lint analyzer plugin).
§Arguments
db- The reference to the database.diagnostics- The list of all compiler diagnostics including those coming from the cairo-lint plugin.
§Returns
A HashMap where:
- keys are FileIds (that points to a file that the fixes might be applied to).
- values are vectors of proposed Fixes.