@@ -49,10 +49,16 @@ Hover src/Hover.res 77:7
49
49
{"contents": {"kind": "markdown", "value": "```rescript\nmodule A: {\n let x: int\n}\n```"}}
50
50
51
51
Hover src/Hover.res 91:10
52
+ Nothing at that position. Now trying to use completion.
53
+ posCursor:[91:10] posNoWhite:[91:8] Found expr:[88:2->91:9]
54
+ JSX <Comp:[88:3->88:7] > _children:89:4
52
55
null
53
56
54
57
Hover src/Hover.res 98:10
55
- {"contents": {"kind": "markdown", "value": "```rescript\nReact.element\n```"}}
58
+ Nothing at that position. Now trying to use completion.
59
+ posCursor:[98:10] posNoWhite:[98:9] Found expr:[95:2->98:10]
60
+ JSX <Comp1:[95:3->95:8] > _children:96:4
61
+ null
56
62
57
63
Hover src/Hover.res 103:25
58
64
{"contents": {"kind": "markdown", "value": "```rescript\nfloat\n```"}}
@@ -67,7 +73,12 @@ Hover src/Hover.res 119:25
67
73
{"contents": {"kind": "markdown", "value": "```rescript\nAA.cond<([< #str(string)] as 'a)> => AA.cond<'a>\n```\n\n---\n\n```\n \n```\n```rescript\ntype AA.cond<'a> = 'a\n constraint 'a = [< #str(string)]\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C110%2C2%5D)\n"}}
68
74
69
75
Hover src/Hover.res 122:3
70
- null
76
+ Nothing at that position. Now trying to use completion.
77
+ Attribute id:live:[122:0->122:5] label:live
78
+ Completable: Cdecorator(live)
79
+ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
80
+ Resolved opens 1 Stdlib
81
+ {"contents": {"kind": "markdown", "value": "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!"}}
71
82
72
83
Hover src/Hover.res 125:4
73
84
{"contents": {"kind": "markdown", "value": "```rescript\nunit => unit => int\n```"}}
@@ -88,10 +99,10 @@ Hover src/Hover.res 148:6
88
99
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n---\n doc comment 2 "}}
89
100
90
101
Hover src/Hover.res 165:23
91
- {"contents": {"kind": "markdown", "value": "```rescript\nfoo<bar>\n```\n\n---\n\n```\n \n```\n```rescript\ntype foo<'a> = {content: 'a, zzz: string}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C161%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype bar = {age: int}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C162%2C2%5D)\n "}}
102
+ {"contents": {"kind": "markdown", "value": "```rescript\nfoo<bar>\n```"}}
92
103
93
104
Hover src/Hover.res 167:22
94
- {"contents": {"kind": "markdown", "value": "```rescript\nfoobar\n```\n\n---\n\n```\n \n```\n```rescript\ntype foobar = foo<bar>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C163%2C2%5D)\n "}}
105
+ {"contents": {"kind": "markdown", "value": "```rescript\nfoobar\n```"}}
95
106
96
107
Complete src/Hover.res 170:16
97
108
posCursor:[170:16] posNoWhite:[170:15] Found expr:[170:5->170:16]
@@ -236,7 +247,17 @@ Hover src/Hover.res 202:16
236
247
{"contents": {"kind": "markdown", "value": "```rescript\nuseR\n```"}}
237
248
238
249
Hover src/Hover.res 210:13
239
- null
250
+ Nothing at that position. Now trying to use completion.
251
+ posCursor:[210:13] posNoWhite:[210:12] Found expr:[210:11->210:14]
252
+ Pexp_ident usr:[210:11->210:14]
253
+ Completable: Cpath Value[usr]
254
+ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
255
+ Resolved opens 1 Stdlib
256
+ ContextPath Value[usr]
257
+ Path usr
258
+ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
259
+ Resolved opens 1 Stdlib
260
+ {"contents": {"kind": "markdown", "value": "```rescript\nuseR\n```\n\n---\n\n```\n \n```\n```rescript\ntype useR = {x: int, y: list<option<r<float>>>}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C200%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype r<'a> = {i: 'a, f: float}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C101%2C0%5D)\n"}}
240
261
241
262
Hover src/Hover.res 230:20
242
263
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n---\n More Stuff "}}
@@ -245,7 +266,23 @@ Hover src/Hover.res 233:17
245
266
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n---\n More Stuff "}}
246
267
247
268
Hover src/Hover.res 245:6
248
- null
269
+ Nothing at that position. Now trying to use completion.
270
+ posCursor:[245:6] posNoWhite:[245:5] Found expr:[245:3->245:14]
271
+ Pexp_field [245:3->245:4] someField:[245:5->245:14]
272
+ Completable: Cpath Value[x].someField
273
+ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
274
+ Resolved opens 1 Stdlib
275
+ ContextPath Value[x].someField
276
+ ContextPath Value[x]
277
+ Path x
278
+ ContextPath Value[x]->someField
279
+ ContextPath Value[x]
280
+ Path x
281
+ CPPipe pathFromEnv: found:true
282
+ Path Hover.someField
283
+ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
284
+ Resolved opens 1 Stdlib
285
+ {"contents": {"kind": "markdown", "value": " Mighty fine field here. \n\n```rescript\nbool\n```"}}
249
286
250
287
Hover src/Hover.res 248:19
251
288
{"contents": {"kind": "markdown", "value": "```rescript\nbool\n```\n---\n Mighty fine field here. "}}
@@ -254,10 +291,34 @@ Hover src/Hover.res 253:20
254
291
{"contents": {"kind": "markdown", "value": "```rescript\nvariant\n```\n\n---\n\n```\n \n```\n```rescript\ntype variant = CoolVariant | OtherCoolVariant\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C251%2C0%5D)\n\n---\n```rescript\nCoolVariant\n```\n---\n Cool variant! "}}
255
292
256
293
Hover src/Hover.res 257:23
257
- null
294
+ Nothing at that position. Now trying to use completion.
295
+ posCursor:[257:23] posNoWhite:[257:22] Found expr:[257:22->257:25]
296
+ Pexp_ident fff:[257:22->257:25]
297
+ Completable: Cpath Value[fff]
298
+ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
299
+ Resolved opens 1 Stdlib
300
+ ContextPath Value[fff]
301
+ Path fff
302
+ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
303
+ Resolved opens 1 Stdlib
304
+ ContextPath string
305
+ {"contents": {"kind": "markdown", "value": "```rescript\nstring\n```"}}
258
306
259
307
Hover src/Hover.res 260:33
260
- null
308
+ Nothing at that position. Now trying to use completion.
309
+ posCursor:[260:33] posNoWhite:[260:32] Found expr:[260:31->260:40]
310
+ Pexp_ident someField:[260:31->260:40]
311
+ Completable: Cpath Value[someField]
312
+ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
313
+ Resolved opens 1 Stdlib
314
+ ContextPath Value[someField]
315
+ Path someField
316
+ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
317
+ Resolved opens 1 Stdlib
318
+ ContextPath CPatternPath(Value[x])->recordField(someField)
319
+ ContextPath Value[x]
320
+ Path x
321
+ {"contents": {"kind": "markdown", "value": "```rescript\nbool\n```"}}
261
322
262
323
Hover src/Hover.res 263:8
263
324
{"contents": {"kind": "markdown", "value": "\n [`Belt.Array`]()\n\n **mutable array**: Utilities functions\n\n```rescript\nmodule Array: {\n module Id\n module Array\n module SortArray\n module MutableQueue\n module MutableStack\n module List\n module Range\n module Set\n module Map\n module MutableSet\n module MutableMap\n module HashSet\n module HashMap\n module Option\n module Result\n module Int\n module Float\n}\n```"}}
0 commit comments