-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathDestructuring.res.txt
77 lines (72 loc) · 2.02 KB
/
Destructuring.res.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Complete src/Destructuring.res 4:11
posCursor:[4:11] posNoWhite:[4:9] Found pattern:[4:4->4:12]
Completable: Cpattern Value[x]->recordBody
[{
"label": "age",
"kind": 5,
"tags": [],
"detail": "age: int\n\nx",
"documentation": null
}]
Complete src/Destructuring.res 7:8
posCursor:[7:8] posNoWhite:[7:7] Found pattern:[7:7->7:9]
Completable: Cpattern Value[x]->recordBody
[{
"label": "name",
"kind": 5,
"tags": [],
"detail": "name: string\n\nx",
"documentation": null
}, {
"label": "age",
"kind": 5,
"tags": [],
"detail": "age: int\n\nx",
"documentation": null
}]
Complete src/Destructuring.res 11:13
posCursor:[11:13] posNoWhite:[11:11] Found expr:[10:8->14:1]
posCursor:[11:13] posNoWhite:[11:11] Found expr:[11:2->13:6]
posCursor:[11:13] posNoWhite:[11:11] Found pattern:[11:6->11:14]
Completable: Cpattern Value[x]->recordBody
[{
"label": "age",
"kind": 5,
"tags": [],
"detail": "age: int\n\nx",
"documentation": null
}]
Complete src/Destructuring.res 17:10
posCursor:[17:10] posNoWhite:[17:9] Found expr:[16:9->20:1]
posCursor:[17:10] posNoWhite:[17:9] Found expr:[17:5->19:11]
posCursor:[17:10] posNoWhite:[17:9] Found pattern:[17:9->17:11]
Completable: Cpattern Value[x]->recordBody
[{
"label": "name",
"kind": 5,
"tags": [],
"detail": "name: string\n\nx",
"documentation": null
}, {
"label": "age",
"kind": 5,
"tags": [],
"detail": "age: int\n\nx",
"documentation": null
}]
Complete src/Destructuring.res 31:8
posCursor:[31:8] posNoWhite:[31:7] Found pattern:[31:7->31:9]
Completable: Cpattern Value[x]->recordBody
[{
"label": "someField",
"kind": 5,
"tags": [],
"detail": "someField: int\n\nrecordWithOptField",
"documentation": null
}, {
"label": "?someOptField",
"kind": 5,
"tags": [],
"detail": "?someOptField: option<bool>\n\nrecordWithOptField",
"documentation": {"kind": "markdown", "value": "someOptField is an optional field, and needs to be destructured using '?'."}
}]