Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1277154

Browse files
committedNov 2, 2024·
Output changes that are ok
1 parent 8bd0c3a commit 1277154

33 files changed

+44
-430
lines changed
 

‎analysis/tests/src/expected/BrokenParserCases.res.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ posCursor:[2:24] posNoWhite:[2:23] Found expr:[2:11->2:30]
33
Pexp_apply ...[2:11->2:17] (~isOff2:19->2:24=...[2:27->2:29])
44
Completable: CnamedArg(Value[someFn], isOff, [isOff])
55
Package opens Pervasives.JsxModules.place holder
6-
Resolved opens 1 pervasives
76
ContextPath Value[someFn]
87
Path someFn
98
[]
@@ -12,7 +11,6 @@ Complete src/BrokenParserCases.res 6:17
1211
posCursor:[6:17] posNoWhite:[6:16] Found pattern:[6:16->6:19]
1312
Completable: Cpattern Value[s]=t
1413
Package opens Pervasives.JsxModules.place holder
15-
Resolved opens 1 pervasives
1614
ContextPath Value[s]
1715
Path s
1816
[]
@@ -23,7 +21,6 @@ posCursor:[10:29] posNoWhite:[10:27] Found pattern:[10:24->10:28]
2321
Ppat_construct None:[10:24->10:28]
2422
Completable: Cpath Value[None]
2523
Package opens Pervasives.JsxModules.place holder
26-
Resolved opens 1 pervasives
2724
ContextPath Value[None]
2825
Path None
2926
[]

‎analysis/tests/src/expected/CompletePrioritize1.res.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/CompletePrioritize1.res 5:6
22
posCursor:[5:6] posNoWhite:[5:5] Found expr:[5:3->0:-1]
33
Completable: Cpath Value[a]->
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[a]->
76
ContextPath Value[a]
87
Path a

‎analysis/tests/src/expected/CompletePrioritize2.res.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/CompletePrioritize2.res 9:7
22
posCursor:[9:7] posNoWhite:[9:6] Found expr:[9:3->0:-1]
33
Completable: Cpath Value[ax]->
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[ax]->
76
ContextPath Value[ax]
87
Path ax
@@ -23,7 +22,6 @@ posCursor:[12:5] posNoWhite:[12:4] Found expr:[12:3->12:5]
2322
Pexp_ident ax:[12:3->12:5]
2423
Completable: Cpath Value[ax]
2524
Package opens Pervasives.JsxModules.place holder
26-
Resolved opens 1 pervasives
2725
ContextPath Value[ax]
2826
Path ax
2927
[{

‎analysis/tests/src/expected/Completion.res.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ posCursor:[1:11] posNoWhite:[1:10] Found expr:[1:3->1:11]
33
Pexp_ident MyList.m:[1:3->1:11]
44
Completable: Cpath Value[MyList, m]
55
Package opens Pervasives.JsxModules.place holder
6-
Resolved opens 1 pervasives
76
ContextPath Value[MyList, m]
87
Path MyList.m
98
[{
@@ -79,7 +78,6 @@ posCursor:[3:9] posNoWhite:[3:8] Found expr:[3:3->3:9]
7978
Pexp_ident Array.:[3:3->3:9]
8079
Completable: Cpath Value[Array, ""]
8180
Package opens Pervasives.JsxModules.place holder
82-
Resolved opens 1 pervasives
8381
ContextPath Value[Array, ""]
8482
Path Array.
8583
[{

‎analysis/tests/src/expected/CompletionAttributes.res.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/CompletionAttributes.res 0:8
22
Attribute id:modu:[0:3->0:8] label:modu
33
Completable: Cdecorator(modu)
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
[{
76
"label": "module",
87
"kind": 4,
@@ -17,7 +16,6 @@ Complete src/CompletionAttributes.res 3:12
1716
XXX Not found!
1817
Completable: CdecoratorPayload(module=)
1918
Package opens Pervasives.JsxModules.place holder
20-
Resolved opens 1 pervasives
2119
[{
2220
"label": "@rescript/react",
2321
"kind": 4,
@@ -42,7 +40,6 @@ Complete src/CompletionAttributes.res 6:7
4240
Attribute id:js:[6:3->6:7] label:@js
4341
Completable: Cdecorator(@js)
4442
Package opens Pervasives.JsxModules.place holder
45-
Resolved opens 1 pervasives
4643
[{
4744
"label": "jsxConfig",
4845
"kind": 4,
@@ -57,7 +54,6 @@ Complete src/CompletionAttributes.res 9:16
5754
XXX Not found!
5855
Completable: JsxConfig
5956
Package opens Pervasives.JsxModules.place holder
60-
Resolved opens 1 pervasives
6157
[{
6258
"label": "version",
6359
"kind": 5,
@@ -82,7 +78,6 @@ Complete src/CompletionAttributes.res 12:17
8278
XXX Not found!
8379
Completable: JsxConfig
8480
Package opens Pervasives.JsxModules.place holder
85-
Resolved opens 1 pervasives
8681
[{
8782
"label": "module_",
8883
"kind": 5,
@@ -101,7 +96,6 @@ Complete src/CompletionAttributes.res 15:25
10196
XXX Not found!
10297
Completable: JsxConfig
10398
Package opens Pervasives.JsxModules.place holder
104-
Resolved opens 1 pervasives
10599
[{
106100
"label": "\"\"",
107101
"kind": 12,
@@ -117,7 +111,6 @@ Complete src/CompletionAttributes.res 18:29
117111
XXX Not found!
118112
Completable: JsxConfig
119113
Package opens Pervasives.JsxModules.place holder
120-
Resolved opens 1 pervasives
121114
[{
122115
"label": "version",
123116
"kind": 5,
@@ -136,7 +129,6 @@ Complete src/CompletionAttributes.res 21:12
136129
XXX Not found!
137130
Completable: CdecoratorPayload(moduleWithImportAttributes)
138131
Package opens Pervasives.JsxModules.place holder
139-
Resolved opens 1 pervasives
140132
[{
141133
"label": "from",
142134
"kind": 5,
@@ -155,7 +147,6 @@ Complete src/CompletionAttributes.res 24:17
155147
XXX Not found!
156148
Completable: CdecoratorPayload(moduleWithImportAttributes)
157149
Package opens Pervasives.JsxModules.place holder
158-
Resolved opens 1 pervasives
159150
[{
160151
"label": "{}",
161152
"kind": 12,
@@ -171,7 +162,6 @@ Complete src/CompletionAttributes.res 27:19
171162
XXX Not found!
172163
Completable: CdecoratorPayload(moduleWithImportAttributes)
173164
Package opens Pervasives.JsxModules.place holder
174-
Resolved opens 1 pervasives
175165
[{
176166
"label": "type_",
177167
"kind": 5,
@@ -184,7 +174,6 @@ Complete src/CompletionAttributes.res 30:19
184174
XXX Not found!
185175
Completable: CdecoratorPayload(module=)
186176
Package opens Pervasives.JsxModules.place holder
187-
Resolved opens 1 pervasives
188177
[{
189178
"label": "@rescript/react",
190179
"kind": 4,
@@ -209,7 +198,6 @@ Complete src/CompletionAttributes.res 33:17
209198
XXX Not found!
210199
Completable: CdecoratorPayload(module=)
211200
Package opens Pervasives.JsxModules.place holder
212-
Resolved opens 1 pervasives
213201
[{
214202
"label": "@rescript/react",
215203
"kind": 4,
@@ -234,7 +222,6 @@ Complete src/CompletionAttributes.res 36:14
234222
posCursor:[36:14] posNoWhite:[36:13] Found expr:[36:12->36:14]
235223
Completable: CextensionNode(t)
236224
Package opens Pervasives.JsxModules.place holder
237-
Resolved opens 1 pervasives
238225
[{
239226
"label": "todo",
240227
"kind": 4,

‎analysis/tests/src/expected/CompletionDicts.res.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ posCursor:[0:33] posNoWhite:[0:32] Found expr:[0:14->0:35]
33
Pexp_apply ...[0:14->0:31] (...[0:32->0:34])
44
Completable: Cexpression CArgument Value[Js, Dict, fromArray]($0)->array
55
Package opens Pervasives.JsxModules.place holder
6-
Resolved opens 1 pervasives
76
ContextPath CArgument Value[Js, Dict, fromArray]($0)
87
ContextPath Value[Js, Dict, fromArray]
98
Path Js.Dict.fromArray
@@ -22,7 +21,6 @@ posCursor:[3:34] posNoWhite:[3:33] Found expr:[3:14->3:37]
2221
Pexp_apply ...[3:14->3:31] (...[3:32->3:36])
2322
Completable: Cexpression CArgument Value[Js, Dict, fromArray]($0)->array
2423
Package opens Pervasives.JsxModules.place holder
25-
Resolved opens 1 pervasives
2624
ContextPath CArgument Value[Js, Dict, fromArray]($0)
2725
ContextPath Value[Js, Dict, fromArray]
2826
Path Js.Dict.fromArray
@@ -41,7 +39,6 @@ posCursor:[6:40] posNoWhite:[6:39] Found expr:[6:14->6:44]
4139
Pexp_apply ...[6:14->6:31] (...[6:32->6:43])
4240
Completable: Cexpression CArgument Value[Js, Dict, fromArray]($0)->array, tuple($1)
4341
Package opens Pervasives.JsxModules.place holder
44-
Resolved opens 1 pervasives
4542
ContextPath CArgument Value[Js, Dict, fromArray]($0)
4643
ContextPath Value[Js, Dict, fromArray]
4744
Path Js.Dict.fromArray
@@ -53,7 +50,6 @@ posCursor:[12:14] posNoWhite:[12:13] Found expr:[10:11->14:2]
5350
Pexp_apply ...[10:11->10:28] (...[10:29->14:1])
5451
Completable: Cexpression CArgument Value[Js, Dict, fromArray]($0)->array, tuple($1)
5552
Package opens Pervasives.JsxModules.place holder
56-
Resolved opens 1 pervasives
5753
ContextPath CArgument Value[Js, Dict, fromArray]($0)
5854
ContextPath Value[Js, Dict, fromArray]
5955
Path Js.Dict.fromArray

‎analysis/tests/src/expected/CompletionExpressions.res.txt

Lines changed: 8 additions & 61 deletions
Large diffs are not rendered by default.

‎analysis/tests/src/expected/CompletionFunctionArguments.res.txt

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ posCursor:[10:24] posNoWhite:[10:23] Found expr:[10:11->10:25]
33
Pexp_apply ...[10:11->10:17] (~isOn10:19->10:23=...__ghost__[0:-1->0:-1])
44
Completable: Cexpression CArgument Value[someFn](~isOn)
55
Package opens Pervasives.JsxModules.place holder
6-
Resolved opens 1 pervasives
76
ContextPath CArgument Value[someFn](~isOn)
87
ContextPath Value[someFn]
98
Path someFn
@@ -26,7 +25,6 @@ posCursor:[13:25] posNoWhite:[13:24] Found expr:[13:11->13:26]
2625
Pexp_apply ...[13:11->13:17] (~isOn13:19->13:23=...[13:24->13:25])
2726
Completable: Cexpression CArgument Value[someFn](~isOn)=t
2827
Package opens Pervasives.JsxModules.place holder
29-
Resolved opens 1 pervasives
3028
ContextPath CArgument Value[someFn](~isOn)
3129
ContextPath Value[someFn]
3230
Path someFn
@@ -50,7 +48,6 @@ posCursor:[16:25] posNoWhite:[16:24] Found expr:[16:11->16:26]
5048
Pexp_apply ...[16:11->16:17] (~isOff16:19->16:24=...__ghost__[0:-1->0:-1])
5149
Completable: Cexpression CArgument Value[someFn](~isOff)
5250
Package opens Pervasives.JsxModules.place holder
53-
Resolved opens 1 pervasives
5451
ContextPath CArgument Value[someFn](~isOff)
5552
ContextPath Value[someFn]
5653
Path someFn
@@ -77,7 +74,6 @@ posCursor:[21:27] posNoWhite:[21:26] Found expr:[21:14->21:28]
7774
Pexp_apply ...[21:14->21:20] (~isOn21:22->21:26=...__ghost__[0:-1->0:-1])
7875
Completable: Cexpression CArgument Value[someFn](~isOn)
7976
Package opens Pervasives.JsxModules.place holder
80-
Resolved opens 1 pervasives
8177
ContextPath CArgument Value[someFn](~isOn)
8278
ContextPath Value[someFn]
8379
Path someFn
@@ -100,7 +96,6 @@ posCursor:[34:24] posNoWhite:[34:23] Found expr:[34:11->34:25]
10096
Pexp_apply ...[34:11->34:22] (...[34:23->34:24])
10197
Completable: Cexpression CArgument Value[someOtherFn]($0)=f
10298
Package opens Pervasives.JsxModules.place holder
103-
Resolved opens 1 pervasives
10499
ContextPath CArgument Value[someOtherFn]($0)
105100
ContextPath Value[someOtherFn]
106101
Path someOtherFn
@@ -117,7 +112,6 @@ posCursor:[51:39] posNoWhite:[51:38] Found expr:[51:11->51:40]
117112
Pexp_apply ...[51:11->51:30] (~config51:32->51:38=...__ghost__[0:-1->0:-1])
118113
Completable: Cexpression CArgument Value[someFnTakingVariant](~config)
119114
Package opens Pervasives.JsxModules.place holder
120-
Resolved opens 1 pervasives
121115
ContextPath CArgument Value[someFnTakingVariant](~config)
122116
ContextPath Value[someFnTakingVariant]
123117
Path someFnTakingVariant
@@ -152,7 +146,6 @@ posCursor:[54:40] posNoWhite:[54:39] Found expr:[54:11->54:41]
152146
Pexp_apply ...[54:11->54:30] (~config54:32->54:38=...[54:39->54:40])
153147
Completable: Cexpression CArgument Value[someFnTakingVariant](~config)=O
154148
Package opens Pervasives.JsxModules.place holder
155-
Resolved opens 1 pervasives
156149
ContextPath CArgument Value[someFnTakingVariant](~config)
157150
ContextPath Value[someFnTakingVariant]
158151
Path someFnTakingVariant
@@ -198,7 +191,6 @@ posCursor:[57:33] posNoWhite:[57:32] Found expr:[57:11->57:34]
198191
Pexp_apply ...[57:11->57:30] (...[57:31->57:33])
199192
Completable: Cexpression CArgument Value[someFnTakingVariant]($0)=So
200193
Package opens Pervasives.JsxModules.place holder
201-
Resolved opens 1 pervasives
202194
ContextPath CArgument Value[someFnTakingVariant]($0)
203195
ContextPath Value[someFnTakingVariant]
204196
Path someFnTakingVariant
@@ -228,7 +220,6 @@ posCursor:[60:44] posNoWhite:[60:43] Found expr:[60:11->60:45]
228220
Pexp_apply ...[60:11->60:30] (~configOpt260:32->60:42=...[60:43->60:44])
229221
Completable: Cexpression CArgument Value[someFnTakingVariant](~configOpt2)=O
230222
Package opens Pervasives.JsxModules.place holder
231-
Resolved opens 1 pervasives
232223
ContextPath CArgument Value[someFnTakingVariant](~configOpt2)
233224
ContextPath Value[someFnTakingVariant]
234225
Path someFnTakingVariant
@@ -274,7 +265,6 @@ posCursor:[63:23] posNoWhite:[63:22] Found expr:[63:11->63:24]
274265
Pexp_apply ...[63:11->63:22] (...[63:23->63:24])
275266
Completable: Cexpression CArgument Value[someOtherFn]($0)
276267
Package opens Pervasives.JsxModules.place holder
277-
Resolved opens 1 pervasives
278268
ContextPath CArgument Value[someOtherFn]($0)
279269
ContextPath Value[someOtherFn]
280270
Path someOtherFn
@@ -297,7 +287,6 @@ posCursor:[66:28] posNoWhite:[66:27] Found expr:[66:11->66:30]
297287
Pexp_apply ...[66:11->66:22] (...[66:23->66:24], ...[66:26->66:27])
298288
Completable: Cexpression CArgument Value[someOtherFn]($2)
299289
Package opens Pervasives.JsxModules.place holder
300-
Resolved opens 1 pervasives
301290
ContextPath CArgument Value[someOtherFn]($2)
302291
ContextPath Value[someOtherFn]
303292
Path someOtherFn
@@ -319,7 +308,6 @@ Complete src/CompletionFunctionArguments.res 69:30
319308
posCursor:[69:30] posNoWhite:[69:29] Found expr:[69:11->69:31]
320309
Completable: Cexpression CArgument Value[someOtherFn]($2)=t
321310
Package opens Pervasives.JsxModules.place holder
322-
Resolved opens 1 pervasives
323311
ContextPath CArgument Value[someOtherFn]($2)
324312
ContextPath Value[someOtherFn]
325313
Path someOtherFn
@@ -343,7 +331,6 @@ posCursor:[76:25] posNoWhite:[76:24] Found expr:[76:11->76:26]
343331
Pexp_apply ...[76:11->76:24] (...[76:25->76:26])
344332
Completable: Cexpression CArgument Value[fnTakingTuple]($0)
345333
Package opens Pervasives.JsxModules.place holder
346-
Resolved opens 1 pervasives
347334
ContextPath CArgument Value[fnTakingTuple]($0)
348335
ContextPath Value[fnTakingTuple]
349336
Path fnTakingTuple
@@ -362,7 +349,6 @@ posCursor:[89:27] posNoWhite:[89:26] Found expr:[89:11->89:29]
362349
Pexp_apply ...[89:11->89:25] (...[89:26->89:28])
363350
Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordBody
364351
Package opens Pervasives.JsxModules.place holder
365-
Resolved opens 1 pervasives
366352
ContextPath CArgument Value[fnTakingRecord]($0)
367353
ContextPath Value[fnTakingRecord]
368354
Path fnTakingRecord
@@ -396,16 +382,15 @@ posCursor:[109:29] posNoWhite:[109:28] Found expr:[108:6->109:29]
396382
posCursor:[109:29] posNoWhite:[109:28] Found expr:[109:9->109:29]
397383
Completable: Cpath Value[thisGetsBrokenLoc]->a <<jsx>>
398384
Package opens Pervasives.JsxModules.place holder
399-
Resolved opens 1 pervasives
400385
ContextPath Value[thisGetsBrokenLoc]->a <<jsx>>
401386
ContextPath Value[thisGetsBrokenLoc]
402387
Path thisGetsBrokenLoc
403388
CPPipe env:CompletionFunctionArguments
404-
CPPipe type path:ReactEvent.Mouse.t
405-
CPPipe pathFromEnv:ReactEvent.Mouse found:false
406-
Path ReactEvent.Mouse.a
389+
CPPipe type path:JsxEvent.Mouse.t
390+
CPPipe pathFromEnv:JsxEvent.Mouse found:false
391+
Path JsxEvent.Mouse.a
407392
[{
408-
"label": "ReactEvent.Mouse.altKey",
393+
"label": "JsxEvent.Mouse.altKey",
409394
"kind": 12,
410395
"tags": [],
411396
"detail": "t => bool",
@@ -422,16 +407,15 @@ posCursor:[111:27] posNoWhite:[111:26] Found expr:[108:6->111:27]
422407
posCursor:[111:27] posNoWhite:[111:26] Found expr:[111:9->111:27]
423408
Completable: Cpath Value[reassignedWorks]->a <<jsx>>
424409
Package opens Pervasives.JsxModules.place holder
425-
Resolved opens 1 pervasives
426410
ContextPath Value[reassignedWorks]->a <<jsx>>
427411
ContextPath Value[reassignedWorks]
428412
Path reassignedWorks
429413
CPPipe env:CompletionFunctionArguments
430-
CPPipe type path:ReactEvent.Mouse.t
431-
CPPipe pathFromEnv:ReactEvent.Mouse found:false
432-
Path ReactEvent.Mouse.a
414+
CPPipe type path:JsxEvent.Mouse.t
415+
CPPipe pathFromEnv:JsxEvent.Mouse found:false
416+
Path JsxEvent.Mouse.a
433417
[{
434-
"label": "ReactEvent.Mouse.altKey",
418+
"label": "JsxEvent.Mouse.altKey",
435419
"kind": 12,
436420
"tags": [],
437421
"detail": "t => bool",
@@ -445,7 +429,6 @@ posCursor:[121:57] posNoWhite:[121:56] Found expr:[121:42->0:-1]
445429
posCursor:[121:57] posNoWhite:[121:56] Found expr:[121:42->0:-1]
446430
Completable: Cpath Value[fineModuleVal]->
447431
Package opens Pervasives.JsxModules.place holder
448-
Resolved opens 1 pervasives
449432
ContextPath Value[fineModuleVal]->
450433
ContextPath Value[fineModuleVal]
451434
Path fineModuleVal

‎analysis/tests/src/expected/CompletionInferValues.res.txt

Lines changed: 12 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/CompletionInferValues.res 15:43
22
posCursor:[15:43] posNoWhite:[15:42] Found expr:[15:33->15:43]
33
Completable: Cpath Value[aliased]->f
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[aliased]->f
76
ContextPath Value[aliased]
87
Path aliased
@@ -30,7 +29,6 @@ posCursor:[18:30] posNoWhite:[18:29] Found expr:[18:28->18:30]
3029
Pexp_field [18:28->18:29] _:[33:0->18:30]
3130
Completable: Cpath Value[x].""
3231
Package opens Pervasives.JsxModules.place holder
33-
Resolved opens 1 pervasives
3432
ContextPath Value[x].""
3533
ContextPath Value[x]
3634
Path x
@@ -56,7 +54,6 @@ posCursor:[21:53] posNoWhite:[21:52] Found expr:[21:45->21:53]
5654
Pexp_field [21:45->21:52] _:[33:0->21:53]
5755
Completable: Cpath Value[aliased].""
5856
Package opens Pervasives.JsxModules.place holder
59-
Resolved opens 1 pervasives
6057
ContextPath Value[aliased].""
6158
ContextPath Value[aliased]
6259
Path aliased
@@ -90,7 +87,6 @@ posCursor:[24:63] posNoWhite:[24:62] Found expr:[24:52->24:63]
9087
Pexp_field [24:52->24:62] _:[24:63->24:63]
9188
Completable: Cpath Value[someRecord].""
9289
Package opens Pervasives.JsxModules.place holder
93-
Resolved opens 1 pervasives
9490
ContextPath Value[someRecord].""
9591
ContextPath Value[someRecord]
9692
Path someRecord
@@ -123,7 +119,6 @@ posCursor:[27:90] posNoWhite:[27:89] Found expr:[27:79->27:90]
123119
Pexp_field [27:79->27:89] _:[27:90->27:90]
124120
Completable: Cpath Value[someRecord].""
125121
Package opens Pervasives.JsxModules.place holder
126-
Resolved opens 1 pervasives
127122
ContextPath Value[someRecord].""
128123
ContextPath Value[someRecord]
129124
Path someRecord
@@ -155,7 +150,6 @@ posCursor:[30:36] posNoWhite:[30:35] Found expr:[30:16->30:38]
155150
posCursor:[30:36] posNoWhite:[30:35] Found expr:[30:27->30:36]
156151
Completable: Cpath Value[event]->pr
157152
Package opens Pervasives.JsxModules.place holder
158-
Resolved opens 1 pervasives
159153
ContextPath Value[event]->pr
160154
ContextPath Value[event]
161155
Path event
@@ -183,20 +177,19 @@ posCursor:[41:50] posNoWhite:[41:49] Found expr:[41:29->41:52]
183177
posCursor:[41:50] posNoWhite:[41:49] Found expr:[41:41->41:50]
184178
Completable: Cpath Value[event]->pr <<jsx>>
185179
Package opens Pervasives.JsxModules.place holder
186-
Resolved opens 1 pervasives
187180
ContextPath Value[event]->pr <<jsx>>
188181
ContextPath Value[event]
189182
Path event
190183
ContextPath CArgument CJsxPropValue [div] onMouseEnter($0)
191184
ContextPath CJsxPropValue [div] onMouseEnter
192185
Path ReactDOM.domProps
193-
Path PervasivesU.JsxDOM.domProps
186+
Path JsxDOM.domProps
194187
CPPipe env:CompletionInferValues
195-
CPPipe type path:JsxEventU.Mouse.t
196-
CPPipe pathFromEnv:JsxEventU.Mouse found:false
197-
Path JsxEventU.Mouse.pr
188+
CPPipe type path:JsxEvent.Mouse.t
189+
CPPipe pathFromEnv:JsxEvent.Mouse found:false
190+
Path JsxEvent.Mouse.pr
198191
[{
199-
"label": "JsxEventU.Mouse.preventDefault",
192+
"label": "JsxEvent.Mouse.preventDefault",
200193
"kind": 12,
201194
"tags": [],
202195
"detail": "t => unit",
@@ -211,19 +204,18 @@ posCursor:[44:50] posNoWhite:[44:49] Found expr:[44:29->44:52]
211204
posCursor:[44:50] posNoWhite:[44:49] Found expr:[44:41->44:50]
212205
Completable: Cpath Value[event]->pr <<jsx>>
213206
Package opens Pervasives.JsxModules.place holder
214-
Resolved opens 1 pervasives
215207
ContextPath Value[event]->pr <<jsx>>
216208
ContextPath Value[event]
217209
Path event
218210
ContextPath CArgument CJsxPropValue [Div] onMouseEnter($0)
219211
ContextPath CJsxPropValue [Div] onMouseEnter
220212
Path Div.make
221213
CPPipe env:CompletionInferValues envFromCompletionItem:CompletionInferValues.Div
222-
CPPipe type path:PervasivesU.JsxEvent.Mouse.t
223-
CPPipe pathFromEnv:PervasivesU.JsxEvent.Mouse found:false
224-
Path PervasivesU.JsxEvent.Mouse.pr
214+
CPPipe type path:JsxEvent.Mouse.t
215+
CPPipe pathFromEnv:JsxEvent.Mouse found:false
216+
Path JsxEvent.Mouse.pr
225217
[{
226-
"label": "PervasivesU.JsxEvent.Mouse.preventDefault",
218+
"label": "JsxEvent.Mouse.preventDefault",
227219
"kind": 12,
228220
"tags": [],
229221
"detail": "t => unit",
@@ -239,14 +231,13 @@ posCursor:[47:87] posNoWhite:[47:86] Found expr:[47:41->47:87]
239231
posCursor:[47:87] posNoWhite:[47:86] Found expr:[47:81->47:87]
240232
Completable: Cpath Value[btn]->t <<jsx>>
241233
Package opens Pervasives.JsxModules.place holder
242-
Resolved opens 1 pervasives
243234
ContextPath Value[btn]->t <<jsx>>
244235
ContextPath Value[btn]
245236
Path btn
246237
ContextPath Value[JsxEvent, Mouse, button](Nolabel)
247238
ContextPath Value[JsxEvent, Mouse, button]
248239
Path JsxEvent.Mouse.button
249-
CPPipe env:CompletionInferValues envFromCompletionItem:JsxEventU.Mouse
240+
CPPipe env:CompletionInferValues envFromCompletionItem:JsxEvent.Mouse
250241
Path Belt.Int.t
251242
[{
252243
"label": "Belt.Int.toString",
@@ -271,7 +262,6 @@ posCursor:[50:108] posNoWhite:[50:107] Found expr:[50:41->50:108]
271262
posCursor:[50:108] posNoWhite:[50:107] Found expr:[50:100->50:108]
272263
Completable: Cpath Value[btn]->spl <<jsx>>
273264
Package opens Pervasives.JsxModules.place holder
274-
Resolved opens 1 pervasives
275265
ContextPath Value[btn]->spl <<jsx>>
276266
ContextPath Value[btn]
277267
Path btn
@@ -291,7 +281,7 @@ Path Js.String2.spl
291281
"kind": 12,
292282
"tags": [],
293283
"detail": "(t, Js_re.t) => array<option<t>>",
294-
"documentation": {"kind": "markdown", "value": "\n`splitByRe(str, regex)` splits the given `str` at every occurrence of `regex`\nand returns an array of the resulting substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n## Examples\n\n```rescript\nJs.String2.splitByRe(\"art; bed , cog ;dad\", %re(\"/\\s*[,;]\\s*TODO/\")) == [\n Some(\"art\"),\n Some(\"bed\"),\n Some(\"cog\"),\n Some(\"dad\"),\n ]\n```\n"}
284+
"documentation": {"kind": "markdown", "value": "\n`splitByRe(str, regex)` splits the given `str` at every occurrence of `regex`\nand returns an array of the resulting substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n## Examples\n\n```rescript\nJs.String2.splitByRe(\"art; bed , cog ;dad\", /\\s*[,;]\\s*TODO/) == [\n Some(\"art\"),\n Some(\"bed\"),\n Some(\"cog\"),\n Some(\"dad\"),\n ]\n```\n"}
295285
}, {
296286
"label": "Js.String2.split",
297287
"kind": 12,
@@ -303,7 +293,7 @@ Path Js.String2.spl
303293
"kind": 12,
304294
"tags": [],
305295
"detail": "(t, Js_re.t, ~limit: int) => array<option<t>>",
306-
"documentation": {"kind": "markdown", "value": "\n`splitByReAtMost(str, regex, ~limit:n)` splits the given `str` at every\noccurrence of `regex` and returns an array of the first `n` resulting\nsubstrings. If `n` is negative or greater than the number of substrings, the\narray will contain all the substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n## Examples\n\n```rescript\nJs.String2.splitByReAtMost(\"one: two: three: four\", %re(\"/\\s*:\\s*TODO/\"), ~limit=3) == [\n Some(\"one\"),\n Some(\"two\"),\n Some(\"three\"),\n ]\n\nJs.String2.splitByReAtMost(\"one: two: three: four\", %re(\"/\\s*:\\s*TODO/\"), ~limit=0) == []\n\nJs.String2.splitByReAtMost(\"one: two: three: four\", %re(\"/\\s*:\\s*TODO/\"), ~limit=8) == [\n Some(\"one\"),\n Some(\"two\"),\n Some(\"three\"),\n Some(\"four\"),\n ]\n```\n"}
296+
"documentation": {"kind": "markdown", "value": "\n`splitByReAtMost(str, regex, ~limit:n)` splits the given `str` at every\noccurrence of `regex` and returns an array of the first `n` resulting\nsubstrings. If `n` is negative or greater than the number of substrings, the\narray will contain all the substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n## Examples\n\n```rescript\nJs.String2.splitByReAtMost(\"one: two: three: four\", /\\s*:\\s*TODO/, ~limit=3) == [\n Some(\"one\"),\n Some(\"two\"),\n Some(\"three\"),\n ]\n\nJs.String2.splitByReAtMost(\"one: two: three: four\", /\\s*:\\s*TODO/, ~limit=0) == []\n\nJs.String2.splitByReAtMost(\"one: two: three: four\", /\\s*:\\s*TODO/, ~limit=8) == [\n Some(\"one\"),\n Some(\"two\"),\n Some(\"three\"),\n Some(\"four\"),\n ]\n```\n"}
307297
}]
308298

309299
Complete src/CompletionInferValues.res 53:130
@@ -315,7 +305,6 @@ posCursor:[53:130] posNoWhite:[53:129] Found expr:[53:41->53:130]
315305
posCursor:[53:130] posNoWhite:[53:129] Found expr:[53:123->53:130]
316306
Completable: Cpath Value[btn]->ma <<jsx>>
317307
Package opens Pervasives.JsxModules.place holder
318-
Resolved opens 1 pervasives
319308
ContextPath Value[btn]->ma <<jsx>>
320309
ContextPath Value[btn]
321310
Path btn
@@ -343,7 +332,6 @@ posCursor:[56:52] posNoWhite:[56:51] Found expr:[56:50->56:52]
343332
Pexp_field [56:50->56:51] _:[59:0->56:52]
344333
Completable: Cpath Value[x].""
345334
Package opens Pervasives.JsxModules.place holder
346-
Resolved opens 1 pervasives
347335
ContextPath Value[x].""
348336
ContextPath Value[x]
349337
Path x
@@ -368,7 +356,6 @@ posCursor:[78:78] posNoWhite:[78:77] Found expr:[78:70->78:78]
368356
Pexp_field [78:70->78:77] _:[125:0->78:78]
369357
Completable: Cpath Value[srecord].""
370358
Package opens Pervasives.JsxModules.place holder
371-
Resolved opens 1 pervasives
372359
ContextPath Value[srecord].""
373360
ContextPath Value[srecord]
374361
Path srecord
@@ -396,7 +383,6 @@ posCursor:[82:86] posNoWhite:[82:85] Found expr:[82:78->82:86]
396383
Pexp_field [82:78->82:85] _:[125:0->82:86]
397384
Completable: Cpath Value[aliased].""
398385
Package opens Pervasives.JsxModules.place holder
399-
Resolved opens 1 pervasives
400386
ContextPath Value[aliased].""
401387
ContextPath Value[aliased]
402388
Path aliased
@@ -418,7 +404,6 @@ posCursor:[86:103] posNoWhite:[86:102] Found expr:[86:92->86:103]
418404
Pexp_field [86:92->86:102] _:[125:0->86:103]
419405
Completable: Cpath Value[someRecord].""
420406
Package opens Pervasives.JsxModules.place holder
421-
Resolved opens 1 pervasives
422407
ContextPath Value[someRecord].""
423408
ContextPath Value[someRecord]
424409
Path someRecord
@@ -445,7 +430,6 @@ Complete src/CompletionInferValues.res 90:81
445430
posCursor:[90:81] posNoWhite:[90:80] Found expr:[90:69->90:81]
446431
Completable: Cpath Value[things]->slic
447432
Package opens Pervasives.JsxModules.place holder
448-
Resolved opens 1 pervasives
449433
ContextPath Value[things]->slic
450434
ContextPath Value[things]
451435
Path things
@@ -474,7 +458,6 @@ Complete src/CompletionInferValues.res 94:82
474458
posCursor:[94:82] posNoWhite:[94:81] Found expr:[94:70->94:82]
475459
Completable: Cpath Value[someInt]->toS
476460
Package opens Pervasives.JsxModules.place holder
477-
Resolved opens 1 pervasives
478461
ContextPath Value[someInt]->toS
479462
ContextPath Value[someInt]
480463
Path someInt
@@ -497,7 +480,6 @@ Complete src/CompletionInferValues.res 98:109
497480
posCursor:[98:109] posNoWhite:[98:108] Found expr:[98:97->98:109]
498481
Completable: Cpath Value[someInt]->toS
499482
Package opens Pervasives.JsxModules.place holder
500-
Resolved opens 1 pervasives
501483
ContextPath Value[someInt]->toS
502484
ContextPath Value[someInt]
503485
Path someInt
@@ -524,7 +506,6 @@ posCursor:[102:102] posNoWhite:[102:101] Found expr:[102:57->102:102]
524506
posCursor:[102:102] posNoWhite:[102:101] Found expr:[102:90->102:102]
525507
Completable: Cpath Value[someInt]->toS
526508
Package opens Pervasives.JsxModules.place holder
527-
Resolved opens 1 pervasives
528509
ContextPath Value[someInt]->toS
529510
ContextPath Value[someInt]
530511
Path someInt
@@ -550,7 +531,6 @@ Complete src/CompletionInferValues.res 106:88
550531
posCursor:[106:88] posNoWhite:[106:87] Found expr:[106:79->106:88]
551532
Completable: Cpath Value[str]->slic
552533
Package opens Pervasives.JsxModules.place holder
553-
Resolved opens 1 pervasives
554534
ContextPath Value[str]->slic
555535
ContextPath Value[str]
556536
Path str
@@ -579,7 +559,6 @@ Complete src/CompletionInferValues.res 110:89
579559
posCursor:[110:89] posNoWhite:[110:88] Found expr:[110:80->110:89]
580560
Completable: Cpath Value[str]->slic
581561
Package opens Pervasives.JsxModules.place holder
582-
Resolved opens 1 pervasives
583562
ContextPath Value[str]->slic
584563
ContextPath Value[str]
585564
Path str
@@ -608,7 +587,6 @@ Complete src/CompletionInferValues.res 114:80
608587
posCursor:[114:80] posNoWhite:[114:79] Found expr:[114:70->114:80]
609588
Completable: Cpath Value[name]->slic
610589
Package opens Pervasives.JsxModules.place holder
611-
Resolved opens 1 pervasives
612590
ContextPath Value[name]->slic
613591
ContextPath Value[name]
614592
Path name
@@ -638,7 +616,6 @@ posCursor:[118:67] posNoWhite:[118:66] Found expr:[118:60->118:67]
638616
Pexp_field [118:60->118:65] s:[118:66->118:67]
639617
Completable: Cpath Value[inner].s
640618
Package opens Pervasives.JsxModules.place holder
641-
Resolved opens 1 pervasives
642619
ContextPath Value[inner].s
643620
ContextPath Value[inner]
644621
Path inner
@@ -666,7 +643,6 @@ Complete src/CompletionInferValues.res 122:53
666643
posCursor:[122:53] posNoWhite:[122:52] Found expr:[122:46->122:53]
667644
Completable: Cpath Value[v]->toSt
668645
Package opens Pervasives.JsxModules.place holder
669-
Resolved opens 1 pervasives
670646
ContextPath Value[v]->toSt
671647
ContextPath Value[v]
672648
Path v
@@ -692,7 +668,6 @@ posCursor:[130:26] posNoWhite:[130:25] Found pattern:[130:25->130:27]
692668
posCursor:[130:26] posNoWhite:[130:25] Found pattern:[130:25->130:27]
693669
Completable: Cpattern CArgument CArgument Value[fnWithRecordCallback]($0)($0)->recordBody
694670
Package opens Pervasives.JsxModules.place holder
695-
Resolved opens 1 pervasives
696671
ContextPath CArgument CArgument Value[fnWithRecordCallback]($0)($0)
697672
ContextPath CArgument Value[fnWithRecordCallback]($0)
698673
ContextPath Value[fnWithRecordCallback]
@@ -720,7 +695,6 @@ posCursor:[137:30] posNoWhite:[137:29] Found expr:[137:24->0:-1]
720695
posCursor:[137:30] posNoWhite:[137:29] Found expr:[137:24->0:-1]
721696
Completable: Cpath Value[root]->
722697
Package opens Pervasives.JsxModules.place holder
723-
Resolved opens 1 pervasives
724698
ContextPath Value[root]->
725699
ContextPath Value[root]
726700
Path root
@@ -756,7 +730,6 @@ posCursor:[146:30] posNoWhite:[146:29] Found expr:[146:24->0:-1]
756730
posCursor:[146:30] posNoWhite:[146:29] Found expr:[146:24->0:-1]
757731
Completable: Cpath Value[root]->
758732
Package opens Pervasives.JsxModules.place holder
759-
Resolved opens 1 pervasives
760733
ContextPath Value[root]->
761734
ContextPath Value[root]
762735
Path root
@@ -793,7 +766,6 @@ Complete src/CompletionInferValues.res 150:47
793766
XXX Not found!
794767
Completable: Cpattern Value[Belt, Int, toString](Nolabel)
795768
Package opens Pervasives.JsxModules.place holder
796-
Resolved opens 1 pervasives
797769
ContextPath Value[Belt, Int, toString](Nolabel)
798770
ContextPath Value[Belt, Int, toString]
799771
Path Belt.Int.toString
@@ -812,7 +784,6 @@ Complete src/CompletionInferValues.res 154:70
812784
XXX Not found!
813785
Completable: Cpattern Value[Js, String2, split](Nolabel, Nolabel)
814786
Package opens Pervasives.JsxModules.place holder
815-
Resolved opens 1 pervasives
816787
ContextPath Value[Js, String2, split](Nolabel, Nolabel)
817788
ContextPath Value[Js, String2, split]
818789
Path Js.String2.split
@@ -836,7 +807,6 @@ posCursor:[158:105] posNoWhite:[158:104] Found expr:[158:97->158:105]
836807
Pexp_field [158:97->158:104] _:[158:105->158:105]
837808
Completable: Cpath Value[support].""
838809
Package opens Pervasives.JsxModules.place holder
839-
Resolved opens 1 pervasives
840810
ContextPath Value[support].""
841811
ContextPath Value[support]
842812
Path support
@@ -862,7 +832,6 @@ posCursor:[162:110] posNoWhite:[162:109] Found expr:[162:104->0:-1]
862832
posCursor:[162:110] posNoWhite:[162:109] Found expr:[162:104->0:-1]
863833
Completable: Cpath Value[root]->
864834
Package opens Pervasives.JsxModules.place holder
865-
Resolved opens 1 pervasives
866835
ContextPath Value[root]->
867836
ContextPath Value[root]
868837
Path root
@@ -895,11 +864,9 @@ posCursor:[167:27] posNoWhite:[167:26] Found expr:[167:25->167:28]
895864
Pexp_ident res:[167:25->167:28]
896865
Completable: Cpath Value[res]
897866
Package opens Pervasives.JsxModules.place holder
898-
Resolved opens 1 pervasives
899867
ContextPath Value[res]
900868
Path res
901869
Package opens Pervasives.JsxModules.place holder
902-
Resolved opens 1 pervasives
903870
ContextPath Value[res]
904871
Path res
905872
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}}

‎analysis/tests/src/expected/CompletionJsx.res.txt

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/CompletionJsx.res 3:17
22
posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:3->3:17]
33
Completable: Cpath Value[someString]->st
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[someString]->st
76
ContextPath Value[someString]
87
Path someString
@@ -33,7 +32,6 @@ posCursor:[13:21] posNoWhite:[13:20] Found expr:[13:7->32:10]
3332
posCursor:[13:21] posNoWhite:[13:20] Found expr:[13:7->13:21]
3433
Completable: Cpath Value[someString]->st <<jsx>>
3534
Package opens Pervasives.JsxModules.place holder
36-
Resolved opens 1 pervasives
3735
ContextPath Value[someString]->st <<jsx>>
3836
ContextPath Value[someString]
3937
Path someString
@@ -79,7 +77,6 @@ posCursor:[18:24] posNoWhite:[18:23] Found expr:[18:10->32:4]
7977
posCursor:[18:24] posNoWhite:[18:23] Found expr:[18:10->18:24]
8078
Completable: Cpath Value[someString]->st <<jsx>>
8179
Package opens Pervasives.JsxModules.place holder
82-
Resolved opens 1 pervasives
8380
ContextPath Value[someString]->st <<jsx>>
8481
ContextPath Value[someString]
8582
Path someString
@@ -125,7 +122,6 @@ posCursor:[20:27] posNoWhite:[20:26] Found expr:[20:10->32:4]
125122
posCursor:[20:27] posNoWhite:[20:26] Found expr:[20:10->20:27]
126123
Completable: Cpath string->st <<jsx>>
127124
Package opens Pervasives.JsxModules.place holder
128-
Resolved opens 1 pervasives
129125
ContextPath string->st <<jsx>>
130126
ContextPath string
131127
CPPipe env:CompletionJsx
@@ -170,7 +166,6 @@ posCursor:[22:44] posNoWhite:[22:43] Found expr:[22:10->32:4]
170166
posCursor:[22:44] posNoWhite:[22:43] Found expr:[22:10->22:44]
171167
Completable: Cpath Value[Js, String2, trim](Nolabel)->st <<jsx>>
172168
Package opens Pervasives.JsxModules.place holder
173-
Resolved opens 1 pervasives
174169
ContextPath Value[Js, String2, trim](Nolabel)->st <<jsx>>
175170
ContextPath Value[Js, String2, trim](Nolabel)
176171
ContextPath Value[Js, String2, trim]
@@ -217,7 +212,6 @@ posCursor:[24:19] posNoWhite:[24:18] Found expr:[24:10->32:4]
217212
posCursor:[24:19] posNoWhite:[24:18] Found expr:[24:10->0:-1]
218213
Completable: Cpath Value[someInt]-> <<jsx>>
219214
Package opens Pervasives.JsxModules.place holder
220-
Resolved opens 1 pervasives
221215
ContextPath Value[someInt]-> <<jsx>>
222216
ContextPath Value[someInt]
223217
Path someInt
@@ -299,7 +293,6 @@ posCursor:[26:14] posNoWhite:[26:13] Found expr:[26:10->32:4]
299293
posCursor:[26:14] posNoWhite:[26:13] Found expr:[26:10->0:-1]
300294
Completable: Cpath int-> <<jsx>>
301295
Package opens Pervasives.JsxModules.place holder
302-
Resolved opens 1 pervasives
303296
ContextPath int-> <<jsx>>
304297
ContextPath int
305298
CPPipe env:CompletionJsx
@@ -380,7 +373,6 @@ posCursor:[28:20] posNoWhite:[28:19] Found expr:[28:10->32:4]
380373
posCursor:[28:20] posNoWhite:[28:19] Found expr:[28:10->28:20]
381374
Completable: Cpath Value[someArr]->a <<jsx>>
382375
Package opens Pervasives.JsxModules.place holder
383-
Resolved opens 1 pervasives
384376
ContextPath Value[someArr]->a <<jsx>>
385377
ContextPath Value[someArr]
386378
Path someArr
@@ -421,7 +413,6 @@ posCursor:[30:12] posNoWhite:[30:11] Found expr:[30:10->32:10]
421413
JSX <di:[30:10->30:12] div[32:6->32:9]=...[32:6->32:9]> _children:32:9
422414
Completable: ChtmlElement <di
423415
Package opens Pervasives.JsxModules.place holder
424-
Resolved opens 1 pervasives
425416
[{
426417
"label": "<dialog>",
427418
"kind": 4,
@@ -450,7 +441,6 @@ posCursor:[45:23] posNoWhite:[45:22] Found expr:[45:4->45:23]
450441
JSX <CompWithoutJsxPpx:[45:4->45:21] n[45:22->45:23]=...[45:22->45:23]> _children:None
451442
Completable: Cjsx([CompWithoutJsxPpx], n, [n])
452443
Package opens Pervasives.JsxModules.place holder
453-
Resolved opens 1 pervasives
454444
Path CompWithoutJsxPpx.make
455445
[{
456446
"label": "name",
@@ -465,7 +455,6 @@ posCursor:[48:27] posNoWhite:[48:26] Found expr:[48:4->48:28]
465455
JSX <SomeComponent:[48:4->48:17] someProp[48:18->48:26]=...[48:18->48:26]> _children:None
466456
Completable: Cexpression CJsxPropValue [SomeComponent] someProp
467457
Package opens Pervasives.JsxModules.place holder
468-
Resolved opens 1 pervasives
469458
ContextPath CJsxPropValue [SomeComponent] someProp
470459
Path SomeComponent.make
471460
[{
@@ -484,9 +473,8 @@ posCursor:[51:11] posNoWhite:[51:10] Found expr:[51:4->51:11]
484473
JSX <h1:[51:4->51:6] hidd[51:7->51:11]=...[51:7->51:11]> _children:None
485474
Completable: Cjsx([h1], hidd, [hidd])
486475
Package opens Pervasives.JsxModules.place holder
487-
Resolved opens 1 pervasives
488476
Path ReactDOM.domProps
489-
Path PervasivesU.JsxDOM.domProps
477+
Path JsxDOM.domProps
490478
[{
491479
"label": "hidden",
492480
"kind": 4,
@@ -500,7 +488,6 @@ posCursor:[61:30] posNoWhite:[61:28] Found expr:[61:4->61:29]
500488
JSX <IntrinsicElementLowercase:[61:4->61:29] > _children:None
501489
Completable: Cjsx([IntrinsicElementLowercase], "", [])
502490
Package opens Pervasives.JsxModules.place holder
503-
Resolved opens 1 pervasives
504491
Path IntrinsicElementLowercase.make
505492
[{
506493
"label": "name",
@@ -527,7 +514,6 @@ posCursor:[73:36] posNoWhite:[73:35] Found expr:[73:4->73:41]
527514
JSX <MultiPropComp:[73:4->73:17] name[73:18->73:22]=...[73:23->73:30] time[73:31->73:35]=...[73:37->73:40]> _children:None
528515
Completable: Cexpression CJsxPropValue [MultiPropComp] time
529516
Package opens Pervasives.JsxModules.place holder
530-
Resolved opens 1 pervasives
531517
ContextPath CJsxPropValue [MultiPropComp] time
532518
Path MultiPropComp.make
533519
[{
@@ -553,7 +539,6 @@ posCursor:[76:36] posNoWhite:[76:35] Found expr:[76:4->76:40]
553539
JSX <MultiPropComp:[76:4->76:17] name[76:18->76:22]=...[76:23->76:30] time[76:31->76:35]=...[76:37->76:40]> _children:None
554540
Completable: Cexpression CJsxPropValue [MultiPropComp] time
555541
Package opens Pervasives.JsxModules.place holder
556-
Resolved opens 1 pervasives
557542
ContextPath CJsxPropValue [MultiPropComp] time
558543
Path MultiPropComp.make
559544
[{
@@ -579,7 +564,6 @@ posCursor:[79:28] posNoWhite:[79:27] Found expr:[79:4->79:32]
579564
JSX <MultiPropComp:[79:4->79:17] name[79:18->79:22]=...[79:18->79:22] time[79:23->79:27]=...[79:29->79:32]> _children:None
580565
Completable: Cexpression CJsxPropValue [MultiPropComp] time
581566
Package opens Pervasives.JsxModules.place holder
582-
Resolved opens 1 pervasives
583567
ContextPath CJsxPropValue [MultiPropComp] time
584568
Path MultiPropComp.make
585569
[{
@@ -605,7 +589,6 @@ posCursor:[89:26] posNoWhite:[89:24] Found expr:[89:4->89:27]
605589
JSX <Info:[89:4->89:8] _type[89:9->89:14]=...[89:16->89:24]> _children:89:26
606590
Completable: Cjsx([Info], "", [_type])
607591
Package opens Pervasives.JsxModules.place holder
608-
Resolved opens 1 pervasives
609592
Path Info.make
610593
[{
611594
"label": "key",

‎analysis/tests/src/expected/CompletionJsxProps.res.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ posCursor:[0:47] posNoWhite:[0:46] Found expr:[0:12->0:47]
33
JSX <CompletionSupport.TestComponent:[0:12->0:43] on[0:44->0:46]=...__ghost__[0:-1->0:-1]> _children:None
44
Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] on
55
Package opens Pervasives.JsxModules.place holder
6-
Resolved opens 1 pervasives
76
ContextPath CJsxPropValue [CompletionSupport, TestComponent] on
87
Path CompletionSupport.TestComponent.make
98
[{
@@ -25,7 +24,6 @@ posCursor:[3:48] posNoWhite:[3:47] Found expr:[3:12->3:48]
2524
JSX <CompletionSupport.TestComponent:[3:12->3:43] on[3:44->3:46]=...[3:47->3:48]> _children:None
2625
Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] on=t
2726
Package opens Pervasives.JsxModules.place holder
28-
Resolved opens 1 pervasives
2927
ContextPath CJsxPropValue [CompletionSupport, TestComponent] on
3028
Path CompletionSupport.TestComponent.make
3129
[{
@@ -41,7 +39,6 @@ posCursor:[6:50] posNoWhite:[6:49] Found expr:[6:12->6:50]
4139
JSX <CompletionSupport.TestComponent:[6:12->6:43] test[6:44->6:48]=...[6:49->6:50]> _children:None
4240
Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] test=T
4341
Package opens Pervasives.JsxModules.place holder
44-
Resolved opens 1 pervasives
4542
ContextPath CJsxPropValue [CompletionSupport, TestComponent] test
4643
Path CompletionSupport.TestComponent.make
4744
[{
@@ -99,7 +96,6 @@ posCursor:[9:52] posNoWhite:[9:51] Found expr:[9:12->9:52]
9996
JSX <CompletionSupport.TestComponent:[9:12->9:43] polyArg[9:44->9:51]=...__ghost__[0:-1->0:-1]> _children:None
10097
Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] polyArg
10198
Package opens Pervasives.JsxModules.place holder
102-
Resolved opens 1 pervasives
10399
ContextPath CJsxPropValue [CompletionSupport, TestComponent] polyArg
104100
Path CompletionSupport.TestComponent.make
105101
[{
@@ -141,7 +137,6 @@ posCursor:[12:54] posNoWhite:[12:53] Found expr:[12:12->12:54]
141137
JSX <CompletionSupport.TestComponent:[12:12->12:43] polyArg[12:44->12:51]=...[12:52->12:54]> _children:None
142138
Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] polyArg=#t
143139
Package opens Pervasives.JsxModules.place holder
144-
Resolved opens 1 pervasives
145140
ContextPath CJsxPropValue [CompletionSupport, TestComponent] polyArg
146141
Path CompletionSupport.TestComponent.make
147142
[{
@@ -218,7 +213,6 @@ posCursor:[22:52] posNoWhite:[22:51] Found expr:[22:12->22:52]
218213
JSX <CompletionSupport.TestComponent:[22:12->22:43] testArr[22:44->22:51]=...__ghost__[0:-1->0:-1]> _children:None
219214
Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] testArr
220215
Package opens Pervasives.JsxModules.place holder
221-
Resolved opens 1 pervasives
222216
ContextPath CJsxPropValue [CompletionSupport, TestComponent] testArr
223217
Path CompletionSupport.TestComponent.make
224218
[{
@@ -237,7 +231,6 @@ posCursor:[26:54] posNoWhite:[26:53] Found expr:[26:12->26:56]
237231
JSX <CompletionSupport.TestComponent:[26:12->26:43] testArr[26:44->26:51]=...[26:53->26:55]> _children:None
238232
Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] testArr->array
239233
Package opens Pervasives.JsxModules.place holder
240-
Resolved opens 1 pervasives
241234
ContextPath CJsxPropValue [CompletionSupport, TestComponent] testArr
242235
Path CompletionSupport.TestComponent.make
243236
[{
@@ -271,7 +264,6 @@ posCursor:[31:53] posNoWhite:[31:52] Found expr:[31:12->31:54]
271264
JSX <CompletionSupport.TestComponent:[31:12->31:43] polyArg[31:44->31:51]=...[31:52->31:54]> _children:None
272265
Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] polyArg->recordBody
273266
Package opens Pervasives.JsxModules.place holder
274-
Resolved opens 1 pervasives
275267
ContextPath CJsxPropValue [CompletionSupport, TestComponent] polyArg
276268
Path CompletionSupport.TestComponent.make
277269
[{
@@ -313,7 +305,6 @@ posCursor:[34:49] posNoWhite:[34:48] Found expr:[34:12->34:50]
313305
JSX <CompletionSupport.TestComponent:[34:12->34:43] on[34:44->34:46]=...[34:48->34:49]> _children:None
314306
Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] on=t->recordBody
315307
Package opens Pervasives.JsxModules.place holder
316-
Resolved opens 1 pervasives
317308
ContextPath CJsxPropValue [CompletionSupport, TestComponent] on
318309
Path CompletionSupport.TestComponent.make
319310
[{
@@ -335,7 +326,6 @@ posCursor:[44:44] posNoWhite:[44:43] Found expr:[44:12->44:44]
335326
JSX <CompletableComponentLazy:[44:12->44:36] status[44:37->44:43]=...__ghost__[0:-1->0:-1]> _children:None
336327
Completable: Cexpression CJsxPropValue [CompletableComponentLazy] status
337328
Package opens Pervasives.JsxModules.place holder
338-
Resolved opens 1 pervasives
339329
ContextPath CJsxPropValue [CompletableComponentLazy] status
340330
Path CompletableComponentLazy.make
341331
[{

‎analysis/tests/src/expected/CompletionPattern.res.txt

Lines changed: 0 additions & 52 deletions
Large diffs are not rendered by default.

‎analysis/tests/src/expected/CompletionPipeChain.res.txt

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/CompletionPipeChain.res 27:16
22
posCursor:[27:16] posNoWhite:[27:15] Found expr:[27:11->0:-1]
33
Completable: Cpath Value[int]->
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[int]->
76
ContextPath Value[int]
87
Path int
@@ -40,7 +39,6 @@ Complete src/CompletionPipeChain.res 30:23
4039
posCursor:[30:23] posNoWhite:[30:22] Found expr:[30:11->0:-1]
4140
Completable: Cpath Value[toFlt](Nolabel)->
4241
Package opens Pervasives.JsxModules.place holder
43-
Resolved opens 1 pervasives
4442
ContextPath Value[toFlt](Nolabel)->
4543
ContextPath Value[toFlt](Nolabel)
4644
ContextPath Value[toFlt]
@@ -67,7 +65,6 @@ Complete src/CompletionPipeChain.res 33:38
6765
posCursor:[33:38] posNoWhite:[33:37] Found expr:[33:11->0:-1]
6866
Completable: Cpath Value[Integer, increment](Nolabel, Nolabel)->
6967
Package opens Pervasives.JsxModules.place holder
70-
Resolved opens 1 pervasives
7168
ContextPath Value[Integer, increment](Nolabel, Nolabel)->
7269
ContextPath Value[Integer, increment](Nolabel, Nolabel)
7370
ContextPath Value[Integer, increment]
@@ -106,7 +103,6 @@ Complete src/CompletionPipeChain.res 36:38
106103
posCursor:[36:38] posNoWhite:[36:37] Found expr:[36:11->0:-1]
107104
Completable: Cpath Value[Integer, increment](Nolabel, Nolabel)->
108105
Package opens Pervasives.JsxModules.place holder
109-
Resolved opens 1 pervasives
110106
ContextPath Value[Integer, increment](Nolabel, Nolabel)->
111107
ContextPath Value[Integer, increment](Nolabel, Nolabel)
112108
ContextPath Value[Integer, increment]
@@ -145,7 +141,6 @@ Complete src/CompletionPipeChain.res 39:47
145141
posCursor:[39:47] posNoWhite:[39:46] Found expr:[39:11->0:-1]
146142
Completable: Cpath Value[Integer, decrement](Nolabel, Nolabel)->
147143
Package opens Pervasives.JsxModules.place holder
148-
Resolved opens 1 pervasives
149144
ContextPath Value[Integer, decrement](Nolabel, Nolabel)->
150145
ContextPath Value[Integer, decrement](Nolabel, Nolabel)
151146
ContextPath Value[Integer, decrement]
@@ -184,7 +179,6 @@ Complete src/CompletionPipeChain.res 42:69
184179
posCursor:[42:69] posNoWhite:[42:68] Found expr:[42:11->0:-1]
185180
Completable: Cpath Value[Integer, decrement](Nolabel, Nolabel)->
186181
Package opens Pervasives.JsxModules.place holder
187-
Resolved opens 1 pervasives
188182
ContextPath Value[Integer, decrement](Nolabel, Nolabel)->
189183
ContextPath Value[Integer, decrement](Nolabel, Nolabel)
190184
ContextPath Value[Integer, decrement]
@@ -223,7 +217,6 @@ Complete src/CompletionPipeChain.res 45:62
223217
posCursor:[45:62] posNoWhite:[45:61] Found expr:[45:11->0:-1]
224218
Completable: Cpath Value[SuperFloat, fromInteger](Nolabel)->
225219
Package opens Pervasives.JsxModules.place holder
226-
Resolved opens 1 pervasives
227220
ContextPath Value[SuperFloat, fromInteger](Nolabel)->
228221
ContextPath Value[SuperFloat, fromInteger](Nolabel)
229222
ContextPath Value[SuperFloat, fromInteger]
@@ -250,7 +243,6 @@ Complete src/CompletionPipeChain.res 48:63
250243
posCursor:[48:63] posNoWhite:[48:62] Found expr:[48:11->48:63]
251244
Completable: Cpath Value[SuperFloat, fromInteger](Nolabel)->t
252245
Package opens Pervasives.JsxModules.place holder
253-
Resolved opens 1 pervasives
254246
ContextPath Value[SuperFloat, fromInteger](Nolabel)->t
255247
ContextPath Value[SuperFloat, fromInteger](Nolabel)
256248
ContextPath Value[SuperFloat, fromInteger]
@@ -271,7 +263,6 @@ Complete src/CompletionPipeChain.res 51:82
271263
posCursor:[51:82] posNoWhite:[51:81] Found expr:[51:11->0:-1]
272264
Completable: Cpath Value[CompletionSupport, Test, make](Nolabel)->
273265
Package opens Pervasives.JsxModules.place holder
274-
Resolved opens 1 pervasives
275266
ContextPath Value[CompletionSupport, Test, make](Nolabel)->
276267
ContextPath Value[CompletionSupport, Test, make](Nolabel)
277268
ContextPath Value[CompletionSupport, Test, make]
@@ -304,7 +295,6 @@ Complete src/CompletionPipeChain.res 54:78
304295
posCursor:[54:78] posNoWhite:[54:77] Found expr:[54:11->0:-1]
305296
Completable: Cpath Value[CompletionSupport, Test, addSelf](Nolabel, Nolabel)->
306297
Package opens Pervasives.JsxModules.place holder
307-
Resolved opens 1 pervasives
308298
ContextPath Value[CompletionSupport, Test, addSelf](Nolabel, Nolabel)->
309299
ContextPath Value[CompletionSupport, Test, addSelf](Nolabel, Nolabel)
310300
ContextPath Value[CompletionSupport, Test, addSelf]
@@ -337,7 +327,6 @@ Complete src/CompletionPipeChain.res 58:5
337327
posCursor:[58:5] posNoWhite:[58:4] Found expr:[57:8->0:-1]
338328
Completable: Cpath Value[Js, Array2, forEach](Nolabel, Nolabel)->
339329
Package opens Pervasives.JsxModules.place holder
340-
Resolved opens 1 pervasives
341330
ContextPath Value[Js, Array2, forEach](Nolabel, Nolabel)->
342331
ContextPath Value[Js, Array2, forEach](Nolabel, Nolabel)
343332
ContextPath Value[Js, Array2, forEach]
@@ -351,7 +340,6 @@ Complete src/CompletionPipeChain.res 62:6
351340
posCursor:[62:6] posNoWhite:[62:5] Found expr:[61:8->62:6]
352341
Completable: Cpath Value[Belt, Array, reduce](Nolabel, Nolabel, Nolabel)->t
353342
Package opens Pervasives.JsxModules.place holder
354-
Resolved opens 1 pervasives
355343
ContextPath Value[Belt, Array, reduce](Nolabel, Nolabel, Nolabel)->t
356344
ContextPath Value[Belt, Array, reduce](Nolabel, Nolabel, Nolabel)
357345
ContextPath Value[Belt, Array, reduce]
@@ -376,7 +364,6 @@ Complete src/CompletionPipeChain.res 70:12
376364
posCursor:[70:12] posNoWhite:[70:11] Found expr:[70:3->0:-1]
377365
Completable: Cpath Value[aliased]->
378366
Package opens Pervasives.JsxModules.place holder
379-
Resolved opens 1 pervasives
380367
ContextPath Value[aliased]->
381368
ContextPath Value[aliased]
382369
Path aliased
@@ -408,7 +395,6 @@ Complete src/CompletionPipeChain.res 73:15
408395
posCursor:[73:15] posNoWhite:[73:14] Found expr:[73:3->0:-1]
409396
Completable: Cpath Value[notAliased]->
410397
Package opens Pervasives.JsxModules.place holder
411-
Resolved opens 1 pervasives
412398
ContextPath Value[notAliased]->
413399
ContextPath Value[notAliased]
414400
Path notAliased
@@ -446,7 +432,6 @@ posCursor:[82:30] posNoWhite:[82:29] Found expr:[82:7->90:14]
446432
posCursor:[82:30] posNoWhite:[82:29] Found expr:[82:7->82:30]
447433
Completable: Cpath Value[props].support.root->ren
448434
Package opens Pervasives.JsxModules.place holder
449-
Resolved opens 1 pervasives
450435
ContextPath Value[props].support.root->ren
451436
ContextPath Value[props].support.root
452437
ContextPath Value[props].support
@@ -476,7 +461,6 @@ posCursor:[88:16] posNoWhite:[88:15] Found expr:[88:7->90:14]
476461
posCursor:[88:16] posNoWhite:[88:15] Found expr:[88:7->88:16]
477462
Completable: Cpath Value[root]->ren
478463
Package opens Pervasives.JsxModules.place holder
479-
Resolved opens 1 pervasives
480464
ContextPath Value[root]->ren
481465
ContextPath Value[root]
482466
Path root
@@ -499,7 +483,6 @@ posCursor:[95:20] posNoWhite:[95:19] Found expr:[95:15->0:-1]
499483
posCursor:[95:20] posNoWhite:[95:19] Found expr:[95:15->0:-1]
500484
Completable: Cpath Value[int]->
501485
Package opens Pervasives.JsxModules.place holder
502-
Resolved opens 1 pervasives
503486
ContextPath Value[int]->
504487
ContextPath Value[int]
505488
Path int
@@ -539,7 +522,6 @@ Pexp_apply ...[98:3->98:14] (...[98:15->98:21])
539522
posCursor:[98:21] posNoWhite:[98:20] Found expr:[98:15->98:21]
540523
Completable: Cpath Value[int]->t
541524
Package opens Pervasives.JsxModules.place holder
542-
Resolved opens 1 pervasives
543525
ContextPath Value[int]->t
544526
ContextPath Value[int]
545527
Path int
@@ -559,7 +541,6 @@ Complete src/CompletionPipeChain.res 103:8
559541
posCursor:[103:8] posNoWhite:[103:7] Found expr:[103:3->103:8]
560542
Completable: Cpath Value[r]->la
561543
Package opens Pervasives.JsxModules.place holder
562-
Resolved opens 1 pervasives
563544
ContextPath Value[r]->la
564545
ContextPath Value[r]
565546
Path r
@@ -570,6 +551,6 @@ Path Js.Re.la
570551
"kind": 12,
571552
"tags": [],
572553
"detail": "t => int",
573-
"documentation": {"kind": "markdown", "value": "\nReturns the index where the next match will start its search. This property\nwill be modified when the RegExp object is used, if the global (\"g\") flag is\nset.\n\n## Examples\n\n```rescript\nlet re = %re(\"/ab*TODO/g\")\nlet str = \"abbcdefabh\"\n\nlet break = ref(false)\nwhile !break.contents {\n switch Js.Re.exec_(re, str) {\n | Some(result) => Js.Nullable.iter(Js.Re.captures(result)[0], (. match_) => {\n let next = Belt.Int.toString(Js.Re.lastIndex(re))\n Js.log(\"Found \" ++ (match_ ++ (\". Next match starts at \" ++ next)))\n })\n | None => break := true\n }\n}\n```\n\nSee\n[`RegExp: lastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex)\non MDN.\n"}
554+
"documentation": {"kind": "markdown", "value": "\nReturns the index where the next match will start its search. This property\nwill be modified when the RegExp object is used, if the global (\"g\") flag is\nset.\n\n## Examples\n\n```rescript\nlet re = /ab*TODO/g\nlet str = \"abbcdefabh\"\n\nlet break = ref(false)\nwhile !break.contents {\n switch Js.Re.exec_(re, str) {\n | Some(result) => Js.Nullable.iter(Js.Re.captures(result)[0], (. match_) => {\n let next = Belt.Int.toString(Js.Re.lastIndex(re))\n Js.log(\"Found \" ++ (match_ ++ (\". Next match starts at \" ++ next)))\n })\n | None => break := true\n }\n}\n```\n\nSee\n[`RegExp: lastIndex`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex)\non MDN.\n"}
574555
}]
575556

‎analysis/tests/src/expected/CompletionPipeSubmodules.res.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/CompletionPipeSubmodules.res 12:20
22
posCursor:[12:20] posNoWhite:[12:19] Found expr:[12:11->20:8]
33
Completable: Cpath Value[A, B1, xx]->
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[A, B1, xx]->
76
ContextPath Value[A, B1, xx]
87
Path A.B1.xx
@@ -28,7 +27,6 @@ Complete src/CompletionPipeSubmodules.res 16:18
2827
posCursor:[16:18] posNoWhite:[16:17] Found expr:[16:11->20:8]
2928
Completable: Cpath Value[A, x].v->
3029
Package opens Pervasives.JsxModules.place holder
31-
Resolved opens 1 pervasives
3230
ContextPath Value[A, x].v->
3331
ContextPath Value[A, x].v
3432
ContextPath Value[A, x]
@@ -55,7 +53,6 @@ Complete src/CompletionPipeSubmodules.res 38:20
5553
posCursor:[38:20] posNoWhite:[38:19] Found expr:[38:11->0:-1]
5654
Completable: Cpath Value[E, e].v.v->
5755
Package opens Pervasives.JsxModules.place holder
58-
Resolved opens 1 pervasives
5956
ContextPath Value[E, e].v.v->
6057
ContextPath Value[E, e].v.v
6158
ContextPath Value[E, e].v
@@ -77,7 +74,6 @@ Complete src/CompletionPipeSubmodules.res 42:21
7774
posCursor:[42:21] posNoWhite:[42:20] Found expr:[42:11->0:-1]
7875
Completable: Cpath Value[E, e].v.v2->
7976
Package opens Pervasives.JsxModules.place holder
80-
Resolved opens 1 pervasives
8177
ContextPath Value[E, e].v.v2->
8278
ContextPath Value[E, e].v.v2
8379
ContextPath Value[E, e].v

‎analysis/tests/src/expected/CompletionTypeAnnotation.res.txt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/CompletionTypeAnnotation.res 9:22
22
XXX Not found!
33
Completable: Cexpression Type[someRecord]
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Type[someRecord]
76
Path someRecord
87
[{
@@ -20,7 +19,6 @@ Complete src/CompletionTypeAnnotation.res 12:24
2019
XXX Not found!
2120
Completable: Cexpression Type[someRecord]->recordBody
2221
Package opens Pervasives.JsxModules.place holder
23-
Resolved opens 1 pervasives
2422
ContextPath Type[someRecord]
2523
Path someRecord
2624
[{
@@ -41,7 +39,6 @@ Complete src/CompletionTypeAnnotation.res 15:23
4139
XXX Not found!
4240
Completable: Cexpression Type[someVariant]
4341
Package opens Pervasives.JsxModules.place holder
44-
Resolved opens 1 pervasives
4542
ContextPath Type[someVariant]
4643
Path someVariant
4744
[{
@@ -66,7 +63,6 @@ Complete src/CompletionTypeAnnotation.res 18:25
6663
XXX Not found!
6764
Completable: Cexpression Type[someVariant]=O
6865
Package opens Pervasives.JsxModules.place holder
69-
Resolved opens 1 pervasives
7066
ContextPath Type[someVariant]
7167
Path someVariant
7268
[{
@@ -104,7 +100,6 @@ Complete src/CompletionTypeAnnotation.res 21:27
104100
XXX Not found!
105101
Completable: Cexpression Type[somePolyVariant]
106102
Package opens Pervasives.JsxModules.place holder
107-
Resolved opens 1 pervasives
108103
ContextPath Type[somePolyVariant]
109104
Path somePolyVariant
110105
[{
@@ -129,7 +124,6 @@ Complete src/CompletionTypeAnnotation.res 24:30
129124
XXX Not found!
130125
Completable: Cexpression Type[somePolyVariant]=#o
131126
Package opens Pervasives.JsxModules.place holder
132-
Resolved opens 1 pervasives
133127
ContextPath Type[somePolyVariant]
134128
Path somePolyVariant
135129
[{
@@ -146,7 +140,6 @@ Complete src/CompletionTypeAnnotation.res 29:20
146140
XXX Not found!
147141
Completable: Cexpression Type[someFunc]
148142
Package opens Pervasives.JsxModules.place holder
149-
Resolved opens 1 pervasives
150143
ContextPath Type[someFunc]
151144
Path someFunc
152145
[{
@@ -164,7 +157,6 @@ Complete src/CompletionTypeAnnotation.res 34:21
164157
XXX Not found!
165158
Completable: Cexpression Type[someTuple]
166159
Package opens Pervasives.JsxModules.place holder
167-
Resolved opens 1 pervasives
168160
ContextPath Type[someTuple]
169161
Path someTuple
170162
[{
@@ -181,7 +173,6 @@ Complete src/CompletionTypeAnnotation.res 37:28
181173
XXX Not found!
182174
Completable: Cexpression Type[someTuple]->tuple($1)
183175
Package opens Pervasives.JsxModules.place holder
184-
Resolved opens 1 pervasives
185176
ContextPath Type[someTuple]
186177
Path someTuple
187178
[{
@@ -216,7 +207,6 @@ Complete src/CompletionTypeAnnotation.res 40:31
216207
XXX Not found!
217208
Completable: Cexpression option<Type[someVariant]>
218209
Package opens Pervasives.JsxModules.place holder
219-
Resolved opens 1 pervasives
220210
ContextPath option<Type[someVariant]>
221211
ContextPath Type[someVariant]
222212
Path someVariant
@@ -256,7 +246,6 @@ Complete src/CompletionTypeAnnotation.res 43:37
256246
XXX Not found!
257247
Completable: Cexpression option<Type[someVariant]>->variantPayload::Some($0)
258248
Package opens Pervasives.JsxModules.place holder
259-
Resolved opens 1 pervasives
260249
ContextPath option<Type[someVariant]>
261250
ContextPath Type[someVariant]
262251
Path someVariant
@@ -282,7 +271,6 @@ Complete src/CompletionTypeAnnotation.res 46:30
282271
XXX Not found!
283272
Completable: Cexpression array<Type[someVariant]>
284273
Package opens Pervasives.JsxModules.place holder
285-
Resolved opens 1 pervasives
286274
ContextPath array<Type[someVariant]>
287275
ContextPath Type[someVariant]
288276
Path someVariant
@@ -301,7 +289,6 @@ Complete src/CompletionTypeAnnotation.res 49:32
301289
XXX Not found!
302290
Completable: Cexpression array<Type[someVariant]>->array
303291
Package opens Pervasives.JsxModules.place holder
304-
Resolved opens 1 pervasives
305292
ContextPath array<Type[someVariant]>
306293
ContextPath Type[someVariant]
307294
Path someVariant
@@ -327,7 +314,6 @@ Complete src/CompletionTypeAnnotation.res 52:38
327314
XXX Not found!
328315
Completable: Cexpression array<option<Type[someVariant]>>
329316
Package opens Pervasives.JsxModules.place holder
330-
Resolved opens 1 pervasives
331317
ContextPath array<option<Type[someVariant]>>
332318
ContextPath option<Type[someVariant]>
333319
ContextPath Type[someVariant]
@@ -347,7 +333,6 @@ Complete src/CompletionTypeAnnotation.res 55:45
347333
XXX Not found!
348334
Completable: Cexpression option<array<Type[someVariant]>>->variantPayload::Some($0), array
349335
Package opens Pervasives.JsxModules.place holder
350-
Resolved opens 1 pervasives
351336
ContextPath option<array<Type[someVariant]>>
352337
ContextPath array<Type[someVariant]>
353338
ContextPath Type[someVariant]

‎analysis/tests/src/expected/CompletionTypeT.res.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/CompletionTypeT.res 4:26
22
XXX Not found!
33
Completable: Cpattern Value[date]
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[date]
76
Path date
87
[{
@@ -33,7 +32,6 @@ Complete src/CompletionTypeT.res 7:27
3332
XXX Not found!
3433
Completable: Cexpression Type[withDate]->recordField(date)
3534
Package opens Pervasives.JsxModules.place holder
36-
Resolved opens 1 pervasives
3735
ContextPath Type[withDate]
3836
Path withDate
3937
[{

‎analysis/tests/src/expected/Cross.res.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ posCursor:[36:28] posNoWhite:[36:27] Found expr:[36:3->36:28]
9898
Pexp_ident DefinitionWithInterface.a:[36:3->36:28]
9999
Completable: Cpath Value[DefinitionWithInterface, a]
100100
Package opens Pervasives.JsxModules.place holder
101-
Resolved opens 1 pervasives
102101
ContextPath Value[DefinitionWithInterface, a]
103102
Path DefinitionWithInterface.a
104103
[]

‎analysis/tests/src/expected/Debug.res.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Pexp_ident eqN:[11:5->11:8]
77
Completable: Cpath Value[eqN]
88
Raw opens: 1 Js.place holder
99
Package opens Pervasives.JsxModules.place holder
10-
Resolved opens 2 pervasives js.ml
10+
Resolved opens 1 Js.res
1111
ContextPath Value[eqN]
1212
Path eqN
1313
[{

‎analysis/tests/src/expected/Destructuring.res.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/Destructuring.res 4:11
22
posCursor:[4:11] posNoWhite:[4:9] Found pattern:[4:4->4:12]
33
Completable: Cpattern Value[x]->recordBody
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[x]
76
Path x
87
[{
@@ -17,7 +16,6 @@ Complete src/Destructuring.res 7:8
1716
posCursor:[7:8] posNoWhite:[7:7] Found pattern:[7:7->7:9]
1817
Completable: Cpattern Value[x]->recordBody
1918
Package opens Pervasives.JsxModules.place holder
20-
Resolved opens 1 pervasives
2119
ContextPath Value[x]
2220
Path x
2321
[{
@@ -41,7 +39,6 @@ posCursor:[11:13] posNoWhite:[11:11] Found expr:[11:2->13:6]
4139
posCursor:[11:13] posNoWhite:[11:11] Found pattern:[11:6->11:14]
4240
Completable: Cpattern Value[x]->recordBody
4341
Package opens Pervasives.JsxModules.place holder
44-
Resolved opens 1 pervasives
4542
ContextPath Value[x]
4643
Path x
4744
[{
@@ -59,7 +56,6 @@ posCursor:[17:10] posNoWhite:[17:9] Found expr:[17:5->19:11]
5956
posCursor:[17:10] posNoWhite:[17:9] Found pattern:[17:9->17:11]
6057
Completable: Cpattern Value[x]->recordBody
6158
Package opens Pervasives.JsxModules.place holder
62-
Resolved opens 1 pervasives
6359
ContextPath Value[x]
6460
Path x
6561
[{
@@ -80,7 +76,6 @@ Complete src/Destructuring.res 31:8
8076
posCursor:[31:8] posNoWhite:[31:7] Found pattern:[31:7->31:9]
8177
Completable: Cpattern Value[x]->recordBody
8278
Package opens Pervasives.JsxModules.place holder
83-
Resolved opens 1 pervasives
8479
ContextPath Value[x]
8580
Path x
8681
[{

‎analysis/tests/src/expected/Div.res.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:4->3:17]
77
JSX <div:[3:4->3:7] dangerous[3:8->3:17]=...[3:8->3:17]> _children:None
88
Completable: Cjsx([div], dangerous, [dangerous])
99
Package opens Pervasives.JsxModules.place holder
10-
Resolved opens 1 pervasives
1110
Path ReactDOM.domProps
12-
Path PervasivesU.JsxDOM.domProps
11+
Path JsxDOM.domProps
1312
[{
1413
"label": "dangerouslySetInnerHTML",
1514
"kind": 4,

‎analysis/tests/src/expected/EnvCompletion.res.txt

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/EnvCompletion.res 10:17
22
XXX Not found!
33
Completable: Cpattern Value[res]
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[res]
76
Path res
87
[{
@@ -30,7 +29,6 @@ posCursor:[13:23] posNoWhite:[13:22] Found pattern:[13:22->13:24]
3029
Ppat_construct ():[13:22->13:24]
3130
Completable: Cpattern Value[res]->variantPayload::Okay($0)
3231
Package opens Pervasives.JsxModules.place holder
33-
Resolved opens 1 pervasives
3432
ContextPath Value[res]
3533
Path res
3634
[{
@@ -58,7 +56,6 @@ posCursor:[16:26] posNoWhite:[16:25] Found pattern:[16:25->16:27]
5856
Ppat_construct ():[16:25->16:27]
5957
Completable: Cpattern Value[res]->variantPayload::Failure($0)
6058
Package opens Pervasives.JsxModules.place holder
61-
Resolved opens 1 pervasives
6259
ContextPath Value[res]
6360
Path res
6461
[{
@@ -76,7 +73,6 @@ Complete src/EnvCompletion.res 19:19
7673
XXX Not found!
7774
Completable: Cpattern Value[use](Nolabel)
7875
Package opens Pervasives.JsxModules.place holder
79-
Resolved opens 1 pervasives
8076
ContextPath Value[use](Nolabel)
8177
ContextPath Value[use]
8278
Path use
@@ -95,7 +91,6 @@ Complete src/EnvCompletion.res 22:21
9591
posCursor:[22:21] posNoWhite:[22:20] Found pattern:[22:20->22:22]
9692
Completable: Cpattern Value[use](Nolabel)->recordBody
9793
Package opens Pervasives.JsxModules.place holder
98-
Resolved opens 1 pervasives
9994
ContextPath Value[use](Nolabel)
10095
ContextPath Value[use]
10196
Path use
@@ -117,7 +112,6 @@ Complete src/EnvCompletion.res 25:27
117112
posCursor:[25:27] posNoWhite:[25:26] Found pattern:[25:20->25:31]
118113
Completable: Cpattern Value[use](Nolabel)->recordField(stuff)
119114
Package opens Pervasives.JsxModules.place holder
120-
Resolved opens 1 pervasives
121115
ContextPath Value[use](Nolabel)
122116
ContextPath Value[use]
123117
Path use
@@ -147,7 +141,6 @@ posCursor:[28:35] posNoWhite:[28:34] Found pattern:[28:34->28:36]
147141
Ppat_construct ():[28:34->28:36]
148142
Completable: Cpattern Value[use](Nolabel)->recordField(stuff), variantPayload::Second($0)
149143
Package opens Pervasives.JsxModules.place holder
150-
Resolved opens 1 pervasives
151144
ContextPath Value[use](Nolabel)
152145
ContextPath Value[use]
153146
Path use
@@ -169,7 +162,6 @@ Ppat_construct Second:[31:28->31:34]
169162
posCursor:[31:36] posNoWhite:[31:35] Found pattern:[31:35->31:37]
170163
Completable: Cpattern Value[use](Nolabel)->recordField(stuff), variantPayload::Second($0), recordBody
171164
Package opens Pervasives.JsxModules.place holder
172-
Resolved opens 1 pervasives
173165
ContextPath Value[use](Nolabel)
174166
ContextPath Value[use]
175167
Path use
@@ -185,7 +177,6 @@ Complete src/EnvCompletion.res 34:25
185177
posCursor:[34:25] posNoWhite:[34:24] Found pattern:[34:20->34:29]
186178
Completable: Cpattern Value[use](Nolabel)->recordField(res)
187179
Package opens Pervasives.JsxModules.place holder
188-
Resolved opens 1 pervasives
189180
ContextPath Value[use](Nolabel)
190181
ContextPath Value[use]
191182
Path use
@@ -215,7 +206,6 @@ posCursor:[37:31] posNoWhite:[37:30] Found pattern:[37:30->37:32]
215206
Ppat_construct ():[37:30->37:32]
216207
Completable: Cpattern Value[use](Nolabel)->recordField(res), variantPayload::Okay($0)
217208
Package opens Pervasives.JsxModules.place holder
218-
Resolved opens 1 pervasives
219209
ContextPath Value[use](Nolabel)
220210
ContextPath Value[use]
221211
Path use
@@ -247,7 +237,6 @@ posCursor:[40:38] posNoWhite:[40:37] Found pattern:[40:37->40:39]
247237
Ppat_construct ():[40:37->40:39]
248238
Completable: Cpattern Value[use](Nolabel)->recordField(res), variantPayload::Okay($0), variantPayload::Second($0)
249239
Package opens Pervasives.JsxModules.place holder
250-
Resolved opens 1 pervasives
251240
ContextPath Value[use](Nolabel)
252241
ContextPath Value[use]
253242
Path use
@@ -271,7 +260,6 @@ Ppat_construct Second:[43:31->43:37]
271260
posCursor:[43:39] posNoWhite:[43:38] Found pattern:[43:38->43:40]
272261
Completable: Cpattern Value[use](Nolabel)->recordField(res), variantPayload::Okay($0), variantPayload::Second($0), recordBody
273262
Package opens Pervasives.JsxModules.place holder
274-
Resolved opens 1 pervasives
275263
ContextPath Value[use](Nolabel)
276264
ContextPath Value[use]
277265
Path use
@@ -287,7 +275,6 @@ Complete src/EnvCompletion.res 52:18
287275
XXX Not found!
288276
Completable: Cpattern Value[res2]
289277
Package opens Pervasives.JsxModules.place holder
290-
Resolved opens 1 pervasives
291278
ContextPath Value[res2]
292279
Path res2
293280
[{
@@ -305,7 +292,6 @@ Complete src/EnvCompletion.res 55:20
305292
posCursor:[55:20] posNoWhite:[55:19] Found pattern:[55:19->55:21]
306293
Completable: Cpattern Value[res2]->recordBody
307294
Package opens Pervasives.JsxModules.place holder
308-
Resolved opens 1 pervasives
309295
ContextPath Value[res2]
310296
Path res2
311297
[{
@@ -332,7 +318,6 @@ Complete src/EnvCompletion.res 58:29
332318
posCursor:[58:29] posNoWhite:[58:28] Found pattern:[58:19->58:33]
333319
Completable: Cpattern Value[res2]->recordField(theThing)
334320
Package opens Pervasives.JsxModules.place holder
335-
Resolved opens 1 pervasives
336321
ContextPath Value[res2]
337322
Path res2
338323
[{
@@ -357,7 +342,6 @@ Complete src/EnvCompletion.res 61:31
357342
posCursor:[61:31] posNoWhite:[61:30] Found pattern:[61:19->61:35]
358343
Completable: Cpattern Value[res2]->recordField(theVariant)
359344
Package opens Pervasives.JsxModules.place holder
360-
Resolved opens 1 pervasives
361345
ContextPath Value[res2]
362346
Path res2
363347
[{

‎analysis/tests/src/expected/ExhaustiveSwitch.res.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/ExhaustiveSwitch.res 8:24
22
XXX Not found!
33
Completable: CexhaustiveSwitch Value[withSomeVarian]
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[withSomeVarian]
76
Path withSomeVarian
87
[{
@@ -26,7 +25,6 @@ Complete src/ExhaustiveSwitch.res 11:21
2625
XXX Not found!
2726
Completable: CexhaustiveSwitch Value[withSomePol]
2827
Package opens Pervasives.JsxModules.place holder
29-
Resolved opens 1 pervasives
3028
ContextPath Value[withSomePol]
3129
Path withSomePol
3230
[{
@@ -50,7 +48,6 @@ Complete src/ExhaustiveSwitch.res 14:17
5048
XXX Not found!
5149
Completable: CexhaustiveSwitch Value[someBoo]
5250
Package opens Pervasives.JsxModules.place holder
53-
Resolved opens 1 pervasives
5451
ContextPath Value[someBoo]
5552
Path someBoo
5653
[{
@@ -74,7 +71,6 @@ Complete src/ExhaustiveSwitch.res 17:16
7471
XXX Not found!
7572
Completable: CexhaustiveSwitch Value[someOp]
7673
Package opens Pervasives.JsxModules.place holder
77-
Resolved opens 1 pervasives
7874
ContextPath Value[someOp]
7975
Path someOp
8076
[{
@@ -99,7 +95,6 @@ posCursor:[30:13] posNoWhite:[30:12] Found expr:[30:3->30:17]
9995
posCursor:[30:13] posNoWhite:[30:12] Found expr:[30:10->30:17]
10096
Completable: Cpath Value[x]->
10197
Package opens Pervasives.JsxModules.place holder
102-
Resolved opens 1 pervasives
10398
ContextPath Value[x]->
10499
ContextPath Value[x]
105100
Path x
@@ -112,12 +107,10 @@ found selection: [33:3->33:10] -> [33:6->33:10]
112107
XXX Not found!
113108
Completable: Cpath Value[getV](Nolabel)
114109
Package opens Pervasives.JsxModules.place holder
115-
Resolved opens 1 pervasives
116110
ContextPath Value[getV](Nolabel)
117111
ContextPath Value[getV]
118112
Path getV
119113
Package opens Pervasives.JsxModules.place holder
120-
Resolved opens 1 pervasives
121114
Hit: Exhaustive switch
122115

123116
TextDocumentEdit: ExhaustiveSwitch.res
@@ -134,11 +127,9 @@ Xform src/ExhaustiveSwitch.res 36:4
134127
XXX Not found!
135128
Completable: Cpath Value[vvv]
136129
Package opens Pervasives.JsxModules.place holder
137-
Resolved opens 1 pervasives
138130
ContextPath Value[vvv]
139131
Path vvv
140132
Package opens Pervasives.JsxModules.place holder
141-
Resolved opens 1 pervasives
142133
Hit: Exhaustive switch
143134

144135
TextDocumentEdit: ExhaustiveSwitch.res
@@ -158,7 +149,6 @@ Complete src/ExhaustiveSwitch.res 40:24
158149
XXX Not found!
159150
Completable: CexhaustiveSwitch Value[withSomeVarian]
160151
Package opens Pervasives.JsxModules.place holder
161-
Resolved opens 1 pervasives
162152
ContextPath Value[withSomeVarian]
163153
Path withSomeVarian
164154
[{

‎analysis/tests/src/expected/Fragment.res.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ posCursor:[9:56] posNoWhite:[9:55] Found expr:__ghost__[9:10->9:67]
1313
Pexp_construct []:__ghost__[9:10->9:67] None
1414
Completable: Cexpression CTypeAtPos()=[]->variantPayload::::($1)
1515
Package opens Pervasives.JsxModules.place holder
16-
Resolved opens 1 pervasives
1716
ContextPath CTypeAtPos()
1817
null
1918

‎analysis/tests/src/expected/Hover.res.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ Nothing at that position. Now trying to use completion.
8787
Attribute id:live:[122:0->122:5] label:live
8888
Completable: Cdecorator(live)
8989
Package opens Pervasives.JsxModules.place holder
90-
Resolved opens 1 pervasives
9190
{"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!"}}
9291

9392
Hover src/Hover.res 125:4
@@ -119,7 +118,6 @@ posCursor:[170:16] posNoWhite:[170:15] Found expr:[170:5->170:16]
119118
Pexp_field [170:5->170:15] _:[176:2->170:16]
120119
Completable: Cpath Value[x1].content.""
121120
Package opens Pervasives.JsxModules.place holder
122-
Resolved opens 1 pervasives
123121
ContextPath Value[x1].content.""
124122
ContextPath Value[x1].content
125123
ContextPath Value[x1]
@@ -137,7 +135,6 @@ posCursor:[173:16] posNoWhite:[173:15] Found expr:[173:5->173:16]
137135
Pexp_field [173:5->173:15] _:[176:2->173:16]
138136
Completable: Cpath Value[x2].content.""
139137
Package opens Pervasives.JsxModules.place holder
140-
Resolved opens 1 pervasives
141138
ContextPath Value[x2].content.""
142139
ContextPath Value[x2].content
143140
ContextPath Value[x2]
@@ -155,7 +152,6 @@ posCursor:[182:16] posNoWhite:[182:15] Found expr:[182:5->182:16]
155152
Pexp_field [182:5->182:15] _:[187:0->182:16]
156153
Completable: Cpath Value[y1].content.""
157154
Package opens Pervasives.JsxModules.place holder
158-
Resolved opens 1 pervasives
159155
ContextPath Value[y1].content.""
160156
ContextPath Value[y1].content
161157
ContextPath Value[y1]
@@ -173,7 +169,6 @@ posCursor:[185:16] posNoWhite:[185:15] Found expr:[185:5->185:16]
173169
Pexp_field [185:5->185:15] _:[187:0->185:16]
174170
Completable: Cpath Value[y2].content.""
175171
Package opens Pervasives.JsxModules.place holder
176-
Resolved opens 1 pervasives
177172
ContextPath Value[y2].content.""
178173
ContextPath Value[y2].content
179174
ContextPath Value[y2]
@@ -198,11 +193,9 @@ posCursor:[210:13] posNoWhite:[210:12] Found expr:[210:11->210:14]
198193
Pexp_ident usr:[210:11->210:14]
199194
Completable: Cpath Value[usr]
200195
Package opens Pervasives.JsxModules.place holder
201-
Resolved opens 1 pervasives
202196
ContextPath Value[usr]
203197
Path usr
204198
Package opens Pervasives.JsxModules.place holder
205-
Resolved opens 1 pervasives
206199
{"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"}}
207200

208201
Hover src/Hover.res 230:20
@@ -217,12 +210,10 @@ posCursor:[245:6] posNoWhite:[245:5] Found expr:[245:3->245:14]
217210
Pexp_field [245:3->245:4] someField:[245:5->245:14]
218211
Completable: Cpath Value[x].someField
219212
Package opens Pervasives.JsxModules.place holder
220-
Resolved opens 1 pervasives
221213
ContextPath Value[x].someField
222214
ContextPath Value[x]
223215
Path x
224216
Package opens Pervasives.JsxModules.place holder
225-
Resolved opens 1 pervasives
226217
{"contents": {"kind": "markdown", "value": " Mighty fine field here. \n\n```rescript\nbool\n```"}}
227218

228219
Hover src/Hover.res 248:19
@@ -237,11 +228,9 @@ posCursor:[257:23] posNoWhite:[257:22] Found expr:[257:22->257:25]
237228
Pexp_ident fff:[257:22->257:25]
238229
Completable: Cpath Value[fff]
239230
Package opens Pervasives.JsxModules.place holder
240-
Resolved opens 1 pervasives
241231
ContextPath Value[fff]
242232
Path fff
243233
Package opens Pervasives.JsxModules.place holder
244-
Resolved opens 1 pervasives
245234
ContextPath string
246235
{"contents": {"kind": "markdown", "value": "```rescript\nstring\n```"}}
247236

@@ -251,11 +240,9 @@ posCursor:[260:33] posNoWhite:[260:32] Found expr:[260:31->260:40]
251240
Pexp_ident someField:[260:31->260:40]
252241
Completable: Cpath Value[someField]
253242
Package opens Pervasives.JsxModules.place holder
254-
Resolved opens 1 pervasives
255243
ContextPath Value[someField]
256244
Path someField
257245
Package opens Pervasives.JsxModules.place holder
258-
Resolved opens 1 pervasives
259246
ContextPath CPatternPath(Value[x])->recordField(someField)
260247
ContextPath Value[x]
261248
Path x

‎analysis/tests/src/expected/Jsx2.res.txt

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ posCursor:[8:15] posNoWhite:[8:14] Found expr:[8:4->8:15]
88
JSX <M:[8:4->8:5] second[8:6->8:12]=...[8:13->8:15]> _children:None
99
Completable: Cexpression CJsxPropValue [M] second=fi
1010
Package opens Pervasives.JsxModules.place holder
11-
Resolved opens 1 pervasives
1211
ContextPath CJsxPropValue [M] second
1312
Path M.make
1413
[]
@@ -18,7 +17,6 @@ posCursor:[11:20] posNoWhite:[11:19] Found expr:[11:4->11:20]
1817
JSX <M:[11:4->11:5] second[11:6->11:12]=...[11:13->11:18] f[11:19->11:20]=...[11:19->11:20]> _children:None
1918
Completable: Cjsx([M], f, [second, f])
2019
Package opens Pervasives.JsxModules.place holder
21-
Resolved opens 1 pervasives
2220
Path M.make
2321
[{
2422
"label": "first",
@@ -39,7 +37,6 @@ posCursor:[14:13] posNoWhite:[14:12] Found expr:[14:12->14:13]
3937
JSX <M:[14:12->14:13] > _children:None
4038
Completable: Cpath Module[M]
4139
Package opens Pervasives.JsxModules.place holder
42-
Resolved opens 1 pervasives
4340
ContextPath Module[M]
4441
Path M
4542
[{
@@ -95,7 +92,6 @@ posCursor:[22:19] posNoWhite:[22:18] Found expr:[22:4->22:19]
9592
JSX <M:[22:4->22:5] prop[22:6->22:10]=...[22:12->22:16] k[22:18->22:19]=...[22:18->22:19]> _children:None
9693
Completable: Cjsx([M], k, [prop, k])
9794
Package opens Pervasives.JsxModules.place holder
98-
Resolved opens 1 pervasives
9995
Path M.make
10096
[{
10197
"label": "key",
@@ -110,7 +106,6 @@ posCursor:[25:17] posNoWhite:[25:16] Found expr:[25:4->25:17]
110106
JSX <M:[25:4->25:5] prop[25:6->25:10]=...[25:11->25:15] k[25:16->25:17]=...[25:16->25:17]> _children:None
111107
Completable: Cjsx([M], k, [prop, k])
112108
Package opens Pervasives.JsxModules.place holder
113-
Resolved opens 1 pervasives
114109
Path M.make
115110
[{
116111
"label": "key",
@@ -125,7 +120,6 @@ posCursor:[28:21] posNoWhite:[28:20] Found expr:[28:4->28:21]
125120
JSX <M:[28:4->28:5] prop[28:6->28:10]=...[28:11->28:19] k[28:20->28:21]=...[28:20->28:21]> _children:None
126121
Completable: Cjsx([M], k, [prop, k])
127122
Package opens Pervasives.JsxModules.place holder
128-
Resolved opens 1 pervasives
129123
Path M.make
130124
[{
131125
"label": "key",
@@ -140,7 +134,6 @@ posCursor:[31:24] posNoWhite:[31:23] Found expr:[31:4->31:24]
140134
JSX <M:[31:4->31:5] prop[31:6->31:10]=...[31:11->31:22] k[31:23->31:24]=...[31:23->31:24]> _children:None
141135
Completable: Cjsx([M], k, [prop, k])
142136
Package opens Pervasives.JsxModules.place holder
143-
Resolved opens 1 pervasives
144137
Path M.make
145138
[{
146139
"label": "key",
@@ -155,7 +148,6 @@ posCursor:[34:18] posNoWhite:[34:17] Found expr:[34:4->34:18]
155148
JSX <M:[34:4->34:5] prop[34:6->34:10]=...[34:12->34:16] k[34:17->34:18]=...[34:17->34:18]> _children:None
156149
Completable: Cjsx([M], k, [prop, k])
157150
Package opens Pervasives.JsxModules.place holder
158-
Resolved opens 1 pervasives
159151
Path M.make
160152
[{
161153
"label": "key",
@@ -170,7 +162,6 @@ posCursor:[37:16] posNoWhite:[37:15] Found expr:[37:4->37:16]
170162
JSX <M:[37:4->37:5] prop[37:6->37:10]=...[37:11->37:14] k[37:15->37:16]=...[37:15->37:16]> _children:None
171163
Completable: Cjsx([M], k, [prop, k])
172164
Package opens Pervasives.JsxModules.place holder
173-
Resolved opens 1 pervasives
174165
Path M.make
175166
[{
176167
"label": "key",
@@ -185,7 +176,6 @@ posCursor:[40:17] posNoWhite:[40:16] Found expr:[40:4->40:17]
185176
JSX <M:[40:4->40:5] prop[40:6->40:10]=...[40:11->40:15] k[40:16->40:17]=...[40:16->40:17]> _children:None
186177
Completable: Cjsx([M], k, [prop, k])
187178
Package opens Pervasives.JsxModules.place holder
188-
Resolved opens 1 pervasives
189179
Path M.make
190180
[{
191181
"label": "key",
@@ -200,7 +190,6 @@ posCursor:[43:18] posNoWhite:[43:17] Found expr:[43:4->43:18]
200190
JSX <M:[43:4->43:5] prop[43:6->43:10]=...[43:11->43:16] k[43:17->43:18]=...[43:17->43:18]> _children:None
201191
Completable: Cjsx([M], k, [prop, k])
202192
Package opens Pervasives.JsxModules.place holder
203-
Resolved opens 1 pervasives
204193
Path M.make
205194
[{
206195
"label": "key",
@@ -215,7 +204,6 @@ posCursor:[46:16] posNoWhite:[46:15] Found expr:[46:4->46:16]
215204
JSX <M:[46:4->46:5] prop[46:6->46:10]=...[46:11->46:14] k[46:15->46:16]=...[46:15->46:16]> _children:None
216205
Completable: Cjsx([M], k, [prop, k])
217206
Package opens Pervasives.JsxModules.place holder
218-
Resolved opens 1 pervasives
219207
Path M.make
220208
[{
221209
"label": "key",
@@ -230,7 +218,6 @@ posCursor:[49:27] posNoWhite:[49:26] Found expr:[49:4->49:27]
230218
JSX <M:[49:4->49:5] prop[49:6->49:10]=...[49:11->49:25] k[49:26->49:27]=...[49:26->49:27]> _children:None
231219
Completable: Cjsx([M], k, [prop, k])
232220
Package opens Pervasives.JsxModules.place holder
233-
Resolved opens 1 pervasives
234221
Path M.make
235222
[{
236223
"label": "key",
@@ -245,7 +232,6 @@ posCursor:[52:38] posNoWhite:[52:37] Found expr:[52:4->52:38]
245232
JSX <M:[52:4->52:5] prop[52:6->52:10]=...[52:11->52:36] k[52:37->52:38]=...[52:37->52:38]> _children:None
246233
Completable: Cjsx([M], k, [prop, k])
247234
Package opens Pervasives.JsxModules.place holder
248-
Resolved opens 1 pervasives
249235
Path M.make
250236
[{
251237
"label": "key",
@@ -260,7 +246,6 @@ posCursor:[55:25] posNoWhite:[55:24] Found expr:[55:4->55:25]
260246
JSX <M:[55:4->55:5] prop[55:6->55:10]=...[55:11->55:23] k[55:24->55:25]=...[55:24->55:25]> _children:None
261247
Completable: Cjsx([M], k, [prop, k])
262248
Package opens Pervasives.JsxModules.place holder
263-
Resolved opens 1 pervasives
264249
Path M.make
265250
[{
266251
"label": "key",
@@ -280,7 +265,6 @@ posCursor:[68:10] posNoWhite:[68:9] Found expr:[68:4->68:10]
280265
JSX <Ext:[68:4->68:7] al[68:8->68:10]=...[68:8->68:10]> _children:None
281266
Completable: Cjsx([Ext], al, [al])
282267
Package opens Pervasives.JsxModules.place holder
283-
Resolved opens 1 pervasives
284268
Path Ext.make
285269
[{
286270
"label": "align",
@@ -295,7 +279,6 @@ posCursor:[71:11] posNoWhite:[71:10] Found expr:[71:4->71:11]
295279
JSX <M:[71:4->71:5] first[71:6->71:11]=...[71:6->71:11]> _children:None
296280
Completable: Cjsx([M], first, [first])
297281
Package opens Pervasives.JsxModules.place holder
298-
Resolved opens 1 pervasives
299282
Path M.make
300283
[]
301284

@@ -304,7 +287,6 @@ posCursor:[74:16] posNoWhite:[74:15] Found expr:[74:4->74:16]
304287
JSX <M:[74:4->74:5] first[74:6->74:11]=...[74:12->74:14] k[74:15->74:16]=...[74:15->74:16]> _children:None
305288
Completable: Cjsx([M], k, [first, k])
306289
Package opens Pervasives.JsxModules.place holder
307-
Resolved opens 1 pervasives
308290
Path M.make
309291
[{
310292
"label": "key",
@@ -319,7 +301,6 @@ posCursor:[77:23] posNoWhite:[77:22] Found expr:[77:4->77:23]
319301
JSX <M:[77:4->77:5] first[77:6->77:11]=...[77:19->77:21] k[77:22->77:23]=...[77:22->77:23]> _children:None
320302
Completable: Cjsx([M], k, [first, k])
321303
Package opens Pervasives.JsxModules.place holder
322-
Resolved opens 1 pervasives
323304
Path M.make
324305
[{
325306
"label": "key",
@@ -349,7 +330,6 @@ posCursor:[89:16] posNoWhite:[89:15] Found expr:[89:4->89:16]
349330
JSX <WithChildren:[89:4->89:16] > _children:None
350331
Completable: Cpath Module[WithChildren]
351332
Package opens Pervasives.JsxModules.place holder
352-
Resolved opens 1 pervasives
353333
ContextPath Module[WithChildren]
354334
Path WithChildren
355335
[{
@@ -365,7 +345,6 @@ posCursor:[91:18] posNoWhite:[91:17] Found expr:[91:4->91:18]
365345
JSX <WithChildren:[91:4->91:16] n[91:17->91:18]=...[91:17->91:18]> _children:None
366346
Completable: Cjsx([WithChildren], n, [n])
367347
Package opens Pervasives.JsxModules.place holder
368-
Resolved opens 1 pervasives
369348
Path WithChildren.make
370349
[{
371350
"label": "name",
@@ -381,7 +360,6 @@ posCursor:[94:18] posNoWhite:[94:17] Found type:[94:11->94:18]
381360
Ptyp_constr React.e:[94:11->94:18]
382361
Completable: Cpath Type[React, e]
383362
Package opens Pervasives.JsxModules.place holder
384-
Resolved opens 1 pervasives
385363
ContextPath Type[React, e]
386364
Path React.e
387365
[{
@@ -398,7 +376,6 @@ posCursor:[96:20] posNoWhite:[96:19] Found type:[96:11->99:6]
398376
Ptyp_constr ReactDOMR:[96:11->99:6]
399377
Completable: Cpath Type[ReactDOMR]
400378
Package opens Pervasives.JsxModules.place holder
401-
Resolved opens 1 pervasives
402379
ContextPath Type[ReactDOMR]
403380
Path ReactDOMR
404381
[{
@@ -420,7 +397,6 @@ posCursor:[102:21] posNoWhite:[102:20] Found expr:[102:17->102:21]
420397
Pexp_field [102:17->102:18] th:[102:19->102:21]
421398
Completable: Cpath Value[x].th
422399
Package opens Pervasives.JsxModules.place holder
423-
Resolved opens 1 pervasives
424400
ContextPath Value[x].th
425401
ContextPath Value[x]
426402
Path x
@@ -431,7 +407,6 @@ posCursor:[106:28] posNoWhite:[106:27] Found expr:[106:11->106:28]
431407
Pexp_ident DefineSomeFields.:[106:11->106:28]
432408
Completable: Cpath Value[DefineSomeFields, ""]
433409
Package opens Pervasives.JsxModules.place holder
434-
Resolved opens 1 pervasives
435410
ContextPath Value[DefineSomeFields, ""]
436411
Path DefineSomeFields.
437412
[{
@@ -449,7 +424,6 @@ posCursor:[108:36] posNoWhite:[108:35] Found expr:[108:15->108:36]
449424
Pexp_field [108:15->108:16] DefineSomeFields.th:[108:17->108:36]
450425
Completable: Cpath Module[DefineSomeFields].th
451426
Package opens Pervasives.JsxModules.place holder
452-
Resolved opens 1 pervasives
453427
ContextPath Module[DefineSomeFields].th
454428
Path DefineSomeFields.th
455429
[{
@@ -473,7 +447,6 @@ posCursor:[122:20] posNoWhite:[122:19] Found expr:[122:7->122:20]
473447
Pexp_ident Outer.Inner.h:[122:7->122:20]
474448
Completable: Cpath Value[Outer, Inner, h]
475449
Package opens Pervasives.JsxModules.place holder
476-
Resolved opens 1 pervasives
477450
ContextPath Value[Outer, Inner, h]
478451
Path Outer.Inner.h
479452
[{
@@ -491,7 +464,6 @@ posCursor:[129:19] posNoWhite:[129:18] Found expr:[129:7->131:8]
491464
Pexp_ident Outer.Inner.:[129:7->131:8]
492465
Completable: Cpath Value[Outer, Inner, ""]
493466
Package opens Pervasives.JsxModules.place holder
494-
Resolved opens 1 pervasives
495467
ContextPath Value[Outer, Inner, ""]
496468
Path Outer.Inner.
497469
[{
@@ -507,10 +479,9 @@ posCursor:[136:7] posNoWhite:[136:6] Found expr:[135:3->138:9]
507479
JSX <div:[135:3->135:6] x[136:5->136:6]=...[138:4->138:8]> _children:None
508480
Completable: Cexpression CJsxPropValue [div] x
509481
Package opens Pervasives.JsxModules.place holder
510-
Resolved opens 1 pervasives
511482
ContextPath CJsxPropValue [div] x
512483
Path ReactDOM.domProps
513-
Path PervasivesU.JsxDOM.domProps
484+
Path JsxDOM.domProps
514485
[{
515486
"label": "\"\"",
516487
"kind": 12,
@@ -527,7 +498,6 @@ posCursor:[150:21] posNoWhite:[150:20] Found expr:[150:12->150:32]
527498
JSX <Nested.Co:[150:12->150:21] name[150:22->150:26]=...[150:27->150:29]> _children:150:30
528499
Completable: Cpath Module[Nested, Co]
529500
Package opens Pervasives.JsxModules.place holder
530-
Resolved opens 1 pervasives
531501
ContextPath Module[Nested, Co]
532502
Path Nested.Co
533503
[{
@@ -543,7 +513,6 @@ posCursor:[153:19] posNoWhite:[153:18] Found expr:[153:12->153:25]
543513
JSX <Nested.:[153:12->153:24] > _children:None
544514
Completable: Cpath Module[Nested, ""]
545515
Package opens Pervasives.JsxModules.place holder
546-
Resolved opens 1 pervasives
547516
ContextPath Module[Nested, ""]
548517
Path Nested.
549518
[{
@@ -562,7 +531,6 @@ posCursor:[162:12] posNoWhite:[162:11] Found expr:[162:6->162:20]
562531
JSX <Comp:[162:6->162:10] age[162:11->162:14]=...[162:15->162:17]> _children:162:18
563532
Completable: Cjsx([Comp], age, [age])
564533
Package opens Pervasives.JsxModules.place holder
565-
Resolved opens 1 pervasives
566534
Path Comp.make
567535
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}}
568536

@@ -576,7 +544,6 @@ posCursor:[167:16] posNoWhite:[167:15] Found expr:[167:10->167:24]
576544
JSX <Comp:[167:10->167:14] age[167:15->167:18]=...[167:19->167:21]> _children:167:22
577545
Completable: Cjsx([Comp], age, [age])
578546
Package opens Pervasives.JsxModules.place holder
579-
Resolved opens 1 pervasives
580547
Path Comp.make
581548
{"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}}
582549

‎analysis/tests/src/expected/Jsx2.resi.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ posCursor:[7:19] posNoWhite:[7:18] Found type:[7:12->7:19]
1111
Ptyp_constr React.e:[7:12->7:19]
1212
Completable: Cpath Type[React, e]
1313
Package opens Pervasives.JsxModules.place holder
14-
Resolved opens 1 pervasives
1514
ContextPath Type[React, e]
1615
Path React.e
1716
[{
@@ -27,7 +26,6 @@ posCursor:[10:18] posNoWhite:[10:17] Found type:[10:11->10:18]
2726
Ptyp_constr React.e:[10:11->10:18]
2827
Completable: Cpath Type[React, e]
2928
Package opens Pervasives.JsxModules.place holder
30-
Resolved opens 1 pervasives
3129
ContextPath Type[React, e]
3230
Path React.e
3331
[{

‎analysis/tests/src/expected/JsxV4.res.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ posCursor:[11:20] posNoWhite:[11:19] Found expr:[11:4->11:20]
66
JSX <M4:[11:4->11:6] first[11:7->11:12]=...[11:13->11:18] f[11:19->11:20]=...[11:19->11:20]> _children:None
77
Completable: Cjsx([M4], f, [first, f])
88
Package opens Pervasives.JsxModules.place holder
9-
Resolved opens 1 pervasives
109
Path M4.make
1110
[{
1211
"label": "fun",

‎analysis/tests/src/expected/RecordCompletion.res.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/RecordCompletion.res 8:9
22
posCursor:[8:9] posNoWhite:[8:8] Found expr:[8:3->8:9]
33
Completable: Cpath Value[t].n->m
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[t].n->m
76
ContextPath Value[t].n
87
ContextPath Value[t]
@@ -27,7 +26,6 @@ Complete src/RecordCompletion.res 11:13
2726
posCursor:[11:13] posNoWhite:[11:12] Found expr:[11:3->11:13]
2827
Completable: Cpath Value[t2].n2.n->m
2928
Package opens Pervasives.JsxModules.place holder
30-
Resolved opens 1 pervasives
3129
ContextPath Value[t2].n2.n->m
3230
ContextPath Value[t2].n2.n
3331
ContextPath Value[t2].n2
@@ -54,7 +52,6 @@ posCursor:[19:7] posNoWhite:[19:6] Found expr:[19:3->19:7]
5452
Pexp_field [19:3->19:4] R.:[19:5->19:7]
5553
Completable: Cpath Module[R].""
5654
Package opens Pervasives.JsxModules.place holder
57-
Resolved opens 1 pervasives
5855
ContextPath Module[R].""
5956
Path R.
6057
[{
@@ -70,7 +67,6 @@ posCursor:[22:7] posNoWhite:[22:6] Found expr:[22:3->22:10]
7067
Pexp_field [22:3->22:4] R.xx:[22:5->22:10]
7168
Completable: Cpath Module[R].""
7269
Package opens Pervasives.JsxModules.place holder
73-
Resolved opens 1 pervasives
7470
ContextPath Module[R].""
7571
Path R.
7672
[{

‎analysis/tests/src/expected/RecoveryOnProp.res.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ posCursor:[6:26] posNoWhite:[6:25] Found type:[6:23->8:5]
1212
Ptyp_constr Res:[6:23->8:5]
1313
Completable: Cpath Type[Res]
1414
Package opens Pervasives.JsxModules.place holder
15-
Resolved opens 1 pervasives
1615
ContextPath Type[Res]
1716
Path Res
1817
[{

‎analysis/tests/src/expected/Reprod.res.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ posCursor:[7:53] posNoWhite:[7:52] Found expr:[7:11->7:56]
33
Pexp_apply ...[7:11->7:20] (~variables7:22->7:31=...[7:32->7:55])
44
Completable: Cexpression CArgument Value[Query, use](~variables)->recordField(location), variantPayload::ByAddress($0)
55
Package opens Pervasives.JsxModules.place holder
6-
Resolved opens 1 pervasives
76
ContextPath CArgument Value[Query, use](~variables)
87
ContextPath Value[Query, use]
98
Path Query.use
@@ -22,7 +21,6 @@ Complete src/Reprod.res 33:28
2221
posCursor:[33:28] posNoWhite:[33:27] Found pattern:[33:21->33:31]
2322
Completable: Cpattern Value[record]->recordField(first)
2423
Package opens Pervasives.JsxModules.place holder
25-
Resolved opens 1 pervasives
2624
ContextPath Value[record]
2725
Path record
2826
[{
@@ -55,7 +53,6 @@ Complete src/Reprod.res 36:29
5553
posCursor:[36:29] posNoWhite:[36:28] Found pattern:[36:21->36:32]
5654
Completable: Cpattern Value[record]->recordField(second)
5755
Package opens Pervasives.JsxModules.place holder
58-
Resolved opens 1 pervasives
5956
ContextPath Value[record]
6057
Path record
6158
[{
@@ -76,7 +73,6 @@ posCursor:[43:21] posNoWhite:[43:20] Found pattern:[43:20->43:22]
7673
Ppat_construct ():[43:20->43:22]
7774
Completable: Cpattern Value[res]->variantPayload::Ok($0)
7875
Package opens Pervasives.JsxModules.place holder
79-
Resolved opens 1 pervasives
8076
ContextPath Value[res]
8177
Path res
8278
[{
@@ -112,7 +108,6 @@ posCursor:[46:24] posNoWhite:[46:23] Found pattern:[46:23->46:25]
112108
Ppat_construct ():[46:23->46:25]
113109
Completable: Cpattern Value[res]->variantPayload::Error($0)
114110
Package opens Pervasives.JsxModules.place holder
115-
Resolved opens 1 pervasives
116111
ContextPath Value[res]
117112
Path res
118113
[{
@@ -148,7 +143,6 @@ posCursor:[51:24] posNoWhite:[51:23] Found pattern:[51:23->51:25]
148143
Ppat_construct ():[51:23->51:25]
149144
Completable: Cpattern Value[resOpt]->variantPayload::Ok($0)
150145
Package opens Pervasives.JsxModules.place holder
151-
Resolved opens 1 pervasives
152146
ContextPath Value[resOpt]
153147
Path resOpt
154148
[{
@@ -200,7 +194,6 @@ posCursor:[54:29] posNoWhite:[54:28] Found pattern:[54:28->54:30]
200194
Ppat_construct ():[54:28->54:30]
201195
Completable: Cpattern Value[resOpt]->variantPayload::Ok($0), variantPayload::Some($0)
202196
Package opens Pervasives.JsxModules.place holder
203-
Resolved opens 1 pervasives
204197
ContextPath Value[resOpt]
205198
Path resOpt
206199
[{

‎analysis/tests/src/expected/SignatureHelp.res.txt

Lines changed: 11 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ posCursor:[16:19] posNoWhite:[16:18] Found expr:[16:11->16:19]
55
Pexp_ident someFunc:[16:11->16:19]
66
Completable: Cpath Value[someFunc]
77
Package opens Pervasives.JsxModules.place holder
8-
Resolved opens 1 pervasives
98
ContextPath Value[someFunc]
109
Path someFunc
1110
argAtCursor: unlabelled<0>
@@ -28,7 +27,6 @@ posCursor:[19:19] posNoWhite:[19:18] Found expr:[19:11->19:19]
2827
Pexp_ident someFunc:[19:11->19:19]
2928
Completable: Cpath Value[someFunc]
3029
Package opens Pervasives.JsxModules.place holder
31-
Resolved opens 1 pervasives
3230
ContextPath Value[someFunc]
3331
Path someFunc
3432
argAtCursor: unlabelled<0>
@@ -51,7 +49,6 @@ posCursor:[22:19] posNoWhite:[22:18] Found expr:[22:11->22:19]
5149
Pexp_ident someFunc:[22:11->22:19]
5250
Completable: Cpath Value[someFunc]
5351
Package opens Pervasives.JsxModules.place holder
54-
Resolved opens 1 pervasives
5552
ContextPath Value[someFunc]
5653
Path someFunc
5754
argAtCursor: ~two
@@ -74,7 +71,6 @@ posCursor:[25:19] posNoWhite:[25:18] Found expr:[25:11->25:19]
7471
Pexp_ident someFunc:[25:11->25:19]
7572
Completable: Cpath Value[someFunc]
7673
Package opens Pervasives.JsxModules.place holder
77-
Resolved opens 1 pervasives
7874
ContextPath Value[someFunc]
7975
Path someFunc
8076
argAtCursor: ~two
@@ -97,7 +93,6 @@ posCursor:[28:19] posNoWhite:[28:18] Found expr:[28:11->28:19]
9793
Pexp_ident someFunc:[28:11->28:19]
9894
Completable: Cpath Value[someFunc]
9995
Package opens Pervasives.JsxModules.place holder
100-
Resolved opens 1 pervasives
10196
ContextPath Value[someFunc]
10297
Path someFunc
10398
argAtCursor: ~four
@@ -120,7 +115,6 @@ posCursor:[31:19] posNoWhite:[31:18] Found expr:[31:11->31:19]
120115
Pexp_ident someFunc:[31:11->31:19]
121116
Completable: Cpath Value[someFunc]
122117
Package opens Pervasives.JsxModules.place holder
123-
Resolved opens 1 pervasives
124118
ContextPath Value[someFunc]
125119
Path someFunc
126120
argAtCursor: ~four
@@ -143,7 +137,6 @@ posCursor:[34:20] posNoWhite:[34:19] Found expr:[34:11->34:20]
143137
Pexp_ident otherFunc:[34:11->34:20]
144138
Completable: Cpath Value[otherFunc]
145139
Package opens Pervasives.JsxModules.place holder
146-
Resolved opens 1 pervasives
147140
ContextPath Value[otherFunc]
148141
Path otherFunc
149142
argAtCursor: unlabelled<0>
@@ -165,7 +158,6 @@ posCursor:[37:20] posNoWhite:[37:19] Found expr:[37:11->37:20]
165158
Pexp_ident otherFunc:[37:11->37:20]
166159
Completable: Cpath Value[otherFunc]
167160
Package opens Pervasives.JsxModules.place holder
168-
Resolved opens 1 pervasives
169161
ContextPath Value[otherFunc]
170162
Path otherFunc
171163
argAtCursor: unlabelled<0>
@@ -187,7 +179,6 @@ posCursor:[40:20] posNoWhite:[40:19] Found expr:[40:11->40:20]
187179
Pexp_ident otherFunc:[40:11->40:20]
188180
Completable: Cpath Value[otherFunc]
189181
Package opens Pervasives.JsxModules.place holder
190-
Resolved opens 1 pervasives
191182
ContextPath Value[otherFunc]
192183
Path otherFunc
193184
argAtCursor: unlabelled<2>
@@ -209,7 +200,6 @@ posCursor:[43:29] posNoWhite:[43:28] Found expr:[43:11->43:29]
209200
Pexp_ident Completion.Lib.foo:[43:11->43:29]
210201
Completable: Cpath Value[Completion, Lib, foo]
211202
Package opens Pervasives.JsxModules.place holder
212-
Resolved opens 1 pervasives
213203
ContextPath Value[Completion, Lib, foo]
214204
Path Completion.Lib.foo
215205
argAtCursor: ~age
@@ -231,7 +221,6 @@ posCursor:[50:23] posNoWhite:[50:22] Found expr:[50:11->50:23]
231221
Pexp_ident iAmSoSpecial:[50:11->50:23]
232222
Completable: Cpath Value[iAmSoSpecial]
233223
Package opens Pervasives.JsxModules.place holder
234-
Resolved opens 1 pervasives
235224
ContextPath Value[iAmSoSpecial]
236225
Path iAmSoSpecial
237226
argAtCursor: unlabelled<0>
@@ -254,7 +243,6 @@ posCursor:[53:29] posNoWhite:[53:28] Found expr:[53:20->53:29]
254243
Pexp_ident otherFunc:[53:20->53:29]
255244
Completable: Cpath Value[otherFunc]
256245
Package opens Pervasives.JsxModules.place holder
257-
Resolved opens 1 pervasives
258246
ContextPath Value[otherFunc]
259247
Path otherFunc
260248
argAtCursor: unlabelled<1>
@@ -276,7 +264,6 @@ posCursor:[62:13] posNoWhite:[62:12] Found expr:[62:11->62:13]
276264
Pexp_ident fn:[62:11->62:13]
277265
Completable: Cpath Value[fn]
278266
Package opens Pervasives.JsxModules.place holder
279-
Resolved opens 1 pervasives
280267
ContextPath Value[fn]
281268
Path fn
282269
argAtCursor: unlabelled<1>
@@ -298,7 +285,6 @@ posCursor:[65:13] posNoWhite:[65:12] Found expr:[65:11->65:13]
298285
Pexp_ident fn:[65:11->65:13]
299286
Completable: Cpath Value[fn]
300287
Package opens Pervasives.JsxModules.place holder
301-
Resolved opens 1 pervasives
302288
ContextPath Value[fn]
303289
Path fn
304290
argAtCursor: unlabelled<1>
@@ -320,7 +306,6 @@ posCursor:[68:13] posNoWhite:[68:12] Found expr:[68:11->68:13]
320306
Pexp_ident fn:[68:11->68:13]
321307
Completable: Cpath Value[fn]
322308
Package opens Pervasives.JsxModules.place holder
323-
Resolved opens 1 pervasives
324309
ContextPath Value[fn]
325310
Path fn
326311
argAtCursor: unlabelled<2>
@@ -344,7 +329,6 @@ posCursor:[71:28] posNoWhite:[71:27] Found expr:[71:16->71:28]
344329
Pexp_ident iAmSoSpecial:[71:16->71:28]
345330
Completable: Cpath Value[iAmSoSpecial]
346331
Package opens Pervasives.JsxModules.place holder
347-
Resolved opens 1 pervasives
348332
ContextPath Value[iAmSoSpecial]
349333
Path iAmSoSpecial
350334
argAtCursor: unlabelled<0>
@@ -370,7 +354,6 @@ posCursor:[74:39] posNoWhite:[74:38] Found expr:[74:31->74:39]
370354
Pexp_ident someFunc:[74:31->74:39]
371355
Completable: Cpath Value[someFunc]
372356
Package opens Pervasives.JsxModules.place holder
373-
Resolved opens 1 pervasives
374357
ContextPath Value[someFunc]
375358
Path someFunc
376359
argAtCursor: unlabelled<0>
@@ -463,7 +446,7 @@ Signature help src/SignatureHelp.res 105:9
463446
"activeParameter": -1
464447
}
465448

466-
Signature help src/SignatureHelp.res 117:42
449+
Signature help src/SignatureHelp.res 113:42
467450
argAtCursor: unlabelled<1>
468451
extracted params:
469452
[array<int>, int => int]
@@ -477,7 +460,7 @@ extracted params:
477460
"activeParameter": 1
478461
}
479462

480-
Signature help src/SignatureHelp.res 136:18
463+
Signature help src/SignatureHelp.res 132:18
481464
argAtCursor: unlabelled<0>
482465
extracted params:
483466
[x, tt]
@@ -491,7 +474,7 @@ extracted params:
491474
"activeParameter": 0
492475
}
493476

494-
Signature help src/SignatureHelp.res 139:22
477+
Signature help src/SignatureHelp.res 135:22
495478
argAtCursor: unlabelled<1>
496479
extracted params:
497480
[x, tt]
@@ -505,7 +488,7 @@ extracted params:
505488
"activeParameter": 1
506489
}
507490

508-
Signature help src/SignatureHelp.res 143:8
491+
Signature help src/SignatureHelp.res 139:8
509492
{
510493
"signatures": [{
511494
"label": "One({miss?: bool, hit?: bool, stuff?: string})",
@@ -516,7 +499,7 @@ Signature help src/SignatureHelp.res 143:8
516499
"activeParameter": 2
517500
}
518501

519-
Signature help src/SignatureHelp.res 145:7
502+
Signature help src/SignatureHelp.res 141:7
520503
{
521504
"signatures": [{
522505
"label": "One({miss?: bool, hit?: bool, stuff?: string})",
@@ -527,7 +510,7 @@ Signature help src/SignatureHelp.res 145:7
527510
"activeParameter": 0
528511
}
529512

530-
Signature help src/SignatureHelp.res 147:7
513+
Signature help src/SignatureHelp.res 143:7
531514
{
532515
"signatures": [{
533516
"label": "Two(mySpecialThing)",
@@ -538,7 +521,7 @@ Signature help src/SignatureHelp.res 147:7
538521
"activeParameter": 0
539522
}
540523

541-
Signature help src/SignatureHelp.res 149:9
524+
Signature help src/SignatureHelp.res 145:9
542525
{
543526
"signatures": [{
544527
"label": "Three(mySpecialThing, array<option<string>>)",
@@ -549,7 +532,7 @@ Signature help src/SignatureHelp.res 149:9
549532
"activeParameter": 0
550533
}
551534

552-
Signature help src/SignatureHelp.res 151:12
535+
Signature help src/SignatureHelp.res 147:12
553536
{
554537
"signatures": [{
555538
"label": "Three(mySpecialThing, array<option<string>>)",
@@ -560,7 +543,7 @@ Signature help src/SignatureHelp.res 151:12
560543
"activeParameter": 1
561544
}
562545

563-
Signature help src/SignatureHelp.res 155:14
546+
Signature help src/SignatureHelp.res 151:14
564547
{
565548
"signatures": [{
566549
"label": "Ok(bool)",
@@ -571,7 +554,7 @@ Signature help src/SignatureHelp.res 155:14
571554
"activeParameter": 0
572555
}
573556

574-
Signature help src/SignatureHelp.res 158:19
557+
Signature help src/SignatureHelp.res 154:19
575558
{
576559
"signatures": [{
577560
"label": "Error(string)",
@@ -582,7 +565,7 @@ Signature help src/SignatureHelp.res 158:19
582565
"activeParameter": 0
583566
}
584567

585-
Signature help src/SignatureHelp.res 161:16
568+
Signature help src/SignatureHelp.res 157:16
586569
{
587570
"signatures": [{
588571
"label": "Some(bool)",

‎analysis/tests/src/expected/TypeAtPosCompletion.res.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Complete src/TypeAtPosCompletion.res 7:17
22
posCursor:[7:17] posNoWhite:[7:15] Found expr:[6:16->9:1]
33
Completable: Cexpression CTypeAtPos()->recordBody
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath CTypeAtPos()
76
[{
87
"label": "age",
@@ -24,7 +23,6 @@ Pexp_construct One:[13:8->13:11] [13:11->19:1]
2423
posCursor:[16:18] posNoWhite:[16:16] Found expr:[15:2->18:3]
2524
Completable: Cexpression CTypeAtPos()->variantPayload::One($1), recordBody
2625
Package opens Pervasives.JsxModules.place holder
27-
Resolved opens 1 pervasives
2826
ContextPath CTypeAtPos()
2927
[{
3028
"label": "age",
@@ -44,7 +42,6 @@ Complete src/TypeAtPosCompletion.res 22:12
4442
posCursor:[22:12] posNoWhite:[22:11] Found expr:[21:10->24:1]
4543
Completable: Cexpression CTypeAtPos()->array
4644
Package opens Pervasives.JsxModules.place holder
47-
Resolved opens 1 pervasives
4845
ContextPath CTypeAtPos()
4946
[{
5047
"label": "{}",

‎analysis/tests/src/expected/Xform.res.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ Xform src/Xform.res 6:5
22
posCursor:[6:3] posNoWhite:[6:1] Found expr:[6:0->11:1]
33
Completable: Cpath Value[kind]
44
Package opens Pervasives.JsxModules.place holder
5-
Resolved opens 1 pervasives
65
ContextPath Value[kind]
76
Path kind
87
Package opens Pervasives.JsxModules.place holder
9-
Resolved opens 1 pervasives
108
Hit: Replace with switch
119

1210
TextDocumentEdit: Xform.res
@@ -124,11 +122,9 @@ posCursor:[48:21] posNoWhite:[48:19] Found expr:[48:15->48:25]
124122
posCursor:[48:21] posNoWhite:[48:19] Found expr:[48:15->48:25]
125123
Completable: Cpath Value[name]
126124
Package opens Pervasives.JsxModules.place holder
127-
Resolved opens 1 pervasives
128125
ContextPath Value[name]
129126
Path name
130127
Package opens Pervasives.JsxModules.place holder
131-
Resolved opens 1 pervasives
132128
Hit: Add braces to function
133129

134130
TextDocumentEdit: Xform.res
@@ -193,11 +189,9 @@ Xform src/Xform.res 80:4
193189
posCursor:[78:16] posNoWhite:[78:14] Found expr:[78:9->82:1]
194190
Completable: Cpath Value[variant]
195191
Package opens Pervasives.JsxModules.place holder
196-
Resolved opens 1 pervasives
197192
ContextPath Value[variant]
198193
Path variant
199194
Package opens Pervasives.JsxModules.place holder
200-
Resolved opens 1 pervasives
201195
Hit: Expand catch-all
202196

203197
TextDocumentEdit: Xform.res
@@ -210,11 +204,9 @@ Xform src/Xform.res 86:4
210204
posCursor:[84:16] posNoWhite:[84:14] Found expr:[84:9->88:1]
211205
Completable: Cpath Value[variant]
212206
Package opens Pervasives.JsxModules.place holder
213-
Resolved opens 1 pervasives
214207
ContextPath Value[variant]
215208
Path variant
216209
Package opens Pervasives.JsxModules.place holder
217-
Resolved opens 1 pervasives
218210
Hit: Expand catch-all
219211

220212
TextDocumentEdit: Xform.res
@@ -227,11 +219,9 @@ Xform src/Xform.res 93:4
227219
posCursor:[90:16] posNoWhite:[90:14] Found expr:[90:9->95:1]
228220
Completable: Cpath Value[variant]
229221
Package opens Pervasives.JsxModules.place holder
230-
Resolved opens 1 pervasives
231222
ContextPath Value[variant]
232223
Path variant
233224
Package opens Pervasives.JsxModules.place holder
234-
Resolved opens 1 pervasives
235225
Hit: Expand catch-all
236226

237227
TextDocumentEdit: Xform.res
@@ -244,11 +234,9 @@ Xform src/Xform.res 101:4
244234
posCursor:[99:16] posNoWhite:[99:14] Found expr:[99:9->103:1]
245235
Completable: Cpath Value[polyvariant]
246236
Package opens Pervasives.JsxModules.place holder
247-
Resolved opens 1 pervasives
248237
ContextPath Value[polyvariant]
249238
Path polyvariant
250239
Package opens Pervasives.JsxModules.place holder
251-
Resolved opens 1 pervasives
252240
Hit: Expand catch-all
253241

254242
TextDocumentEdit: Xform.res
@@ -261,11 +249,9 @@ Xform src/Xform.res 107:4
261249
posCursor:[105:16] posNoWhite:[105:14] Found expr:[105:9->109:1]
262250
Completable: Cpath Value[polyvariant]
263251
Package opens Pervasives.JsxModules.place holder
264-
Resolved opens 1 pervasives
265252
ContextPath Value[polyvariant]
266253
Path polyvariant
267254
Package opens Pervasives.JsxModules.place holder
268-
Resolved opens 1 pervasives
269255
Hit: Expand catch-all
270256

271257
TextDocumentEdit: Xform.res
@@ -278,11 +264,9 @@ Xform src/Xform.res 115:4
278264
posCursor:[113:16] posNoWhite:[113:14] Found expr:[113:9->117:1]
279265
Completable: Cpath Value[variantOpt]
280266
Package opens Pervasives.JsxModules.place holder
281-
Resolved opens 1 pervasives
282267
ContextPath Value[variantOpt]
283268
Path variantOpt
284269
Package opens Pervasives.JsxModules.place holder
285-
Resolved opens 1 pervasives
286270
Hit: Expand catch-all
287271

288272
TextDocumentEdit: Xform.res
@@ -295,11 +279,9 @@ Xform src/Xform.res 121:4
295279
posCursor:[119:16] posNoWhite:[119:14] Found expr:[119:9->123:1]
296280
Completable: Cpath Value[variantOpt]
297281
Package opens Pervasives.JsxModules.place holder
298-
Resolved opens 1 pervasives
299282
ContextPath Value[variantOpt]
300283
Path variantOpt
301284
Package opens Pervasives.JsxModules.place holder
302-
Resolved opens 1 pervasives
303285
Hit: Expand catch-all
304286

305287
TextDocumentEdit: Xform.res
@@ -312,11 +294,9 @@ Xform src/Xform.res 127:4
312294
posCursor:[125:16] posNoWhite:[125:14] Found expr:[125:9->129:1]
313295
Completable: Cpath Value[variantOpt]
314296
Package opens Pervasives.JsxModules.place holder
315-
Resolved opens 1 pervasives
316297
ContextPath Value[variantOpt]
317298
Path variantOpt
318299
Package opens Pervasives.JsxModules.place holder
319-
Resolved opens 1 pervasives
320300
Hit: Expand catch-all
321301

322302
TextDocumentEdit: Xform.res
@@ -329,11 +309,9 @@ Xform src/Xform.res 136:4
329309
posCursor:[133:16] posNoWhite:[133:14] Found expr:[133:9->138:1]
330310
Completable: Cpath Value[polyvariantOpt]
331311
Package opens Pervasives.JsxModules.place holder
332-
Resolved opens 1 pervasives
333312
ContextPath Value[polyvariantOpt]
334313
Path polyvariantOpt
335314
Package opens Pervasives.JsxModules.place holder
336-
Resolved opens 1 pervasives
337315
Hit: Expand catch-all
338316

339317
TextDocumentEdit: Xform.res
@@ -346,11 +324,9 @@ Xform src/Xform.res 142:4
346324
posCursor:[140:16] posNoWhite:[140:14] Found expr:[140:9->144:1]
347325
Completable: Cpath Value[polyvariantOpt]
348326
Package opens Pervasives.JsxModules.place holder
349-
Resolved opens 1 pervasives
350327
ContextPath Value[polyvariantOpt]
351328
Path polyvariantOpt
352329
Package opens Pervasives.JsxModules.place holder
353-
Resolved opens 1 pervasives
354330
Hit: Expand catch-all
355331

356332
TextDocumentEdit: Xform.res

0 commit comments

Comments
 (0)
Please sign in to comment.