В дополнение к предыдущему

This commit is contained in:
Mikhalkovich Stanislav 2021-01-28 16:38:02 +03:00
parent ee27ca7136
commit 27ca018cb1

View file

@ -37,6 +37,14 @@ namespace PascalABCCompiler.TreeConverter
public override void visit(function_lambda_definition fld)
{
InLambda = true;
// Исключить все параметры из idents
foreach (var fid in fld.ident_list.idents)
{
var ind = idents.FindIndex(x => string.Compare(x.name, fid.name, true) == 0);
if (ind != -1)
idents.RemoveAt(ind);
}
ProcessNode(fld.proc_body);
}