Refactor logic for renamer._get_word_boundaries_in_line() to give the closest word start and end positions relative to the received position in the line. Move function to utils.get_word_boundaries_in_line() and make tests for the new logic.
Closes: GH-43
Proposed changes
refactor renamer._get_word_boundaries_in_line() and move to utils.get_word_boundaries_in_line()
Test plan
New test cases are defined in lua/tests/utils_spec.lua.
Motivation
Refactor logic for
renamer._get_word_boundaries_in_line()
to give the closest word start and end positions relative to the received position in the line. Move function toutils.get_word_boundaries_in_line()
and make tests for the new logic.Closes: GH-43
Proposed changes
renamer._get_word_boundaries_in_line()
and move toutils.get_word_boundaries_in_line()
Test plan
New test cases are defined in
lua/tests/utils_spec.lua
.