diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-09-04 12:00:25 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-09-05 09:57:43 -0700 |
commit | c6464c44c02fdbb597ca8027af0bc0db28d56f66 (patch) | |
tree | 4dd58e5df6c2da614521896bcda233566f0be769 /node.c | |
parent | 1d5066efb08cbb328ba528a5f8be1708584b659f (diff) | |
download | ruby-c6464c44c02fdbb597ca8027af0bc0db28d56f66.tar.gz |
Fix code locations of array node inside hash node when multiple kw splats
This is broken at least since 2.5 (I didn't check earlier versions).
It resulted in failure in test_ast.rb when the tests were added before
the parser change.
Basically, in remove_duplicate_keys, if the node is modified, set
the location information to the previous location information. The
removal of keys should not affect the location in the code.
Diffstat (limited to 'node.c')
0 files changed, 0 insertions, 0 deletions