Skip to content

Commit

Permalink
remove shortened name
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink committed Dec 26, 2023
1 parent 7d4b465 commit 0cc6085
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zap/src/parser/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,28 @@ pub fn convert(syntax_config: SyntaxConfig<'_>) -> (Config<'_>, Vec<Diagnostic<(

let config = syntax_config.into_config(&mut state);

(config, state.into_daigs())
(config, state.into_diagnostics())
}

struct ConvertState<'src> {
daigs: Vec<Diagnostic<()>>,
diagnostics: Vec<Diagnostic<()>>,
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<Diagnostic<()>> {
self.daigs
fn into_diagnostics(self) -> Vec<Diagnostic<()>> {
self.diagnostics
}

fn tydecl_exists(&self, name: &'src str) -> bool {
Expand Down

0 comments on commit 0cc6085

Please sign in to comment.