You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/analysis_tests/tests/src/expected/CompletionInferValues.res.txt
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,13 @@ Path Belt.Int.f
15
15
"kind": 12,
16
16
"tags": [],
17
17
"detail": "string => option<int>",
18
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assert_eq(Some(1))\n```\n"}
18
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assertEqual(Some(1))\n```\n"}
19
19
}, {
20
20
"label": "Belt.Int.fromFloat",
21
21
"kind": 12,
22
22
"tags": [],
23
23
"detail": "float => int",
24
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assert_eq(1)\n```\n"}
24
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assertEqual(1)\n```\n"}
25
25
}]
26
26
27
27
Complete src/CompletionInferValues.res 18:30
@@ -244,13 +244,13 @@ Path Belt.Int.t
244
244
"kind": 12,
245
245
"tags": [],
246
246
"detail": "int => string",
247
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
247
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
248
248
}, {
249
249
"label": "Belt.Int.toFloat",
250
250
"kind": 12,
251
251
"tags": [],
252
252
"detail": "int => float",
253
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assert_eq(1.0)\n```\n"}
253
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assertEqual(1.0)\n```\n"}
254
254
}]
255
255
256
256
Complete src/CompletionInferValues.res 50:108
@@ -473,7 +473,7 @@ Path Belt.Int.toS
473
473
"kind": 12,
474
474
"tags": [],
475
475
"detail": "int => string",
476
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
476
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
477
477
}]
478
478
479
479
Complete src/CompletionInferValues.res 98:109
@@ -498,7 +498,7 @@ Path Belt.Int.toS
498
498
"kind": 12,
499
499
"tags": [],
500
500
"detail": "int => string",
501
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
501
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
502
502
}]
503
503
504
504
Complete src/CompletionInferValues.res 102:102
@@ -524,7 +524,7 @@ Path Belt.Int.toS
524
524
"kind": 12,
525
525
"tags": [],
526
526
"detail": "int => string",
527
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
527
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
528
528
}]
529
529
530
530
Complete src/CompletionInferValues.res 106:88
@@ -656,7 +656,7 @@ Path Belt.Int.toSt
656
656
"kind": 12,
657
657
"tags": [],
658
658
"detail": "int => string",
659
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
659
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
Copy file name to clipboardExpand all lines: tests/analysis_tests/tests/src/expected/CompletionJsx.res.txt
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -230,49 +230,49 @@ Path Belt.Int.
230
230
"kind": 12,
231
231
"tags": [],
232
232
"detail": "string => option<int>",
233
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assert_eq(Some(1))\n```\n"}
233
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assertEqual(Some(1))\n```\n"}
234
234
}, {
235
235
"label": "Belt.Int.*",
236
236
"kind": 12,
237
237
"tags": [],
238
238
"detail": "(int, int) => int",
239
-
"documentation": {"kind": "markdown", "value": "\nMultiplication of two `int` values. Same as the multiplication from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 * 2, 4)\n```\n"}
239
+
"documentation": {"kind": "markdown", "value": "\nMultiplication of two `int` values. Same as the multiplication from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 * 2, 4)\n```\n"}
240
240
}, {
241
241
"label": "Belt.Int./",
242
242
"kind": 12,
243
243
"tags": [],
244
244
"detail": "(int, int) => int",
245
-
"documentation": {"kind": "markdown", "value": "\nDivision of two `int` values. Same as the division from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(4 / 2, 2)\n```\n"}
245
+
"documentation": {"kind": "markdown", "value": "\nDivision of two `int` values. Same as the division from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(4 / 2, 2)\n```\n"}
246
246
}, {
247
247
"label": "Belt.Int.toString",
248
248
"kind": 12,
249
249
"tags": [],
250
250
"detail": "int => string",
251
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
251
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
252
252
}, {
253
253
"label": "Belt.Int.toFloat",
254
254
"kind": 12,
255
255
"tags": [],
256
256
"detail": "int => float",
257
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assert_eq(1.0)\n```\n"}
257
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assertEqual(1.0)\n```\n"}
258
258
}, {
259
259
"label": "Belt.Int.fromFloat",
260
260
"kind": 12,
261
261
"tags": [],
262
262
"detail": "float => int",
263
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assert_eq(1)\n```\n"}
263
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assertEqual(1)\n```\n"}
264
264
}, {
265
265
"label": "Belt.Int.-",
266
266
"kind": 12,
267
267
"tags": [],
268
268
"detail": "(int, int) => int",
269
-
"documentation": {"kind": "markdown", "value": "\nSubtraction of two `int` values. Same as the subtraction from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 - 1, 1)\n```\n"}
269
+
"documentation": {"kind": "markdown", "value": "\nSubtraction of two `int` values. Same as the subtraction from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 - 1, 1)\n```\n"}
270
270
}, {
271
271
"label": "Belt.Int.+",
272
272
"kind": 12,
273
273
"tags": [],
274
274
"detail": "(int, int) => int",
275
-
"documentation": {"kind": "markdown", "value": "\nAddition of two `int` values. Same as the addition from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 + 2, 4)\n```\n"}
275
+
"documentation": {"kind": "markdown", "value": "\nAddition of two `int` values. Same as the addition from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 + 2, 4)\n```\n"}
276
276
}]
277
277
278
278
Complete src/CompletionJsx.res 26:14
@@ -310,49 +310,49 @@ Path Belt.Int.
310
310
"kind": 12,
311
311
"tags": [],
312
312
"detail": "string => option<int>",
313
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assert_eq(Some(1))\n```\n"}
313
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n## Examples\n\n```rescript\nBelt.Int.fromString(\"1\")->assertEqual(Some(1))\n```\n"}
314
314
}, {
315
315
"label": "Belt.Int.*",
316
316
"kind": 12,
317
317
"tags": [],
318
318
"detail": "(int, int) => int",
319
-
"documentation": {"kind": "markdown", "value": "\nMultiplication of two `int` values. Same as the multiplication from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 * 2, 4)\n```\n"}
319
+
"documentation": {"kind": "markdown", "value": "\nMultiplication of two `int` values. Same as the multiplication from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 * 2, 4)\n```\n"}
320
320
}, {
321
321
"label": "Belt.Int./",
322
322
"kind": 12,
323
323
"tags": [],
324
324
"detail": "(int, int) => int",
325
-
"documentation": {"kind": "markdown", "value": "\nDivision of two `int` values. Same as the division from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(4 / 2, 2)\n```\n"}
325
+
"documentation": {"kind": "markdown", "value": "\nDivision of two `int` values. Same as the division from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(4 / 2, 2)\n```\n"}
326
326
}, {
327
327
"label": "Belt.Int.toString",
328
328
"kind": 12,
329
329
"tags": [],
330
330
"detail": "int => string",
331
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
331
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
332
332
}, {
333
333
"label": "Belt.Int.toFloat",
334
334
"kind": 12,
335
335
"tags": [],
336
336
"detail": "int => float",
337
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assert_eq(1.0)\n```\n"}
337
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assertEqual(1.0)\n```\n"}
338
338
}, {
339
339
"label": "Belt.Int.fromFloat",
340
340
"kind": 12,
341
341
"tags": [],
342
342
"detail": "float => int",
343
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assert_eq(1)\n```\n"}
343
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `float` to an `int`.\n\n## Examples\n\n```rescript\nBelt.Int.fromFloat(1.0)->assertEqual(1)\n```\n"}
344
344
}, {
345
345
"label": "Belt.Int.-",
346
346
"kind": 12,
347
347
"tags": [],
348
348
"detail": "(int, int) => int",
349
-
"documentation": {"kind": "markdown", "value": "\nSubtraction of two `int` values. Same as the subtraction from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 - 1, 1)\n```\n"}
349
+
"documentation": {"kind": "markdown", "value": "\nSubtraction of two `int` values. Same as the subtraction from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 - 1, 1)\n```\n"}
350
350
}, {
351
351
"label": "Belt.Int.+",
352
352
"kind": 12,
353
353
"tags": [],
354
354
"detail": "(int, int) => int",
355
-
"documentation": {"kind": "markdown", "value": "\nAddition of two `int` values. Same as the addition from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassert_eq(2 + 2, 4)\n```\n"}
355
+
"documentation": {"kind": "markdown", "value": "\nAddition of two `int` values. Same as the addition from `Pervasives`.\n\n## Examples\n\n```rescript\nopen Belt.Int\nassertEqual(2 + 2, 4)\n```\n"}
Copy file name to clipboardExpand all lines: tests/analysis_tests/tests/src/expected/CompletionPipeChain.res.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -351,13 +351,13 @@ Path Belt.Int.t
351
351
"kind": 12,
352
352
"tags": [],
353
353
"detail": "int => string",
354
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assert_eq(\"1\")\n```\n"}
354
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n## Examples\n\n```rescript\nBelt.Int.toString(1)->assertEqual(\"1\")\n```\n"}
355
355
}, {
356
356
"label": "Belt.Int.toFloat",
357
357
"kind": 12,
358
358
"tags": [],
359
359
"detail": "int => float",
360
-
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assert_eq(1.0)\n```\n"}
360
+
"documentation": {"kind": "markdown", "value": "\nConverts a given `int` to a `float`.\n\n## Examples\n\n```rescript\nBelt.Int.toFloat(1)->assertEqual(1.0)\n```\n"}
"documentation": {"kind": "markdown", "value": "\n`map(array, fn)` returns a new array with all elements from `array`, each element transformed using the provided `fn`.\n\nSee [`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) on MDN.\n\n## Examples\n\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\nlet mappedArray = array->Array.map(greeting => greeting ++ \" to you\")\n\nassert_eq(mappedArray, [\"Hello to you\", \"Hi to you\", \"Good bye to you\"])\n```\n"}
457
+
"documentation": {"kind": "markdown", "value": "\n`map(array, fn)` returns a new array with all elements from `array`, each element transformed using the provided `fn`.\n\nSee [`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) on MDN.\n\n## Examples\n\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\nlet mappedArray = array->Array.map(greeting => greeting ++ \" to you\")\n\nassertEqual(mappedArray, [\"Hello to you\", \"Hi to you\", \"Good bye to you\"])\n```\n"}
0 commit comments