elixir-tools / spitfire

Error tolerant parser for Elixir
https://www.elixir-tools.dev
MIT License
69 stars 7 forks source link

bug: node could be dropped in certain circumstances #25

Closed mhanberg closed 3 months ago

mhanberg commented 4 months ago

Description

The following code snippet seemed to drop the __cursor__() node from the result.

"def handle_call({:foo, foo}, _from, state) do\n    {:reply, :ok,\n     %{state |\n        foo: s\n__cursor__()\n,\n        bar: Foo.Bar.load(state.foo, state.baz)}}\n  end\n"
mhanberg commented 3 months ago

Fixed by df7732f00c5a38cb7b52c98a0698e68928dd4581