From 0f4e890ec355c96be16eb4de68b961838d8e4750 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Tue, 25 Mar 2025 11:46:28 +1300 Subject: Fix misleading variable name This stage previously operated on semantic tokens, but was later changed to operate on syntactic tokens. --- src/stages/compiler.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stages/compiler.rs b/src/stages/compiler.rs index 7dad5e4..5ec0652 100644 --- a/src/stages/compiler.rs +++ b/src/stages/compiler.rs @@ -35,7 +35,7 @@ pub fn push_code(compilation: &mut String, source_file: &SourceFile) { } -// Extract symbol definitions from a list of semantic tokens. +// Extract symbol definitions from a list of syntactic tokens. pub struct SymbolParser { pub symbols: Vec, } @@ -54,8 +54,8 @@ impl SymbolParser { self.symbols.push(Symbol { name, namespace, source, role }); } - pub fn parse(mut self, semantic: &[Tracked]) -> Vec { - for token in semantic { + pub fn parse(mut self, syntactic: &[Tracked]) -> Vec { + for token in syntactic { match &token.value { SyntacticToken::MacroDefinition(definition) => { self.record_symbol( -- cgit v1.2.3-70-g09d2