Skip to content

Commit df2e4d1

Browse files
committed
update completion
1 parent f075518 commit df2e4d1

File tree

2 files changed

+6
-71
lines changed

2 files changed

+6
-71
lines changed

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,9 +1464,6 @@ Path ForAuto.a
14641464

14651465
Complete src/Completion.res 234:34
14661466
posCursor:[234:34] posNoWhite:[234:33] Found expr:[234:18->234:36]
1467-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[234:18->234:34], ...[234:34->234:35])
1468-
posCursor:[234:34] posNoWhite:[234:33] Found expr:[234:18->234:34]
1469-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[234:18->234:30], ...[234:32->234:34])
14701467
posCursor:[234:34] posNoWhite:[234:33] Found expr:[234:32->234:34]
14711468
Pexp_ident na:[234:32->234:34]
14721469
Completable: Cpath Value[na]
@@ -2216,9 +2213,6 @@ Path AndThatOther.T
22162213

22172214
Complete src/Completion.res 381:24
22182215
posCursor:[381:24] posNoWhite:[381:23] Found expr:[381:12->381:26]
2219-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[381:12->381:24], ...[381:24->381:25])
2220-
posCursor:[381:24] posNoWhite:[381:23] Found expr:[381:12->381:24]
2221-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[381:12->381:14], ...[381:16->381:24])
22222216
posCursor:[381:24] posNoWhite:[381:23] Found expr:[381:16->381:24]
22232217
Pexp_ident ForAuto.:[381:16->381:24]
22242218
Completable: Cpath Value[ForAuto, ""]
@@ -2243,9 +2237,6 @@ Path ForAuto.
22432237

22442238
Complete src/Completion.res 384:38
22452239
posCursor:[384:38] posNoWhite:[384:37] Found expr:[384:12->384:41]
2246-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[384:12->384:39], ...[384:39->384:40])
2247-
posCursor:[384:38] posNoWhite:[384:37] Found expr:[384:12->384:39]
2248-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[384:12->384:17], ...[384:19->384:39])
22492240
posCursor:[384:38] posNoWhite:[384:37] Found expr:[384:19->384:39]
22502241
Pexp_send [384:38->384:38] e:[384:19->384:36]
22512242
Completable: Cpath Value[FAO, forAutoObject][""]
@@ -2271,9 +2262,6 @@ Path FAO.forAutoObject
22712262

22722263
Complete src/Completion.res 387:24
22732264
posCursor:[387:24] posNoWhite:[387:23] Found expr:[387:11->387:26]
2274-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[387:11->387:24], ...[387:24->387:25])
2275-
posCursor:[387:24] posNoWhite:[387:23] Found expr:[387:11->387:24]
2276-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[387:11->387:12], ...[387:14->387:24])
22772265
posCursor:[387:24] posNoWhite:[387:23] Found expr:[387:14->387:24]
22782266
Pexp_field [387:14->387:23] _:[387:24->387:24]
22792267
Completable: Cpath Value[funRecord].""
@@ -2332,9 +2320,6 @@ Path ma
23322320

23332321
Complete src/Completion.res 399:14
23342322
posCursor:[399:14] posNoWhite:[399:13] Found expr:[398:14->399:20]
2335-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[398:14->399:16], ...[399:16->399:19])
2336-
posCursor:[399:14] posNoWhite:[399:13] Found expr:[398:14->399:16]
2337-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[398:14->399:11], ...[399:13->399:16])
23382323
posCursor:[399:14] posNoWhite:[399:13] Found expr:[399:13->399:16]
23392324
Pexp_ident red:[399:13->399:16]
23402325
Completable: Cpath Value[red]
@@ -2353,9 +2338,6 @@ Path red
23532338

23542339
Complete src/Completion.res 404:25
23552340
posCursor:[404:25] posNoWhite:[404:24] Found expr:[402:14->404:31]
2356-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[402:14->404:27], ...[404:27->404:30])
2357-
posCursor:[404:25] posNoWhite:[404:24] Found expr:[402:14->404:27]
2358-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[402:14->404:22], ...[404:24->404:27])
23592341
posCursor:[404:25] posNoWhite:[404:24] Found expr:[404:24->404:27]
23602342
Pexp_ident red:[404:24->404:27]
23612343
Completable: Cpath Value[red]
@@ -2374,9 +2356,6 @@ Path red
23742356

23752357
Complete src/Completion.res 407:22
23762358
posCursor:[407:22] posNoWhite:[407:21] Found expr:[407:11->485:0]
2377-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[407:11->425:17], ...[430:0->485:0])
2378-
posCursor:[407:22] posNoWhite:[407:21] Found expr:[407:11->425:17]
2379-
Pexp_apply ...__ghost__[0:-1->0:-1] (...[407:11->407:19], ...[407:21->425:17])
23802359
posCursor:[407:22] posNoWhite:[407:21] Found expr:[407:21->425:17]
23812360
posCursor:[407:22] posNoWhite:[407:21] Found expr:[407:21->407:22]
23822361
Pexp_ident r:[407:21->407:22]

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

Lines changed: 6 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -52,56 +52,12 @@ Path
5252
}]
5353

5454
Complete src/CompletionTaggedTemplate.res 16:20
55-
posCursor:[16:20] posNoWhite:[16:19] Found expr:[16:11->0:-1]
56-
Completable: Cpath Value[meh](Nolabel, Nolabel).""
55+
posCursor:[16:20] posNoWhite:[16:19] Found expr:[16:19->16:20]
56+
Pexp_ident .:[16:19->16:20]
57+
Completable: Cpath Value[.]
5758
Package opens Stdlib.place holder Pervasives.JsxModules.place holder
5859
Resolved opens 1 Stdlib
59-
ContextPath Value[meh](Nolabel, Nolabel).""
60-
ContextPath Value[meh](Nolabel, Nolabel)
61-
ContextPath Value[meh]
62-
Path meh
63-
ContextPath Value[meh](Nolabel, Nolabel, Nolabel)->
64-
ContextPath Value[meh](Nolabel, Nolabel, Nolabel)
65-
ContextPath Value[meh]
66-
Path meh
67-
CPPipe pathFromEnv:M found:true
68-
Path M.
69-
Path
70-
[{
71-
"label": "->M.xyz",
72-
"kind": 12,
73-
"tags": [],
74-
"detail": "(t, int) => int",
75-
"documentation": null,
76-
"sortText": "xyz",
77-
"insertText": "->M.xyz",
78-
"additionalTextEdits": [{
79-
"range": {"start": {"line": 16, "character": 19}, "end": {"line": 16, "character": 20}},
80-
"newText": ""
81-
}]
82-
}, {
83-
"label": "->M.b",
84-
"kind": 12,
85-
"tags": [],
86-
"detail": "t => string",
87-
"documentation": null,
88-
"sortText": "b",
89-
"insertText": "->M.b",
90-
"additionalTextEdits": [{
91-
"range": {"start": {"line": 16, "character": 19}, "end": {"line": 16, "character": 20}},
92-
"newText": ""
93-
}]
94-
}, {
95-
"label": "->M.a",
96-
"kind": 12,
97-
"tags": [],
98-
"detail": "t => int",
99-
"documentation": null,
100-
"sortText": "a",
101-
"insertText": "->M.a",
102-
"additionalTextEdits": [{
103-
"range": {"start": {"line": 16, "character": 19}, "end": {"line": 16, "character": 20}},
104-
"newText": ""
105-
}]
106-
}]
60+
ContextPath Value[.]
61+
Path .
62+
[]
10763

0 commit comments

Comments
 (0)