File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/test-dirs/let-punning.t Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11Test Merlin's behavior in the presense of let-punning
22
3- $ function type_enclosing {
3+ $ type_enclosing () {
44 > $ MERLIN single type-enclosing -position " $1" -filename test. ml < test. ml | jq ' .value[0].type' -r
55 > }
66
7- $ function locate {
7+ $ locate () {
88 > res= $ ($ MERLIN single locate -position " $1" -filename test. ml < test. ml)
99 > if jq -e ' .value | type == "string"' << < "$res" > / dev/ null; then
1010 > # an error occurred, so print the error
@@ -16,7 +16,7 @@ Test Merlin's behavior in the presense of let-punning
1616 > fi
1717 > }
1818
19- $ function occurrences {
19+ $ occurrences () {
2020 > res= $ ($ MERLIN single occurrences -identifier-at " $1" -filename test. ml < test. ml)
2121 > jq -c . value [] <<< " $ res" | while read -r occurrence; do
2222 > line= $ (echo " $ occurrence" | jq . start. line)
You can’t perform that action at this time.
0 commit comments