Skip to content

Commit d9a8664

Browse files
committed
update rescript-react dependency for tests
1 parent 79cef7f commit d9a8664

File tree

17 files changed

+2804
-102
lines changed

17 files changed

+2804
-102
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rescript",
3-
"version": "13.0.0-alpha.3",
3+
"version": "13.0.0-alpha.4",
44
"description": "ReScript toolchain",
55
"type": "module",
66
"keywords": [

tests/analysis_tests/tests-reanalyze/deadcode/expected/deadcode.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359
addValueDeclaration +make Hooks.res:63:6 path:+Hooks.RenderPropRequiresConversion
360360
addRecordLabelDeclaration name Hooks.res:1:16 path:+Hooks.vehicle
361361
addRecordLabelDeclaration vehicle Hooks.res:4:12 path:+Hooks.props
362-
addValueReference Hooks.res:5:26 --> React.res:134:0
362+
addValueReference Hooks.res:5:26 --> React.res:135:0
363363
addTypeReference Hooks.res:10:29 --> Hooks.res:1:16
364364
addValueReference Hooks.res:10:29 --> Hooks.res:4:12
365365
addValueReference Hooks.res:10:75 --> Hooks.res:5:7
@@ -369,9 +369,9 @@
369369
addValueReference Hooks.res:10:75 --> Hooks.res:5:7
370370
addValueReference Hooks.res:9:7 --> React.res:7:0
371371
addValueReference Hooks.res:13:54 --> React.res:7:0
372-
addValueReference Hooks.res:13:54 --> React.res:7:0
373372
addValueReference Hooks.res:13:40 --> Hooks.res:5:7
374373
addValueReference Hooks.res:13:26 --> Hooks.res:5:14
374+
addValueReference Hooks.res:13:54 --> React.res:7:0
375375
addValueReference Hooks.res:14:5 --> ImportHooks.res:13:0
376376
addValueReference Hooks.res:15:7 --> React.res:7:0
377377
addValueReference Hooks.res:15:32 --> React.res:7:0

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

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,7 @@ Path event
275275
ContextPath CArgument CJsxPropValue [div] onMouseEnter($0)
276276
ContextPath CJsxPropValue [div] onMouseEnter
277277
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-
}]
278+
[]
289279

290280
Complete src/CompletionInferValues.res 44:50
291281
posCursor:[44:50] posNoWhite:[44:49] Found expr:[44:11->44:56]

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/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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Hover src/Fragment.res 6:19
2-
{"contents": {"kind": "markdown", "value": "```rescript\nReact.component<SectionHeader.props<React.element>>\n```\n\n---\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C12%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype SectionHeader.props<'children> = {children: 'children}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Fragment.res%22%2C1%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype React.element = Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C0%2C0%5D)\n"}}
2+
{"contents": {"kind": "markdown", "value": "```rescript\nReact.component<SectionHeader.props<React.element>>\n```\n\n---\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C13%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype SectionHeader.props<'children> = {children: 'children}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Fragment.res%22%2C1%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype React.element = Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C0%2C0%5D)\n"}}
33

44
Hover src/Fragment.res 9:56
5-
{"contents": {"kind": "markdown", "value": "```rescript\nReact.component<React.fragmentProps>\n```\n\n---\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C12%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype React.fragmentProps = {children?: element}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C41%2C0%5D)\n"}}
5+
{"contents": {"kind": "markdown", "value": "```rescript\nReact.component<React.fragmentProps>\n```\n\n---\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C13%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype React.fragmentProps = {children?: element}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C42%2C0%5D)\n"}}
66

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -472,17 +472,7 @@ Package opens Stdlib.place holder Pervasives.JsxModules.place holder
472472
Resolved opens 1 Stdlib
473473
ContextPath CJsxPropValue [div] x
474474
Path ReactDOM.domProps
475-
Path JsxDOM.domProps
476-
[{
477-
"label": "\"\"",
478-
"kind": 12,
479-
"tags": [],
480-
"detail": "string",
481-
"documentation": null,
482-
"sortText": "A",
483-
"insertText": "{\"$0\"}",
484-
"insertTextFormat": 2
485-
}]
475+
[]
486476

487477
Complete src/Jsx2.res 150:21
488478
posCursor:[150:21] posNoWhite:[150:20] Found expr:[150:11->150:32]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Path M4.make
1717
}]
1818

1919
Hover src/JsxV4.res 14:9
20-
{"contents": {"kind": "markdown", "value": "```rescript\nReact.component<M4.props<string, string, string>>\n```\n---\n Doc Comment For M4 \n\n---\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C12%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype M4.props<'first, 'fun, 'second> = {\n first: 'first,\n fun?: 'fun,\n second?: 'second,\n}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxV4.res%22%2C3%2C2%5D)\n"}}
20+
{"contents": {"kind": "markdown", "value": "```rescript\nReact.component<M4.props<string, string, string>>\n```\n---\n Doc Comment For M4 \n\n---\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C13%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype M4.props<'first, 'fun, 'second> = {\n first: 'first,\n fun?: 'fun,\n second?: 'second,\n}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxV4.res%22%2C3%2C2%5D)\n"}}
2121

2222
Create Interface src/JsxV4.res
2323
module M4: {

0 commit comments

Comments
 (0)