Skip to content

Commit ed42655

Browse files
committed
analysis output
1 parent fc77c5b commit ed42655

File tree

8 files changed

+114
-106
lines changed

8 files changed

+114
-106
lines changed

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

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

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

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

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

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

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ Path
5353
"kind": 12,
5454
"tags": [1],
5555
"detail": "t<'a> => 'a",
56+
<<<<<<< HEAD
5657
"documentation": {"kind": "markdown", "value": "Deprecated: Use `getOrThrow` instead\n\n\n`getExn(value)` throws an exception if `null`, otherwise returns the value.\n\n```rescript\nNull.getExn(Null.make(3)) == 3\n\nswitch Null.getExn(%raw(\"'ReScript'\")) {\n| exception Invalid_argument(_) => assert(false)\n| value => value == \"ReScript\"\n}\n\nswitch Null.getExn(%raw(\"null\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n```\n\n## Exceptions\n\n- Throws `Invalid_argument` if `value` is `null`\n"},
58+
=======
59+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`getExn(value)` raises an exception if `null`, otherwise returns the value.\n\n```rescript\nNull.getExn(Null.make(3)) == 3\n\nswitch Null.getExn(%raw(\"'ReScript'\")) {\n| exception Invalid_argument(_) => assert(false)\n| value => value == \"ReScript\"\n}\n\nswitch Null.getExn(%raw(\"null\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n```\n\n## Exceptions\n\n- Raises `Invalid_argument` if `value` is `null`\n"},
60+
>>>>>>> 0b13ce2a2 (analysis output)
5761
"sortText": "getExn",
5862
"insertText": "->Null.getExn",
5963
"additionalTextEdits": [{
@@ -137,7 +141,7 @@ Path
137141
"kind": 12,
138142
"tags": [1],
139143
"detail": "(t<'a>, 'b, 'a => 'b) => 'b",
140-
"documentation": {"kind": "markdown", "value": "Deprecated: Use mapOr instead\n\n"},
144+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n"},
141145
"sortText": "mapWithDefault",
142146
"insertText": "->Null.mapWithDefault",
143147
"additionalTextEdits": [{
@@ -149,7 +153,7 @@ Path
149153
"kind": 12,
150154
"tags": [1],
151155
"detail": "(t<'a>, 'a) => 'a",
152-
"documentation": {"kind": "markdown", "value": "Deprecated: Use getOr instead\n\n"},
156+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n"},
153157
"sortText": "getWithDefault",
154158
"insertText": "->Null.getWithDefault",
155159
"additionalTextEdits": [{
@@ -249,7 +253,11 @@ Path
249253
"kind": 12,
250254
"tags": [1],
251255
"detail": "t<'a> => 'a",
256+
<<<<<<< HEAD
252257
"documentation": {"kind": "markdown", "value": "Deprecated: Use `getOrThrow` instead\n\n\n`getExn(value)` throws an exception if `null` or `undefined`, otherwise returns the value.\n\n```rescript\nswitch Nullable.getExn(%raw(\"'Hello'\")) {\n| exception Invalid_argument(_) => assert(false)\n| value => value == \"Hello\"\n}\n\nswitch Nullable.getExn(%raw(\"null\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n\nswitch Nullable.getExn(%raw(\"undefined\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n```\n\n## Exceptions\n\n- Throws `Invalid_argument` if `value` is `null` or `undefined`\n"},
258+
=======
259+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`getExn(value)` raises an exception if `null` or `undefined`, otherwise returns the value.\n\n```rescript\nswitch Nullable.getExn(%raw(\"'Hello'\")) {\n| exception Invalid_argument(_) => assert(false)\n| value => value == \"Hello\"\n}\n\nswitch Nullable.getExn(%raw(\"null\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n\nswitch Nullable.getExn(%raw(\"undefined\")) {\n| exception Invalid_argument(_) => assert(true)\n| _ => assert(false)\n}\n```\n\n## Exceptions\n\n- Raises `Invalid_argument` if `value` is `null` or `undefined`\n"},
260+
>>>>>>> 0b13ce2a2 (analysis output)
253261
"sortText": "getExn",
254262
"insertText": "->Nullable.getExn",
255263
"additionalTextEdits": [{
@@ -333,7 +341,7 @@ Path
333341
"kind": 12,
334342
"tags": [1],
335343
"detail": "(t<'a>, 'b, 'a => 'b) => 'b",
336-
"documentation": {"kind": "markdown", "value": "Deprecated: Use mapOr instead\n\n"},
344+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n"},
337345
"sortText": "mapWithDefault",
338346
"insertText": "->Nullable.mapWithDefault",
339347
"additionalTextEdits": [{
@@ -345,7 +353,7 @@ Path
345353
"kind": 12,
346354
"tags": [1],
347355
"detail": "(t<'a>, 'a) => 'a",
348-
"documentation": {"kind": "markdown", "value": "Deprecated: Use getOr instead\n\n"},
356+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n"},
349357
"sortText": "getWithDefault",
350358
"insertText": "->Nullable.getWithDefault",
351359
"additionalTextEdits": [{

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,25 +329,25 @@ Path t
329329
"kind": 12,
330330
"tags": [1],
331331
"detail": "(int, ~radix: int) => string",
332-
"documentation": {"kind": "markdown", "value": "Deprecated: Use `toString` instead\n\n\n`toStringWithRadix(n, ~radix)` return a `string` representing the given value.\n`~radix` specifies the radix base to use for the formatted number.\nSee [`Number.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString)\non MDN.\n\n## Examples\n\n```rescript\nInt.toStringWithRadix(6, ~radix=2) // \"110\"\nInt.toStringWithRadix(373592855, ~radix=16) // \"16449317\"\nInt.toStringWithRadix(123456, ~radix=36) // \"2n9c\"\n```\n\n## Exceptions\n\n`RangeError`: if `radix` is less than 2 or greater than 36.\n"}
332+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`toStringWithRadix(n, ~radix)` return a `string` representing the given value.\n`~radix` specifies the radix base to use for the formatted number.\nSee [`Number.toString`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString)\non MDN.\n\n## Examples\n\n```rescript\nInt.toStringWithRadix(6, ~radix=2) // \"110\"\nInt.toStringWithRadix(373592855, ~radix=16) // \"16449317\"\nInt.toStringWithRadix(123456, ~radix=36) // \"2n9c\"\n```\n\n## Exceptions\n\n`RangeError`: if `radix` is less than 2 or greater than 36.\n"}
333333
}, {
334334
"label": "Int.toExponentialWithPrecision",
335335
"kind": 12,
336336
"tags": [1],
337337
"detail": "(int, ~digits: int) => string",
338-
"documentation": {"kind": "markdown", "value": "Deprecated: Use `toExponential` instead\n\n\n`toExponential(n, ~digits)` return a `string` representing the given value in\nexponential notation. `digits` specifies how many digits should appear after\nthe decimal point. See [`Number.toExponential`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toExponential)\non MDN.\n\n## Examples\n\n```rescript\nInt.toExponentialWithPrecision(77, ~digits=2) // \"7.70e+1\"\nInt.toExponentialWithPrecision(5678, ~digits=2) // \"5.68e+3\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` less than 0 or greater than 10.\n"}
338+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`toExponential(n, ~digits)` return a `string` representing the given value in\nexponential notation. `digits` specifies how many digits should appear after\nthe decimal point. See [`Number.toExponential`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toExponential)\non MDN.\n\n## Examples\n\n```rescript\nInt.toExponentialWithPrecision(77, ~digits=2) // \"7.70e+1\"\nInt.toExponentialWithPrecision(5678, ~digits=2) // \"5.68e+3\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` less than 0 or greater than 10.\n"}
339339
}, {
340340
"label": "Int.toFixedWithPrecision",
341341
"kind": 12,
342342
"tags": [1],
343343
"detail": "(int, ~digits: int) => string",
344-
"documentation": {"kind": "markdown", "value": "Deprecated: Use `toFixed` instead\n\n\n`toFixedWithPrecision(n, ~digits)` return a `string` representing the given\nvalue using fixed-point notation. `digits` specifies how many digits should\nappear after the decimal point. See [`Number.toFixed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed)\non MDN.\n\n## Examples\n\n```rescript\nInt.toFixedWithPrecision(300, ~digits=4) // \"300.0000\"\nInt.toFixedWithPrecision(300, ~digits=1) // \"300.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is less than 0 or larger than 100.\n"}
344+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`toFixedWithPrecision(n, ~digits)` return a `string` representing the given\nvalue using fixed-point notation. `digits` specifies how many digits should\nappear after the decimal point. See [`Number.toFixed`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed)\non MDN.\n\n## Examples\n\n```rescript\nInt.toFixedWithPrecision(300, ~digits=4) // \"300.0000\"\nInt.toFixedWithPrecision(300, ~digits=1) // \"300.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is less than 0 or larger than 100.\n"}
345345
}, {
346346
"label": "Int.toPrecisionWithPrecision",
347347
"kind": 12,
348348
"tags": [1],
349349
"detail": "(int, ~digits: int) => string",
350-
"documentation": {"kind": "markdown", "value": "Deprecated: Use `toPrecision` instead\n\n\n`toPrecisionWithPrecision(n, ~digits)` return a `string` representing the giver value with\nprecision. `digits` specifies the number of significant digits. See [`Number.toPrecision`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision) on MDN.\n\n## Examples\n\n```rescript\nInt.toPrecisionWithPrecision(100, ~digits=2) // \"1.0e+2\"\nInt.toPrecisionWithPrecision(1, ~digits=2) // \"1.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is not between 1 and 100 (inclusive).\n Implementations are allowed to support larger and smaller values as well.\n ECMA-262 only requires a precision of up to 21 significant digits.\n"}
350+
"documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`toPrecisionWithPrecision(n, ~digits)` return a `string` representing the giver value with\nprecision. `digits` specifies the number of significant digits. See [`Number.toPrecision`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toPrecision) on MDN.\n\n## Examples\n\n```rescript\nInt.toPrecisionWithPrecision(100, ~digits=2) // \"1.0e+2\"\nInt.toPrecisionWithPrecision(1, ~digits=2) // \"1.0\"\n```\n\n## Exceptions\n\n- `RangeError`: If `digits` is not between 1 and 100 (inclusive).\n Implementations are allowed to support larger and smaller values as well.\n ECMA-262 only requires a precision of up to 21 significant digits.\n"}
351351
}, {
352352
"label": "Int.toPrecision",
353353
"kind": 12,

0 commit comments

Comments
 (0)