unprocessed_assignments rename
This commit is contained in:
parent
9f965094ba
commit
61f7ab33c6
@ -19,7 +19,7 @@ impl<'src> Analyzer<'src> {
|
|||||||
|
|
||||||
let mut recipes = Vec::new();
|
let mut recipes = Vec::new();
|
||||||
|
|
||||||
let mut assignments = Vec::new();
|
let mut unprocessed_assignments = Vec::new();
|
||||||
|
|
||||||
let mut stack = Vec::new();
|
let mut stack = Vec::new();
|
||||||
stack.push(asts.get(root).unwrap());
|
stack.push(asts.get(root).unwrap());
|
||||||
@ -65,7 +65,7 @@ impl<'src> Analyzer<'src> {
|
|||||||
analyzer.aliases.insert(alias.clone());
|
analyzer.aliases.insert(alias.clone());
|
||||||
}
|
}
|
||||||
Item::Assignment(assignment) => {
|
Item::Assignment(assignment) => {
|
||||||
assignments.push(assignment);
|
unprocessed_assignments.push(assignment);
|
||||||
}
|
}
|
||||||
Item::Comment(_) => (),
|
Item::Comment(_) => (),
|
||||||
Item::Import { absolute, .. } => {
|
Item::Import { absolute, .. } => {
|
||||||
@ -99,7 +99,7 @@ impl<'src> Analyzer<'src> {
|
|||||||
|
|
||||||
let mut recipe_table: Table<'src, UnresolvedRecipe<'src>> = Table::default();
|
let mut recipe_table: Table<'src, UnresolvedRecipe<'src>> = Table::default();
|
||||||
|
|
||||||
for assignment in assignments {
|
for assignment in unprocessed_assignments {
|
||||||
if !settings.allow_duplicate_variables
|
if !settings.allow_duplicate_variables
|
||||||
&& analyzer.assignments.contains_key(assignment.name.lexeme())
|
&& analyzer.assignments.contains_key(assignment.name.lexeme())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user