File tree Expand file tree Collapse file tree 1 file changed +3
-40
lines changed
tests/test-dirs/refactor-open Expand file tree Collapse file tree 1 file changed +3
-40
lines changed Original file line number Diff line number Diff line change 1
- Works for in-file modules
1
+ Can unqualify module located in the same file
2
2
$ $ MERLIN single refactor-open -action unqualify -position 4 : 6 << EOF
3
3
> module M = struct
4
4
> let u = ()
@@ -24,7 +24,7 @@ Works for in-file modules
24
24
" notifications" : []
25
25
}
26
26
27
- Works for in-file nested modules
27
+ Can unqualify nested modules located in the same file
28
28
29
29
$ $ MERLIN single refactor-open -action unqualify -position 6 : 6 << EOF
30
30
> module M = struct
@@ -53,44 +53,7 @@ Works for in-file nested modules
53
53
" notifications" : []
54
54
}
55
55
56
- Works for stdlib modules (stdlib modules differ from other in-file modules because their
57
- full path is different)
58
-
59
- $ $ MERLIN single refactor-open -action unqualify -position 1 : 6 << EOF
60
- > open Unix
61
- > let times = Unix. times ()
62
- > EOF
63
- {
64
- " class" : " return" ,
65
- " value" : [
66
- {
67
- " start" : {
68
- " line" : 2 ,
69
- " col" : 12
70
- },
71
- " end" : {
72
- " line" : 2 ,
73
- " col" : 22
74
- },
75
- " content" : " times"
76
- }
77
- ],
78
- " notifications" : []
79
- }
80
-
81
- Shouldn't return anything, as nothing to unqualify
82
-
83
- $ $ MERLIN single refactor-open -action unqualify -position 1 : 6 << EOF
84
- > open Unix
85
- > let times = times ()
86
- > EOF
87
- {
88
- " class" : " return" ,
89
- " value" : [],
90
- " notifications" : []
91
- }
92
-
93
- Shouldn't return anything, as nothing to unqualify for multiline paths
56
+ Shouldn't return anything, as nothing to unqualify (for multiline identifiers)
94
57
95
58
$ $ MERLIN single refactor-open -action unqualify -position 1 : 6 << EOF
96
59
> open Unix
You can’t perform that action at this time.
0 commit comments