@@ -26,7 +26,7 @@ heuristic for: [Props, x], give loc of `x`
26
26
n1:Props n2:name
27
27
{"contents": "```rescript\nstring\n```"}
28
28
29
- Hover src/Hover.res 41:13
29
+ Hover src/Hover.res 42:15
30
30
getLocItem #7: heuristic for JSX on type-annotated labeled (~arg:t):
31
31
(~arg:t) becomes Props#arg
32
32
Props has the location range of arg:t
@@ -35,84 +35,84 @@ heuristic for: [Props, arg], give loc of `arg`
35
35
n1:Props n2:name
36
36
{"contents": "```rescript\nstring\n```"}
37
37
38
- Hover src/Hover.res 44 :10
38
+ Hover src/Hover.res 46 :10
39
39
{"contents": "```rescript\nint\n```"}
40
40
41
- Hover src/Hover.res 47 :13
41
+ Hover src/Hover.res 49 :13
42
42
{"contents": "```rescript\nmodule Logger = {\n let log: string => unit\n}\n```"}
43
43
44
- Hover src/Hover.res 52 :7
44
+ Hover src/Hover.res 54 :7
45
45
{"contents": "```rescript\nmodule Logger = {\n let log: string => unit\n}\n```"}
46
46
47
- Definition src/Hover.res 58 :14
48
- {"uri": "Hover.res", "range": {"start": {"line": 47 , "character": 12}, "end": {"line": 47 , "character": 18}}}
47
+ Definition src/Hover.res 60 :14
48
+ {"uri": "Hover.res", "range": {"start": {"line": 49 , "character": 12}, "end": {"line": 49 , "character": 18}}}
49
49
50
- Hover src/Hover.res 61 :9
50
+ Hover src/Hover.res 63 :9
51
51
{"contents": "```rescript\nmodule IdDefinedTwice = {\n let y: int\n let _x: int\n}\n```"}
52
52
53
- Hover src/Hover.res 72 :7
53
+ Hover src/Hover.res 74 :7
54
54
{"contents": "```rescript\nmodule A = {\n let x: int\n}\n```"}
55
55
56
- Hover src/Hover.res 75 :7
56
+ Hover src/Hover.res 77 :7
57
57
{"contents": "```rescript\nmodule A = {\n let x: int\n}\n```"}
58
58
59
- Hover src/Hover.res 89 :10
59
+ Hover src/Hover.res 91 :10
60
60
Nothing at that position. Now trying to use completion.
61
- posCursor:[89 :10] posNoWhite:[89 :8] Found expr:[86 :3->89 :9]
62
- JSX <Comp:[86 :3->86 :7] > _children:86 :7
61
+ posCursor:[91 :10] posNoWhite:[91 :8] Found expr:[88 :3->91 :9]
62
+ JSX <Comp:[88 :3->88 :7] > _children:88 :7
63
63
null
64
64
65
- Hover src/Hover.res 96 :10
65
+ Hover src/Hover.res 98 :10
66
66
Nothing at that position. Now trying to use completion.
67
- posCursor:[96 :10] posNoWhite:[96 :9] Found expr:[93 :3->96 :10]
68
- JSX <Comp1:[93 :3->93 :8] > _children:93 :8
67
+ posCursor:[98 :10] posNoWhite:[98 :9] Found expr:[95 :3->98 :10]
68
+ JSX <Comp1:[95 :3->95 :8] > _children:95 :8
69
69
null
70
70
71
- Hover src/Hover.res 101 :25
71
+ Hover src/Hover.res 103 :25
72
72
{"contents": "```rescript\nfloat\n```"}
73
73
74
- Hover src/Hover.res 104 :21
74
+ Hover src/Hover.res 106 :21
75
75
{"contents": "```rescript\nint\n```"}
76
76
77
- Hover src/Hover.res 114 :16
77
+ Hover src/Hover.res 116 :16
78
78
{"contents": "```rescript\nAA.cond<[< #str(string)]> => AA.cond<[< #str(string)]>\n```"}
79
79
80
- Hover src/Hover.res 117 :25
80
+ Hover src/Hover.res 119 :25
81
81
{"contents": "```rescript\nAA.cond<[< #str(string)]> => AA.cond<[< #str(string)]>\n```"}
82
82
83
- Hover src/Hover.res 120 :3
83
+ Hover src/Hover.res 122 :3
84
84
Nothing at that position. Now trying to use completion.
85
- Attribute id:live:[120 :0->120 :5] label:live
85
+ Attribute id:live:[122 :0->122 :5] label:live
86
86
Completable: Cdecorator(live)
87
87
{"contents": "The `@live` decorator is for reanalyze, a static analysis tool for ReScript that can do dead code analysis.\n\n`@live` tells the dead code analysis that the value should be considered live, even though it might appear to be dead. This is typically used in case of FFI where there are indirect ways to access values. It can be added to everything that could otherwise be considered unused by the dead code analysis - values, functions, arguments, records, individual record fields, and so on.\n\n[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#live-decorator).\n\nHint: Did you know you can run an interactive code analysis in your project by running the command `> ReScript: Start Code Analyzer`? Try it!"}
88
88
89
- Hover src/Hover.res 123 :4
89
+ Hover src/Hover.res 125 :4
90
90
{"contents": "```rescript\n(. ()) => unit => int\n```"}
91
91
92
- Hover src/Hover.res 129 :4
92
+ Hover src/Hover.res 131 :4
93
93
{"contents": "```rescript\n(. ()) => (. ()) => int\n```"}
94
94
95
- Hover src/Hover.res 132 :4
95
+ Hover src/Hover.res 134 :4
96
96
{"contents": "```rescript\n(. unit, unit) => int\n```"}
97
97
98
- Hover src/Hover.res 135 :5
98
+ Hover src/Hover.res 137 :5
99
99
{"contents": "```rescript\n(. ()) => unit => int\n```"}
100
100
101
- Hover src/Hover.res 142 :9
101
+ Hover src/Hover.res 144 :9
102
102
{"contents": "```rescript\nint\n```\n\ndoc comment 1"}
103
103
104
- Hover src/Hover.res 146 :6
104
+ Hover src/Hover.res 148 :6
105
105
{"contents": "```rescript\nint\n```\n\n doc comment 2 "}
106
106
107
- Hover src/Hover.res 163 :23
107
+ Hover src/Hover.res 165 :23
108
108
{"contents": "```rescript\nfoo<bar>\n```\n\n```rescript\ntype foo<'a> = {content: 'a, zzz: string}\n```"}
109
109
110
- Hover src/Hover.res 165 :22
110
+ Hover src/Hover.res 167 :22
111
111
{"contents": "```rescript\nfoobar\n```\n\n```rescript\ntype foobar = foo<bar>\n```"}
112
112
113
- Complete src/Hover.res 168 :16
114
- posCursor:[168 :16] posNoWhite:[168 :15] Found expr:[168 :5->168 :16]
115
- Pexp_field [168 :5->168 :15] _:[174 :2->168 :16]
113
+ Complete src/Hover.res 170 :16
114
+ posCursor:[170 :16] posNoWhite:[170 :15] Found expr:[170 :5->170 :16]
115
+ Pexp_field [170 :5->170 :15] _:[176 :2->170 :16]
116
116
Completable: Cpath Value[x1].content.""
117
117
[{
118
118
"label": "age",
@@ -122,9 +122,9 @@ Completable: Cpath Value[x1].content.""
122
122
"documentation": null
123
123
}]
124
124
125
- Complete src/Hover.res 171 :16
126
- posCursor:[171 :16] posNoWhite:[171 :15] Found expr:[171 :5->171 :16]
127
- Pexp_field [171 :5->171 :15] _:[174 :2->171 :16]
125
+ Complete src/Hover.res 173 :16
126
+ posCursor:[173 :16] posNoWhite:[173 :15] Found expr:[173 :5->173 :16]
127
+ Pexp_field [173 :5->173 :15] _:[176 :2->173 :16]
128
128
Completable: Cpath Value[x2].content.""
129
129
[{
130
130
"label": "age",
@@ -134,9 +134,9 @@ Completable: Cpath Value[x2].content.""
134
134
"documentation": null
135
135
}]
136
136
137
- Complete src/Hover.res 180 :16
138
- posCursor:[180 :16] posNoWhite:[180 :15] Found expr:[180 :5->180 :16]
139
- Pexp_field [180 :5->180 :15] _:[185 :0->180 :16]
137
+ Complete src/Hover.res 182 :16
138
+ posCursor:[182 :16] posNoWhite:[182 :15] Found expr:[182 :5->182 :16]
139
+ Pexp_field [182 :5->182 :15] _:[187 :0->182 :16]
140
140
Completable: Cpath Value[y1].content.""
141
141
[{
142
142
"label": "age",
@@ -146,9 +146,9 @@ Completable: Cpath Value[y1].content.""
146
146
"documentation": null
147
147
}]
148
148
149
- Complete src/Hover.res 183 :16
150
- posCursor:[183 :16] posNoWhite:[183 :15] Found expr:[183 :5->183 :16]
151
- Pexp_field [183 :5->183 :15] _:[185 :0->183 :16]
149
+ Complete src/Hover.res 185 :16
150
+ posCursor:[185 :16] posNoWhite:[185 :15] Found expr:[185 :5->185 :16]
151
+ Pexp_field [185 :5->185 :15] _:[187 :0->185 :16]
152
152
Completable: Cpath Value[y2].content.""
153
153
[{
154
154
"label": "age",
0 commit comments