There's a switch on node type that makes sure the transformed contents get rewritten into the same node type as it previously was. api/set-node? was missing from this list, causing sets to fall into the default case and get rewritten as lists. Ex:
(constantly (contains? #{"x" "y" "z"} :a))
gets rewritten as
(constantly (contains? ("z" "x" "y") :a))
And this will cause a confusing linting error where it's saying that string is not a function.
Addresses #4
There's a switch on node type that makes sure the transformed contents get rewritten into the same node type as it previously was.
api/set-node?
was missing from this list, causing sets to fall into the default case and get rewritten as lists. Ex:gets rewritten as
And this will cause a confusing linting error where it's saying that string is not a function.