Found a case where we were generating duplicated template indexes. It was caused by us incrementing a value on the struct before visiting the nodes recursively and referencing the same property after recursing through the child AST nodes. The previous code didn't take into account that one of the visited children might increment the value when coming across a serializable subtree.
Found a case where we were generating duplicated template indexes. It was caused by us incrementing a value on the struct before visiting the nodes recursively and referencing the same property after recursing through the child AST nodes. The previous code didn't take into account that one of the visited children might increment the value when coming across a serializable subtree.