Skip to content

Use a specific kind of set with JavaParser nodes

Slice#toAst() uses a HashSet to list the nodes included per compilation unit, which does not work properly, as nodes with that represent equal but different instructions (x++ in two different locations) clash in the set.

Edited by Carlos Galindo