diff --git a/zap/src/parser/convert.rs b/zap/src/parser/convert.rs index 38644b44..67ddad69 100644 --- a/zap/src/parser/convert.rs +++ b/zap/src/parser/convert.rs @@ -25,28 +25,28 @@ pub fn convert(syntax_config: SyntaxConfig<'_>) -> (Config<'_>, Vec { - daigs: Vec>, + diagnostics: Vec>, tydecls: HashSet<&'src str>, } impl<'src> ConvertState<'src> { fn new(tydecls: HashSet<&'src str>) -> Self { Self { - daigs: Vec::new(), + diagnostics: Vec::new(), tydecls, } } fn push_diag(&mut self, diag: Diagnostic<()>) { - self.daigs.push(diag); + self.diagnostics.push(diag); } - fn into_daigs(self) -> Vec> { - self.daigs + fn into_diagnostics(self) -> Vec> { + self.diagnostics } fn tydecl_exists(&self, name: &'src str) -> bool {