Skip to content

Commit

Permalink
Record declared variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alrz committed Jul 1, 2021
1 parent 1f700ea commit 76ec83b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ private void NoteDeclaredPatternVariables(BoundPattern pattern)
}
}
break;
case BoundListPattern list:
{
if (list.Variable?.Kind == SymbolKind.Local)
{
_variablesDeclared.Add(list.Variable);
}
}
break;
}
}
}
Expand Down

0 comments on commit 76ec83b

Please sign in to comment.