Skip to content

Commit 95b58cd

Browse files
committed
commit more tests
1 parent 91036ee commit 95b58cd

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

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

+12-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ Complete src/GenericJsxCompletion.res 0:8
22
posCursor:[0:8] posNoWhite:[0:6] Found expr:[0:4->0:7]
33
JSX <div:[0:4->0:7] > _children:None
44
Completable: Cjsx([div], "", [])
5-
Package opens Pervasives.JsxModules.place holder
5+
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
6+
Resolved opens 1 Stdlib
67
Path GenericJsx.Elements.props
78
[{
89
"label": "testing",
@@ -28,7 +29,8 @@ Complete src/GenericJsxCompletion.res 3:17
2829
posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:4->3:18]
2930
JSX <div:[3:4->3:7] testing[3:8->3:15]=...[3:16->3:18]> _children:None
3031
Completable: Cexpression CJsxPropValue [div] testing->recordBody
31-
Package opens Pervasives.JsxModules.place holder
32+
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
33+
Resolved opens 1 Stdlib
3234
ContextPath CJsxPropValue [div] testing
3335
Path GenericJsx.Elements.props
3436
[{
@@ -55,7 +57,8 @@ posCursor:[14:21] posNoWhite:[14:20] Found expr:[13:4->22:10]
5557
posCursor:[14:21] posNoWhite:[14:20] Found expr:[14:7->22:10]
5658
posCursor:[14:21] posNoWhite:[14:20] Found expr:[14:7->14:21]
5759
Completable: Cpath Value[someString]->st <<jsx>>
58-
Package opens Pervasives.JsxModules.place holder
60+
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
61+
Resolved opens 1 Stdlib
5962
ContextPath Value[someString]->st <<jsx>>
6063
ContextPath Value[someString]
6164
Path someString
@@ -69,13 +72,13 @@ Path Stdlib.String.st
6972
"sortText": "A",
7073
"insertTextFormat": 2
7174
}, {
72-
"label": "Stdlib.String.startsWith",
75+
"label": "String.startsWith",
7376
"kind": 12,
7477
"tags": [],
7578
"detail": "(string, string) => bool",
7679
"documentation": {"kind": "markdown", "value": "\n`startsWith(str, substr)` returns `true` if the `str` starts with `substr`,\n`false` otherwise.\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.startsWith(\"BuckleScript\", \"Buckle\") == true\nString.startsWith(\"BuckleScript\", \"\") == true\nString.startsWith(\"JavaScript\", \"Buckle\") == false\n```\n"}
7780
}, {
78-
"label": "Stdlib.String.startsWithFrom",
81+
"label": "String.startsWithFrom",
7982
"kind": 12,
8083
"tags": [],
8184
"detail": "(string, string, int) => bool",
@@ -101,8 +104,8 @@ posCursor:[20:24] posNoWhite:[20:23] Found expr:[20:10->22:4]
101104
posCursor:[20:24] posNoWhite:[20:23] Found expr:[20:10->20:24]
102105
Completable: Cpath Value[someString]->st <<jsx>>
103106
Raw opens: 1 GenericJsx.place holder
104-
Package opens Pervasives.JsxModules.place holder
105-
Resolved opens 1 GenericJsx
107+
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
108+
Resolved opens 2 Stdlib GenericJsx
106109
ContextPath Value[someString]->st <<jsx>>
107110
ContextPath Value[someString]
108111
Path someString
@@ -116,13 +119,13 @@ Path Stdlib.String.st
116119
"sortText": "A",
117120
"insertTextFormat": 2
118121
}, {
119-
"label": "Stdlib.String.startsWith",
122+
"label": "String.startsWith",
120123
"kind": 12,
121124
"tags": [],
122125
"detail": "(string, string) => bool",
123126
"documentation": {"kind": "markdown", "value": "\n`startsWith(str, substr)` returns `true` if the `str` starts with `substr`,\n`false` otherwise.\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.startsWith(\"BuckleScript\", \"Buckle\") == true\nString.startsWith(\"BuckleScript\", \"\") == true\nString.startsWith(\"JavaScript\", \"Buckle\") == false\n```\n"}
124127
}, {
125-
"label": "Stdlib.String.startsWithFrom",
128+
"label": "String.startsWithFrom",
126129
"kind": 12,
127130
"tags": [],
128131
"detail": "(string, string, int) => bool",

tests/analysis_tests/tests-incremental-typechecking/src/expected/ConstructorCompletion__Json.res.txt

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Pexp_construct Js
44
Json
55
Array:[0:8->0:21] [0:21->0:23]
66
Completable: Cexpression CTypeAtPos()->variantPayload::Array($0)
7+
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
8+
Resolved opens 1 Stdlib
79
ContextPath CTypeAtPos()
810
[{
911
"label": "[]",

tests/analysis_tests/tests-incremental-typechecking/src/expected/ConstructorCompletion__Own.res.txt

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ posCursor:[4:24] posNoWhite:[4:23] Found expr:[4:8->4:25]
33
Pexp_construct WithVariant
44
One:[4:8->4:23] [4:23->4:25]
55
Completable: Cexpression CTypeAtPos()->variantPayload::One($0)
6+
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
7+
Resolved opens 1 Stdlib
68
ContextPath CTypeAtPos()
79
[{
810
"label": "{}",

0 commit comments

Comments
 (0)