unprocessed_assignments rename

This commit is contained in:
Greg Shuflin 2024-06-03 15:54:20 -07:00
parent 9f965094ba
commit 61f7ab33c6

View File

@ -19,7 +19,7 @@ impl<'src> Analyzer<'src> {
let mut recipes = Vec::new();
let mut assignments = Vec::new();
let mut unprocessed_assignments = Vec::new();
let mut stack = Vec::new();
stack.push(asts.get(root).unwrap());
@ -65,7 +65,7 @@ impl<'src> Analyzer<'src> {
analyzer.aliases.insert(alias.clone());
}
Item::Assignment(assignment) => {
assignments.push(assignment);
unprocessed_assignments.push(assignment);
}
Item::Comment(_) => (),
Item::Import { absolute, .. } => {
@ -99,7 +99,7 @@ impl<'src> Analyzer<'src> {
let mut recipe_table: Table<'src, UnresolvedRecipe<'src>> = Table::default();
for assignment in assignments {
for assignment in unprocessed_assignments {
if !settings.allow_duplicate_variables
&& analyzer.assignments.contains_key(assignment.name.lexeme())
{