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: analysis/tests/src/expected/DotCompletionEverywhere.res.txt
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -217,3 +217,38 @@ Path obj
217
217
}
218
218
}]
219
219
220
+
Complete src/DotCompletionEverywhere.res 66:8
221
+
posCursor:[66:8] posNoWhite:[66:7] Found expr:[66:3->66:8]
222
+
Pexp_field [66:3->66:6] m:[66:7->66:8]
223
+
Completable: Cpath Value[arr].m
224
+
Package opens Pervasives.JsxModules.place holder
225
+
Resolved opens 1 pervasives
226
+
ContextPath Value[arr].m
227
+
ContextPath Value[arr]
228
+
Path arr
229
+
CPPipe pathFromEnv: found:true
230
+
Path Js.Array2.m
231
+
[{
232
+
"label": "->Js.Array2.mapi",
233
+
"kind": 12,
234
+
"tags": [],
235
+
"detail": "(t<'a>, ('a, int) => 'b) => t<'b>",
236
+
"documentation": {"kind": "markdown", "value": "\nApplies the function (the second argument) to each item in the array, returning\na new array. The function acceps two arguments: an item from the array and its\nindex number. The result array does not have to have elements of the same type\nas the input array. See\n[`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\non MDN.\n\n## Examples\n\n```rescript\n// multiply each item in array by its position\nlet product = (item, index) => item * index\nJs.Array2.mapi([10, 11, 12], product) == [0, 11, 24]\n```\n"},
"documentation": {"kind": "markdown", "value": "\nApplies the function (the second argument) to each item in the array, returning\na new array. The result array does not have to have elements of the same type\nas the input array. See\n[`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\non MDN.\n\n## Examples\n\n```rescript\nJs.Array2.map([12, 4, 8], x => x * x) == [144, 16, 64]\nJs.Array2.map([\"animal\", \"vegetable\", \"mineral\"], Js.String.length) == [6, 9, 7]\n```\n"},
0 commit comments