Skip to content

Commit 0cef7b4

Browse files
committed
Update snapshots for now
1 parent cf65c96 commit 0cef7b4

File tree

15 files changed

+59
-207
lines changed

15 files changed

+59
-207
lines changed

tests/analysis_tests/tests-generic-jsx-transform/src/expected/GenericJsxCompletion.res.txt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Complete src/GenericJsxCompletion.res 0:8
2-
posCursor:[0:8] posNoWhite:[0:6] Found expr:[0:3->0:7]
3-
JSX <div:[0:4->0:7] > _children:None
1+
Complete src/GenericJsxCompletion.res 4:8
2+
posCursor:[4:8] posNoWhite:[4:6] Found expr:[4:3->4:7]
3+
JSX <div:[4:4->4:7] > _children:None
44
Completable: Cjsx([div], "", [])
55
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
66
Resolved opens 1 Stdlib
@@ -25,9 +25,9 @@ Path GenericJsx.Elements.props
2525
"documentation": null
2626
}]
2727

28-
Complete src/GenericJsxCompletion.res 3:17
29-
posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:3->3:18]
30-
JSX <div:[3:4->3:7] testing[3:8->3:15]=...[3:16->3:18]> _children:None
28+
Complete src/GenericJsxCompletion.res 7:17
29+
posCursor:[7:17] posNoWhite:[7:16] Found expr:[7:3->7:18]
30+
JSX <div:[7:4->7:7] testing[7:8->7:15]=...[7:16->7:18]> _children:None
3131
Completable: Cexpression CJsxPropValue [div] testing->recordBody
3232
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
3333
Resolved opens 1 Stdlib
@@ -47,15 +47,15 @@ Path GenericJsx.Elements.props
4747
"documentation": null
4848
}]
4949

50-
Complete src/GenericJsxCompletion.res 14:21
51-
posCursor:[14:21] posNoWhite:[14:20] Found expr:[8:13->23:3]
52-
posCursor:[14:21] posNoWhite:[14:20] Found expr:[9:4->22:10]
53-
posCursor:[14:21] posNoWhite:[14:20] Found expr:[10:4->22:10]
54-
posCursor:[14:21] posNoWhite:[14:20] Found expr:[11:4->22:10]
55-
posCursor:[14:21] posNoWhite:[14:20] Found expr:[12:4->22:10]
56-
posCursor:[14:21] posNoWhite:[14:20] Found expr:[13:4->22:10]
57-
posCursor:[14:21] posNoWhite:[14:20] Found expr:[14:7->22:10]
58-
posCursor:[14:21] posNoWhite:[14:20] Found expr:[14:7->14:21]
50+
Complete src/GenericJsxCompletion.res 18:21
51+
posCursor:[18:21] posNoWhite:[18:20] Found expr:[12:13->27:3]
52+
posCursor:[18:21] posNoWhite:[18:20] Found expr:[13:4->26:10]
53+
posCursor:[18:21] posNoWhite:[18:20] Found expr:[14:4->26:10]
54+
posCursor:[18:21] posNoWhite:[18:20] Found expr:[15:4->26:10]
55+
posCursor:[18:21] posNoWhite:[18:20] Found expr:[16:4->26:10]
56+
posCursor:[18:21] posNoWhite:[18:20] Found expr:[17:4->26:10]
57+
posCursor:[18:21] posNoWhite:[18:20] Found expr:[18:7->26:10]
58+
posCursor:[18:21] posNoWhite:[18:20] Found expr:[18:7->18:21]
5959
Completable: Cpath Value[someString]->st <<jsx>>
6060
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
6161
Resolved opens 1 Stdlib
@@ -86,17 +86,17 @@ Path st
8686
"documentation": {"kind": "markdown", "value": "\n`startsWithFrom(str, substr, n)` returns `true` if the `str` starts\nwith `substr` starting at position `n`, `false` otherwise. If `n` is negative,\nthe search starts at the beginning of `str`.\nSee [`String.startsWith`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith) on MDN.\n\n## Examples\n\n```rescript\nString.startsWithFrom(\"BuckleScript\", \"kle\", 3) == true\nString.startsWithFrom(\"BuckleScript\", \"\", 3) == true\nString.startsWithFrom(\"JavaScript\", \"Buckle\", 2) == false\n```\n"}
8787
}]
8888

89-
Complete src/GenericJsxCompletion.res 20:24
90-
posCursor:[20:24] posNoWhite:[20:23] Found expr:[8:13->23:3]
91-
posCursor:[20:24] posNoWhite:[20:23] Found expr:[9:4->22:10]
92-
posCursor:[20:24] posNoWhite:[20:23] Found expr:[10:4->22:10]
93-
posCursor:[20:24] posNoWhite:[20:23] Found expr:[11:4->22:10]
94-
posCursor:[20:24] posNoWhite:[20:23] Found expr:[12:4->22:10]
95-
posCursor:[20:24] posNoWhite:[20:23] Found expr:[13:4->22:10]
96-
posCursor:[20:24] posNoWhite:[20:23] Found expr:[16:4->22:10]
97-
posCursor:[20:24] posNoWhite:[20:23] Found expr:[17:4->22:10]
98-
JSX <div:[17:5->17:8] > _children:18:7
99-
posCursor:[20:24] posNoWhite:[20:23] Found expr:[20:10->20:24]
89+
Complete src/GenericJsxCompletion.res 24:24
90+
posCursor:[24:24] posNoWhite:[24:23] Found expr:[12:13->27:3]
91+
posCursor:[24:24] posNoWhite:[24:23] Found expr:[13:4->26:10]
92+
posCursor:[24:24] posNoWhite:[24:23] Found expr:[14:4->26:10]
93+
posCursor:[24:24] posNoWhite:[24:23] Found expr:[15:4->26:10]
94+
posCursor:[24:24] posNoWhite:[24:23] Found expr:[16:4->26:10]
95+
posCursor:[24:24] posNoWhite:[24:23] Found expr:[17:4->26:10]
96+
posCursor:[24:24] posNoWhite:[24:23] Found expr:[20:4->26:10]
97+
posCursor:[24:24] posNoWhite:[24:23] Found expr:[21:4->26:10]
98+
JSX <div:[21:5->21:8] > _children:22:7
99+
posCursor:[24:24] posNoWhite:[24:23] Found expr:[24:10->24:24]
100100
Completable: Cpath Value[someString]->st <<jsx>>
101101
Raw opens: 1 GenericJsx.place holder
102102
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
Complete src/ConstructorCompletion__Json.res 0:22
2-
posCursor:[0:22] posNoWhite:[0:21] Found expr:[0:8->0:23]
1+
Complete src/ConstructorCompletion__Json.res 0:25
2+
posCursor:[0:25] posNoWhite:[0:24] Found expr:[0:11->0:26]
33
Pexp_construct Js
44
Json
5-
Array:[0:8->0:21] [0:21->0:23]
5+
Array:[0:11->0:24] [0:24->0:26]
66
Completable: Cexpression CTypeAtPos()->variantPayload::Array($0)
77
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
88
Resolved opens 1 Stdlib
99
ContextPath CTypeAtPos()
10-
[{
11-
"label": "[]",
12-
"kind": 12,
13-
"tags": [],
14-
"detail": "t",
15-
"documentation": {"kind": "markdown", "value": " \nA type representing a JSON object.\n\n\n```rescript\n@unboxed\ntype t =\n | Boolean(bool)\n | @as(null) Null\n | String(string)\n | Number(float)\n | Object(dict<t>)\n | Array(array<t>)\n```"},
16-
"sortText": "A",
17-
"insertText": "[$0]",
18-
"insertTextFormat": 2
19-
}]
10+
[]
2011

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
1-
Complete src/ConstructorCompletion__Own.res 4:24
2-
posCursor:[4:24] posNoWhite:[4:23] Found expr:[4:8->4:25]
1+
Complete src/ConstructorCompletion__Own.res 4:27
2+
posCursor:[4:27] posNoWhite:[4:26] Found expr:[4:11->4:28]
33
Pexp_construct WithVariant
4-
One:[4:8->4:23] [4:23->4:25]
4+
One:[4:11->4:26] [4:26->4:28]
55
Completable: Cexpression CTypeAtPos()->variantPayload::One($0)
66
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
77
Resolved opens 1 Stdlib
88
ContextPath CTypeAtPos()
9-
[{
10-
"label": "{}",
11-
"kind": 12,
12-
"tags": [],
13-
"detail": "{miss: bool}",
14-
"documentation": {"kind": "markdown", "value": "```rescript\n{miss: bool}\n```"},
15-
"sortText": "A",
16-
"insertText": "{$0}",
17-
"insertTextFormat": 2
18-
}]
9+
[]
1910

tests/analysis_tests/tests/src/expected/CompletionAttributes.res.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Completable: CdecoratorPayload(module=)
1919
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
2020
Resolved opens 1 Stdlib
2121
[{
22-
"label": "@rescript/react",
22+
"label": "@tests/rescript-react",
2323
"kind": 4,
2424
"tags": [],
2525
"detail": "Package",
@@ -186,7 +186,7 @@ Completable: CdecoratorPayload(module=)
186186
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
187187
Resolved opens 1 Stdlib
188188
[{
189-
"label": "@rescript/react",
189+
"label": "@tests/rescript-react",
190190
"kind": 4,
191191
"tags": [],
192192
"detail": "Package",
@@ -211,7 +211,7 @@ Completable: CdecoratorPayload(module=)
211211
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
212212
Resolved opens 1 Stdlib
213213
[{
214-
"label": "@rescript/react",
214+
"label": "@tests/rescript-react",
215215
"kind": 4,
216216
"tags": [],
217217
"detail": "Package",

tests/analysis_tests/tests/src/expected/CompletionExpressions.res.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,13 +865,13 @@ ContextPath CArgument Value[fnTakingCallback]($2)
865865
ContextPath Value[fnTakingCallback]
866866
Path fnTakingCallback
867867
[{
868-
"label": "event => event",
868+
"label": "mouse => mouse",
869869
"kind": 12,
870870
"tags": [],
871871
"detail": "ReactEvent.Mouse.t => unit",
872872
"documentation": null,
873873
"sortText": "A",
874-
"insertText": "${1:event} => ${0:event}",
874+
"insertText": "${1:mouse} => ${0:mouse}",
875875
"insertTextFormat": 2
876876
}]
877877

tests/analysis_tests/tests/src/expected/CompletionInferValues.res.txt

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -250,16 +250,7 @@ ContextPath CArgument CArgument Value[reactEventFn]($0)($0)
250250
ContextPath CArgument Value[reactEventFn]($0)
251251
ContextPath Value[reactEventFn]
252252
Path reactEventFn
253-
CPPipe pathFromEnv:ReactEvent.Mouse found:false
254-
Path ReactEvent.Mouse.pr
255-
Path pr
256-
[{
257-
"label": "ReactEvent.Mouse.preventDefault",
258-
"kind": 12,
259-
"tags": [],
260-
"detail": "t => unit",
261-
"documentation": null
262-
}]
253+
[]
263254

264255
Complete src/CompletionInferValues.res 41:50
265256
posCursor:[41:50] posNoWhite:[41:49] Found expr:[41:11->41:56]
@@ -275,17 +266,7 @@ Path event
275266
ContextPath CArgument CJsxPropValue [div] onMouseEnter($0)
276267
ContextPath CJsxPropValue [div] onMouseEnter
277268
Path ReactDOM.domProps
278-
Path JsxDOM.domProps
279-
CPPipe pathFromEnv:JsxEvent.Mouse found:false
280-
Path JsxEvent.Mouse.pr
281-
Path pr
282-
[{
283-
"label": "JsxEvent.Mouse.preventDefault",
284-
"kind": 12,
285-
"tags": [],
286-
"detail": "t => unit",
287-
"documentation": null
288-
}]
269+
[]
289270

290271
Complete src/CompletionInferValues.res 44:50
291272
posCursor:[44:50] posNoWhite:[44:49] Found expr:[44:11->44:56]
@@ -832,22 +813,7 @@ ContextPath CArgument CArgument Value[fn2](~cb)($0)
832813
ContextPath CArgument Value[fn2](~cb)
833814
ContextPath Value[fn2]
834815
Path fn2
835-
CPPipe pathFromEnv:ReactDOM.Client.Root found:false
836-
Path ReactDOM.Client.Root.
837-
Path
838-
[{
839-
"label": "ReactDOM.Client.Root.unmount",
840-
"kind": 12,
841-
"tags": [],
842-
"detail": "(t, unit) => unit",
843-
"documentation": null
844-
}, {
845-
"label": "ReactDOM.Client.Root.render",
846-
"kind": 12,
847-
"tags": [],
848-
"detail": "(t, React.element) => unit",
849-
"documentation": null
850-
}]
816+
[]
851817

852818
Complete src/CompletionInferValues.res 139:30
853819
posCursor:[139:30] posNoWhite:[139:29] Found expr:[139:3->139:33]
@@ -974,22 +940,7 @@ ContextPath CArgument CArgument Value[CompletionSupport2, makeRenderer](~render)
974940
ContextPath CArgument Value[CompletionSupport2, makeRenderer](~render)
975941
ContextPath Value[CompletionSupport2, makeRenderer]
976942
Path CompletionSupport2.makeRenderer
977-
CPPipe pathFromEnv:ReactDOM.Client.Root found:false
978-
Path ReactDOM.Client.Root.
979-
Path
980-
[{
981-
"label": "ReactDOM.Client.Root.unmount",
982-
"kind": 12,
983-
"tags": [],
984-
"detail": "(t, unit) => unit",
985-
"documentation": null
986-
}, {
987-
"label": "ReactDOM.Client.Root.render",
988-
"kind": 12,
989-
"tags": [],
990-
"detail": "(t, React.element) => unit",
991-
"documentation": null
992-
}]
943+
[]
993944

994945
Hover src/CompletionInferValues.res 160:27
995946
Nothing at that position. Now trying to use completion.

tests/analysis_tests/tests/src/expected/CompletionJsx.res.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -629,14 +629,8 @@ Completable: Cjsx([h1], hidd, [hidd])
629629
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
630630
Resolved opens 1 Stdlib
631631
Path ReactDOM.domProps
632-
Path JsxDOM.domProps
633-
[{
634-
"label": "hidden",
635-
"kind": 4,
636-
"tags": [],
637-
"detail": "bool",
638-
"documentation": null
639-
}]
632+
[completing-lowercase-jsx] could not find element props to complete from.
633+
[]
640634

641635
Complete src/CompletionJsx.res 61:30
642636
posCursor:[61:30] posNoWhite:[61:28] Found expr:[61:3->61:29]

tests/analysis_tests/tests/src/expected/CompletionJsxProps.res.txt

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -223,20 +223,7 @@ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
223223
Resolved opens 1 Stdlib
224224
ContextPath CJsxPropValue [div] muted
225225
Path ReactDOM.domProps
226-
Path JsxDOM.domProps
227-
[{
228-
"label": "true",
229-
"kind": 4,
230-
"tags": [],
231-
"detail": "bool",
232-
"documentation": null
233-
}, {
234-
"label": "false",
235-
"kind": 4,
236-
"tags": [],
237-
"detail": "bool",
238-
"documentation": null
239-
}]
226+
[]
240227

241228
Complete src/CompletionJsxProps.res 18:29
242229
posCursor:[18:29] posNoWhite:[18:28] Found expr:[18:11->18:32]
@@ -246,17 +233,7 @@ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
246233
Resolved opens 1 Stdlib
247234
ContextPath CJsxPropValue [div] onMouseEnter
248235
Path ReactDOM.domProps
249-
Path JsxDOM.domProps
250-
[{
251-
"label": "event => event",
252-
"kind": 12,
253-
"tags": [],
254-
"detail": "JsxEvent.Mouse.t => unit",
255-
"documentation": null,
256-
"sortText": "A",
257-
"insertText": "{${1:event} => ${0:event}}",
258-
"insertTextFormat": 2
259-
}]
236+
[]
260237

261238
Complete src/CompletionJsxProps.res 22:52
262239
posCursor:[22:52] posNoWhite:[22:51] Found expr:[22:11->22:52]

tests/analysis_tests/tests/src/expected/CompletionPipeChain.res.txt

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -470,16 +470,7 @@ Path support
470470
CPPipe pathFromEnv:CompletionSupport.Nested found:false
471471
Path CompletionSupport.Nested.root
472472
Path root
473-
CPPipe pathFromEnv:ReactDOM.Client.Root found:false
474-
Path ReactDOM.Client.Root.ren
475-
Path ren
476-
[{
477-
"label": "ReactDOM.Client.Root.render",
478-
"kind": 12,
479-
"tags": [],
480-
"detail": "(t, React.element) => unit",
481-
"documentation": null
482-
}]
473+
[]
483474

484475
Complete src/CompletionPipeChain.res 88:16
485476
posCursor:[88:16] posNoWhite:[88:15] Found expr:[76:15->93:1]
@@ -496,16 +487,7 @@ Resolved opens 1 Stdlib
496487
ContextPath Value[root]->ren
497488
ContextPath Value[root]
498489
Path root
499-
CPPipe pathFromEnv:ReactDOM.Client.Root found:false
500-
Path ReactDOM.Client.Root.ren
501-
Path ren
502-
[{
503-
"label": "ReactDOM.Client.Root.render",
504-
"kind": 12,
505-
"tags": [],
506-
"detail": "(t, React.element) => unit",
507-
"documentation": null
508-
}]
490+
[]
509491

510492
Complete src/CompletionPipeChain.res 95:20
511493
posCursor:[95:20] posNoWhite:[95:19] Found expr:[95:3->95:21]

tests/analysis_tests/tests/src/expected/Div.res.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ Completable: Cjsx([div], dangerous, [dangerous])
88
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
99
Resolved opens 1 Stdlib
1010
Path ReactDOM.domProps
11-
Path JsxDOM.domProps
12-
[{
13-
"label": "dangerouslySetInnerHTML",
14-
"kind": 4,
15-
"tags": [],
16-
"detail": "{\"__html\": string}",
17-
"documentation": null
18-
}]
11+
[completing-lowercase-jsx] could not find element props to complete from.
12+
[]
1913

0 commit comments

Comments
 (0)