Skip to content
Snippets Groups Projects
Commit fe456132 authored by Matt Wala's avatar Matt Wala
Browse files

UniqueVarNameGenerator: Add a brief explanatory comment.

parent 193ac637
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,9 @@ class _UniqueVarNameGenerator(UniqueNameGenerator):
# names by appending '_s<NUMBER>'. Make sure that no
# conflicts can arise from these names.
# Case 1: a_s0 is already a name, we are trying to insert a
# Case 2: a is already a name, we are trying to insert a_s0
if name in self.array_prefixes:
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment