Project

General

Profile

« Previous | Next » 

Revision c6464c44

Added by jeremyevans (Jeremy Evans) about 6 years ago

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.