From 95172efbf3da6ce2e86f4b8c87cfff09702b9ef8 Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Tue, 11 Apr 2023 13:53:40 +0200 Subject: [PATCH 1/2] Switch tests onto v11 alpha. --- analysis/tests/package-lock.json | 15 +- analysis/tests/package.json | 2 +- .../src/expected/BrokenParserCases.res.txt | 3 + .../src/expected/CompletePrioritize1.res.txt | 1 + .../src/expected/CompletePrioritize2.res.txt | 2 + .../tests/src/expected/Completion.res.txt | 136 +++++++++++------- .../expected/CompletionExpressions.res.txt | 38 +++++ .../CompletionFunctionArguments.res.txt | 16 +++ .../expected/CompletionInferValues.res.txt | 51 +++++-- .../tests/src/expected/CompletionJsx.res.txt | 10 ++ .../src/expected/CompletionJsxProps.res.txt | 19 ++- .../src/expected/CompletionPattern.res.txt | 47 ++++++ .../src/expected/CompletionPipeChain.res.txt | 16 +++ .../expected/CompletionPipeSubmodules.res.txt | 4 + .../expected/CompletionTypeAnnotation.res.txt | 15 ++ analysis/tests/src/expected/Cross.res.txt | 1 + analysis/tests/src/expected/Debug.res.txt | 2 +- .../tests/src/expected/Destructuring.res.txt | 5 + analysis/tests/src/expected/Div.res.txt | 1 + .../src/expected/ExhaustiveSwitch.res.txt | 4 + analysis/tests/src/expected/Fragment.res.txt | 2 +- analysis/tests/src/expected/Hover.res.txt | 19 ++- analysis/tests/src/expected/Jsx2.res.txt | 32 +++++ analysis/tests/src/expected/Jsx2.resi.txt | 2 + analysis/tests/src/expected/JsxV4.res.txt | 1 + .../src/expected/RecordCompletion.res.txt | 4 + .../tests/src/expected/RecoveryOnProp.res.txt | 1 + .../tests/src/expected/SignatureHelp.res.txt | 17 +++ 28 files changed, 388 insertions(+), 78 deletions(-) diff --git a/analysis/tests/package-lock.json b/analysis/tests/package-lock.json index 15812da67..c1d438a87 100644 --- a/analysis/tests/package-lock.json +++ b/analysis/tests/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "rescript": "^10.1.4" + "rescript": "^11.0.0-alpha.1" }, "devDependencies": { "@rescript/react": "^0.11.0-rc.3" @@ -69,13 +69,12 @@ } }, "node_modules/rescript": { - "version": "10.1.4", - "resolved": "https://registry.npmjs.org/rescript/-/rescript-10.1.4.tgz", - "integrity": "sha512-FFKlS9AG/XrLepWsyw7B+A9DtQBPWEPDPDKghV831Y2KGbie+eeFBOS0xtRHp0xbt7S0N2Dm6hhX+kTZQ/3Ybg==", + "version": "11.0.0-alpha.1", + "resolved": "https://registry.npmjs.org/rescript/-/rescript-11.0.0-alpha.1.tgz", + "integrity": "sha512-+01rdTX9FCOZrEJFVrk2XRgrIlGLf93EKsNwoW5iq0jQiKcYGCdHeSbJvVYF+cximgm+CmWhSkR42l+Il6t12A==", "hasInstallScript": true, "bin": { "bsc": "bsc", - "bsrefmt": "bsrefmt", "bstracing": "lib/bstracing", "rescript": "rescript" } @@ -138,9 +137,9 @@ } }, "rescript": { - "version": "10.1.4", - "resolved": "https://registry.npmjs.org/rescript/-/rescript-10.1.4.tgz", - "integrity": "sha512-FFKlS9AG/XrLepWsyw7B+A9DtQBPWEPDPDKghV831Y2KGbie+eeFBOS0xtRHp0xbt7S0N2Dm6hhX+kTZQ/3Ybg==" + "version": "11.0.0-alpha.1", + "resolved": "https://registry.npmjs.org/rescript/-/rescript-11.0.0-alpha.1.tgz", + "integrity": "sha512-+01rdTX9FCOZrEJFVrk2XRgrIlGLf93EKsNwoW5iq0jQiKcYGCdHeSbJvVYF+cximgm+CmWhSkR42l+Il6t12A==" }, "scheduler": { "version": "0.23.0", diff --git a/analysis/tests/package.json b/analysis/tests/package.json index 29c9887aa..cb1651891 100644 --- a/analysis/tests/package.json +++ b/analysis/tests/package.json @@ -8,6 +8,6 @@ "@rescript/react": "^0.11.0-rc.3" }, "dependencies": { - "rescript": "^10.1.4" + "rescript": "^11.0.0-alpha.1" } } diff --git a/analysis/tests/src/expected/BrokenParserCases.res.txt b/analysis/tests/src/expected/BrokenParserCases.res.txt index 821b3b35f..13751f983 100644 --- a/analysis/tests/src/expected/BrokenParserCases.res.txt +++ b/analysis/tests/src/expected/BrokenParserCases.res.txt @@ -3,6 +3,7 @@ posCursor:[2:24] posNoWhite:[2:23] Found expr:[2:11->2:30] Pexp_apply ...[2:11->2:17] (~isOff2:19->2:24=...[2:27->2:29]) Completable: CnamedArg(Value[someFn], isOff, [isOff]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someFn] Path someFn [] @@ -11,6 +12,7 @@ Complete src/BrokenParserCases.res 6:17 posCursor:[6:17] posNoWhite:[6:16] Found pattern:[6:16->6:19] Completable: Cpattern Value[s]=t Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[s] Path s [] @@ -21,6 +23,7 @@ posCursor:[10:29] posNoWhite:[10:27] Found pattern:[10:24->10:28] Ppat_construct None:[10:24->10:28] Completable: Cpath Value[None] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[None] Path None [] diff --git a/analysis/tests/src/expected/CompletePrioritize1.res.txt b/analysis/tests/src/expected/CompletePrioritize1.res.txt index ba9668b1b..c8ca65779 100644 --- a/analysis/tests/src/expected/CompletePrioritize1.res.txt +++ b/analysis/tests/src/expected/CompletePrioritize1.res.txt @@ -2,6 +2,7 @@ Complete src/CompletePrioritize1.res 5:6 posCursor:[5:6] posNoWhite:[5:5] Found expr:[5:3->0:-1] Completable: Cpath Value[a]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[a]-> ContextPath Value[a] Path a diff --git a/analysis/tests/src/expected/CompletePrioritize2.res.txt b/analysis/tests/src/expected/CompletePrioritize2.res.txt index d8ff6462d..ba268ddc9 100644 --- a/analysis/tests/src/expected/CompletePrioritize2.res.txt +++ b/analysis/tests/src/expected/CompletePrioritize2.res.txt @@ -2,6 +2,7 @@ Complete src/CompletePrioritize2.res 9:7 posCursor:[9:7] posNoWhite:[9:6] Found expr:[9:3->0:-1] Completable: Cpath Value[ax]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[ax]-> ContextPath Value[ax] Path ax @@ -22,6 +23,7 @@ posCursor:[12:5] posNoWhite:[12:4] Found expr:[12:3->12:5] Pexp_ident ax:[12:3->12:5] Completable: Cpath Value[ax] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[ax] Path ax [{ diff --git a/analysis/tests/src/expected/Completion.res.txt b/analysis/tests/src/expected/Completion.res.txt index e87649f38..fbf701c70 100644 --- a/analysis/tests/src/expected/Completion.res.txt +++ b/analysis/tests/src/expected/Completion.res.txt @@ -3,6 +3,7 @@ posCursor:[1:11] posNoWhite:[1:10] Found expr:[1:3->1:11] Pexp_ident MyList.m:[1:3->1:11] Completable: Cpath Value[MyList, m] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[MyList, m] Path MyList.m [{ @@ -78,6 +79,7 @@ posCursor:[3:9] posNoWhite:[3:8] Found expr:[3:3->3:9] Pexp_ident Array.:[3:3->3:9] Completable: Cpath Value[Array, ""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Array, ""] Path Array. [{ @@ -303,6 +305,7 @@ posCursor:[5:10] posNoWhite:[5:9] Found expr:[5:3->5:10] Pexp_ident Array.m:[5:3->5:10] Completable: Cpath Value[Array, m] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Array, m] Path Array.m [{ @@ -360,6 +363,7 @@ posCursor:[15:17] posNoWhite:[15:16] Found expr:[15:12->15:17] Pexp_ident Dep.c:[15:12->15:17] Completable: Cpath Value[Dep, c] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Dep, c] Path Dep.c [{ @@ -375,6 +379,7 @@ posCursor:[23:20] posNoWhite:[23:19] Found expr:[23:11->23:20] Pexp_apply ...[23:11->23:18] () Completable: CnamedArg(Value[Lib, foo], "", []) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -396,6 +401,7 @@ Complete src/Completion.res 26:13 posCursor:[26:13] posNoWhite:[26:12] Found expr:[26:3->26:13] Completable: Cpath array->m Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath array->m ContextPath array CPPipe env:Completion @@ -418,6 +424,7 @@ Complete src/Completion.res 29:13 posCursor:[29:13] posNoWhite:[29:12] Found expr:[29:3->29:13] Completable: Cpath string->toU Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath string->toU ContextPath string CPPipe env:Completion @@ -434,6 +441,7 @@ Complete src/Completion.res 34:8 posCursor:[34:8] posNoWhite:[34:7] Found expr:[34:3->34:8] Completable: Cpath Value[op]->e Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[op]->e ContextPath Value[op] Path op @@ -459,6 +467,7 @@ Pexp_apply ...[50:9->50:10] (...[44:3->50:8], ...[51:2->54:3]) posCursor:[44:7] posNoWhite:[44:6] Found expr:[44:3->50:8] Completable: Cpath Value[fa]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[fa]-> ContextPath Value[fa] Path fa @@ -486,6 +495,7 @@ posCursor:[47:21] posNoWhite:[47:20] Found expr:[47:12->47:21] Pexp_ident Js.Dict.u:[47:12->47:21] Completable: Cpath Value[Js, Dict, u] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Js, Dict, u] Path Js.Dict.u [{ @@ -507,6 +517,7 @@ posCursor:[59:30] posNoWhite:[59:29] Found expr:[59:15->59:30] JSX 59:21] second[59:22->59:28]=...[59:29->59:30]> _children:None Completable: Cexpression CJsxPropValue [O, Comp] second=z Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [O, Comp] second Path O.Comp.make [{ @@ -522,6 +533,7 @@ posCursor:[62:23] posNoWhite:[62:22] Found expr:[62:15->62:23] JSX 62:21] z[62:22->62:23]=...[62:22->62:23]> _children:None Completable: Cjsx([O, Comp], z, [z]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path O.Comp.make [{ "label": "zoo", @@ -535,6 +547,7 @@ Complete src/Completion.res 65:8 Attribute id:reac:[65:3->65:8] label:reac Completable: Cdecorator(reac) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res [{ "label": "react.component", "kind": 4, @@ -549,6 +562,7 @@ Pexp_apply ...[80:6->80:7] (...[80:8->86:1]) Attribute id:react.let:[68:3->80:3] label:react. Completable: Cdecorator(react.) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res [{ "label": "component", "kind": 4, @@ -562,6 +576,7 @@ posCursor:[71:27] posNoWhite:[71:26] Found expr:[71:11->71:27] Pexp_apply ...[71:11->71:18] (~name71:20->71:24=...[71:20->71:24]) Completable: CnamedArg(Value[Lib, foo], "", [name]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -578,6 +593,7 @@ posCursor:[74:26] posNoWhite:[74:25] Found expr:[74:11->74:26] Pexp_apply ...[74:11->74:18] (~age74:20->74:23=...[74:20->74:23]) Completable: CnamedArg(Value[Lib, foo], "", [age]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -594,6 +610,7 @@ posCursor:[77:32] posNoWhite:[77:31] Found expr:[77:11->77:32] Pexp_apply ...[77:11->77:18] (~age77:20->77:23=...[77:25->77:28]) Completable: CnamedArg(Value[Lib, foo], "", [age]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -610,6 +627,7 @@ posCursor:[82:5] posNoWhite:[82:4] Found expr:[80:8->86:1] Pexp_apply ...[80:8->80:15] (~age84:3->84:6=...[84:7->84:8], ~name85:3->85:7=...[85:8->85:10]) Completable: CnamedArg(Value[Lib, foo], "", [age, name]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -620,6 +638,7 @@ posCursor:[90:13] posNoWhite:[90:12] Found expr:[90:3->93:18] Pexp_send a[90:12->90:13] e:[90:3->90:10] Completable: Cpath Value[someObj]["a"] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someObj]["a"] ContextPath Value[someObj] Path someObj @@ -636,6 +655,7 @@ posCursor:[95:24] posNoWhite:[95:23] Found expr:[95:3->99:6] Pexp_send [95:24->95:24] e:[95:3->95:22] Completable: Cpath Value[nestedObj]["x"]["y"][""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[nestedObj]["x"]["y"][""] ContextPath Value[nestedObj]["x"]["y"] ContextPath Value[nestedObj]["x"] @@ -660,6 +680,7 @@ posCursor:[99:7] posNoWhite:[99:6] Found expr:[99:3->102:20] Pexp_send a[99:6->99:7] e:[99:3->99:4] Completable: Cpath Value[o]["a"] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[o]["a"] ContextPath Value[o] Path o @@ -676,6 +697,7 @@ posCursor:[104:17] posNoWhite:[104:16] Found expr:[104:3->125:19] Pexp_send [104:17->104:17] e:[104:3->104:15] Completable: Cpath Value[no]["x"]["y"][""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[no]["x"]["y"][""] ContextPath Value[no]["x"]["y"] ContextPath Value[no]["x"] @@ -700,6 +722,7 @@ posCursor:[110:5] posNoWhite:[110:4] Found expr:[110:3->110:5] Pexp_field [110:3->110:4] _:[116:0->110:5] Completable: Cpath Value[r]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[r]."" ContextPath Value[r] Path r @@ -722,6 +745,7 @@ posCursor:[113:25] posNoWhite:[113:24] Found expr:[113:3->113:25] Pexp_field [113:3->113:24] _:[116:0->113:25] Completable: Cpath Value[Objects, Rec, recordVal]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Objects, Rec, recordVal]."" ContextPath Value[Objects, Rec, recordVal] Path Objects.Rec.recordVal @@ -746,6 +770,7 @@ posCursor:[120:7] posNoWhite:[120:6] Found expr:[120:5->120:7] Pexp_ident my:[120:5->120:7] Completable: Cpath Value[my] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[my] Path my [{ @@ -761,6 +786,7 @@ posCursor:[125:19] posNoWhite:[125:18] Found expr:[125:3->145:32] Pexp_send [125:19->125:19] e:[125:3->125:17] Completable: Cpath Value[Objects, object][""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Objects, object][""] ContextPath Value[Objects, object] Path Objects.object @@ -783,6 +809,7 @@ posCursor:[151:6] posNoWhite:[151:5] Found expr:[151:4->151:6] JSX 151:6] > _children:None Completable: Cpath Module[O, ""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[O, ""] Path O. [{ @@ -798,6 +825,7 @@ posCursor:[157:8] posNoWhite:[157:7] Found expr:[157:3->157:8] Pexp_field [157:3->157:7] _:[165:0->157:8] Completable: Cpath Value[q].aa."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[q].aa."" ContextPath Value[q].aa ContextPath Value[q] @@ -821,6 +849,7 @@ posCursor:[159:9] posNoWhite:[159:8] Found expr:[159:3->159:9] Pexp_field [159:3->159:7] n:[159:8->159:9] Completable: Cpath Value[q].aa.n Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[q].aa.n ContextPath Value[q].aa ContextPath Value[q] @@ -838,6 +867,7 @@ posCursor:[162:6] posNoWhite:[162:5] Found expr:[162:3->162:6] Pexp_construct Lis:[162:3->162:6] None Completable: Cpath Value[Lis] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Lis] Path Lis [{ @@ -859,6 +889,7 @@ posCursor:[169:16] posNoWhite:[169:15] Found expr:[169:4->169:16] JSX 169:16] > _children:None Completable: Cpath Module[WithChildren] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[WithChildren] Path WithChildren [{ @@ -874,6 +905,7 @@ posCursor:[172:16] posNoWhite:[172:15] Found type:[172:12->172:16] Ptyp_constr Js.n:[172:12->172:16] Completable: Cpath Type[Js, n] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[Js, n] Path Js.n [{ @@ -901,6 +933,7 @@ posCursor:[174:20] posNoWhite:[174:19] Found type:[174:12->174:20] Ptyp_constr ForAuto.:[174:12->174:20] Completable: Cpath Type[ForAuto, ""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[ForAuto, ""] Path ForAuto. [{ @@ -916,6 +949,7 @@ posCursor:[179:13] posNoWhite:[179:12] Found expr:[179:11->179:13] Pexp_construct As:[179:11->179:13] None Completable: Cpath Value[As] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[As] Path As [{ @@ -930,6 +964,7 @@ Complete src/Completion.res 182:17 Pmod_ident For:[182:14->182:17] Completable: Cpath Module[For] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[For] Path For [{ @@ -945,6 +980,7 @@ posCursor:[190:11] posNoWhite:[190:10] Found expr:[190:3->190:11] Pexp_ident Private.:[190:3->190:11] Completable: Cpath Value[Private, ""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Private, ""] Path Private. [{ @@ -960,6 +996,7 @@ posCursor:[202:6] posNoWhite:[202:5] Found expr:[202:3->202:6] Pexp_ident sha:[202:3->202:6] Completable: Cpath Value[sha] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[sha] Path sha [] @@ -970,7 +1007,7 @@ Pexp_ident sha:[205:3->205:6] Completable: Cpath Value[sha] Raw opens: 1 Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 1 Completion.res +Resolved opens 2 Completion.res pervasives.res ContextPath Value[sha] Path sha [{ @@ -987,7 +1024,7 @@ Pexp_ident sha:[208:3->208:6] Completable: Cpath Value[sha] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[sha] Path sha [{ @@ -1004,7 +1041,7 @@ Pexp_send [221:22->221:22] e:[221:3->221:20] Completable: Cpath Value[FAO, forAutoObject][""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[FAO, forAutoObject][""] ContextPath Value[FAO, forAutoObject] Path FAO.forAutoObject @@ -1028,7 +1065,7 @@ Pexp_field [224:3->224:36] _:[233:0->224:37] Completable: Cpath Value[FAO, forAutoObject]["forAutoLabel"]."" Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[FAO, forAutoObject]["forAutoLabel"]."" ContextPath Value[FAO, forAutoObject]["forAutoLabel"] ContextPath Value[FAO, forAutoObject] @@ -1052,7 +1089,7 @@ posCursor:[227:46] posNoWhite:[227:45] Found expr:[227:3->0:-1] Completable: Cpath Value[FAO, forAutoObject]["forAutoLabel"].forAuto-> Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[FAO, forAutoObject]["forAutoLabel"].forAuto-> ContextPath Value[FAO, forAutoObject]["forAutoLabel"].forAuto ContextPath Value[FAO, forAutoObject]["forAutoLabel"] @@ -1083,7 +1120,7 @@ Pexp_ident ForAuto.a:[230:46->230:55] Completable: Cpath Value[ForAuto, a] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ForAuto, a] Path ForAuto.a [{ @@ -1110,7 +1147,7 @@ Pexp_ident na:[234:32->234:34] Completable: Cpath Value[na] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[na] Path na [{ @@ -1126,7 +1163,7 @@ posCursor:[237:17] posNoWhite:[237:14] Found expr:[237:14->237:22] Completable: Cnone Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res [] Complete src/Completion.res 243:8 @@ -1137,7 +1174,7 @@ Pexp_field [243:5->243:7] _:[245:0->243:8] Completable: Cpath Value[_z]."" Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[_z]."" ContextPath Value[_z] Path _z @@ -1161,7 +1198,7 @@ Pexp_construct SomeLo:[254:11->254:17] None Completable: Cpath Value[SomeLo] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[SomeLo] Path SomeLo [{ @@ -1178,7 +1215,7 @@ Ptyp_constr SomeLocalModule.:[256:13->256:29] Completable: Cpath Type[SomeLocalModule, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Type[SomeLocalModule, ""] Path SomeLocalModule. [{ @@ -1195,7 +1232,7 @@ Ptyp_constr SomeLocalModule.:[261:17->263:11] Completable: Cpath Type[SomeLocalModule, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Type[SomeLocalModule, ""] Path SomeLocalModule. [{ @@ -1211,7 +1248,7 @@ Ptype_variant unary SomeLocal:[268:12->268:21] Completable: Cpath Value[SomeLocal] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[SomeLocal] Path SomeLocal [{ @@ -1235,7 +1272,7 @@ Ptyp_constr SomeLocal:[271:11->274:3] Completable: Cpath Type[SomeLocal] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Type[SomeLocal] Path SomeLocal [{ @@ -1254,7 +1291,7 @@ Pexp_ident _w:[275:13->275:15] Completable: Cpath Value[_w] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[_w] Path _w [{ @@ -1271,7 +1308,7 @@ Ptyp_constr s:[281:21->281:22] Completable: Cpath Type[s] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Type[s] Path s [{ @@ -1294,7 +1331,7 @@ Pexp_apply ...[291:11->291:28] () Completable: CnamedArg(Value[funRecord].someFun, "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[funRecord].someFun ContextPath Value[funRecord] Path funRecord @@ -1313,7 +1350,7 @@ Pexp_field [296:3->296:10] _:[299:0->296:11] Completable: Cpath Value[retAA](Nolabel)."" Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[retAA](Nolabel)."" ContextPath Value[retAA](Nolabel) ContextPath Value[retAA] @@ -1338,7 +1375,7 @@ Pexp_apply ...[301:3->301:11] () Completable: CnamedArg(Value[ff](~c), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ff](~c) ContextPath Value[ff] Path ff @@ -1382,7 +1419,7 @@ Pexp_apply ...[304:3->304:13] () Completable: CnamedArg(Value[ff](~c)(Nolabel), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ff](~c)(Nolabel) ContextPath Value[ff](~c) ContextPath Value[ff] @@ -1414,7 +1451,7 @@ Pexp_apply ...[307:3->307:15] () Completable: CnamedArg(Value[ff](~c, Nolabel), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ff](~c, Nolabel) ContextPath Value[ff] Path ff @@ -1445,7 +1482,7 @@ Pexp_apply ...[310:3->310:19] () Completable: CnamedArg(Value[ff](~c, Nolabel, Nolabel), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ff](~c, Nolabel, Nolabel) ContextPath Value[ff] Path ff @@ -1470,7 +1507,7 @@ Pexp_apply ...[313:3->313:21] () Completable: CnamedArg(Value[ff](~c, Nolabel, ~b), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ff](~c, Nolabel, ~b) ContextPath Value[ff] Path ff @@ -1495,7 +1532,7 @@ Pexp_apply ...[316:3->316:14] () Completable: CnamedArg(Value[ff](~opt2), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ff](~opt2) ContextPath Value[ff] Path ff @@ -1532,7 +1569,7 @@ Pexp_apply ...[323:3->323:15] () Completable: CnamedArg(Value[withCallback], "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[withCallback] Path withCallback Found type for function (~b: int) => callback @@ -1556,7 +1593,7 @@ Pexp_apply ...[326:3->326:19] () Completable: CnamedArg(Value[withCallback](~a), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[withCallback](~a) ContextPath Value[withCallback] Path withCallback @@ -1575,7 +1612,7 @@ Pexp_apply ...[329:3->329:19] () Completable: CnamedArg(Value[withCallback](~b), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[withCallback](~b) ContextPath Value[withCallback] Path withCallback @@ -1604,7 +1641,7 @@ Ptyp_constr Res:[336:23->338:5] Completable: Cpath Type[Res] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Type[Res] Path Res [{ @@ -1628,7 +1665,7 @@ Pexp_ident this:[343:53->343:57] Completable: Cpath Value[this] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[this] Path this [{ @@ -1646,7 +1683,7 @@ JSX 346:12] name[346:13->346:17]=...[346:18->346:20]> _children:346 Completable: Cjsx([div], name, [name]) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res {"contents": {"kind": "markdown", "value": "```rescript\nstring\n```"}} Hover src/Completion.res 349:17 @@ -1658,11 +1695,12 @@ Pexp_ident FAO.forAutoObject:[349:11->349:28] Completable: Cpath Value[FAO, forAutoObject] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[FAO, forAutoObject] Path FAO.forAutoObject Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res {"contents": {"kind": "markdown", "value": "```rescript\n{\"age\": int, \"forAutoLabel\": FAR.forAutoRecord}\n```"}} Hover src/Completion.res 352:17 @@ -1672,7 +1710,7 @@ Pexp_apply ...[352:11->352:13] (~opt1352:15->352:19=...[352:20->352:21]) Completable: CnamedArg(Value[ff], opt1, [opt1]) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ff] Path ff Found type for function ( @@ -1699,13 +1737,13 @@ Ppat_construct T:[362:7->362:8] Completable: Cpattern Value[x]=T Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[x] Path x Completable: Cpath Value[T] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[T] Path T [{ @@ -1742,7 +1780,7 @@ Ppat_construct AndThatOther.T:[373:7->373:21] Completable: Cpath Value[AndThatOther, T] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[AndThatOther, T] Path AndThatOther.T [{ @@ -1763,7 +1801,7 @@ Pexp_ident ForAuto.:[378:16->378:24] Completable: Cpath Value[ForAuto, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ForAuto, ""] Path ForAuto. [{ @@ -1790,7 +1828,7 @@ Pexp_send [381:38->381:38] e:[381:19->381:36] Completable: Cpath Value[FAO, forAutoObject][""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[FAO, forAutoObject][""] ContextPath Value[FAO, forAutoObject] Path FAO.forAutoObject @@ -1818,7 +1856,7 @@ Pexp_field [384:14->384:23] _:[384:24->384:24] Completable: Cpath Value[funRecord]."" Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[funRecord]."" ContextPath Value[funRecord] Path funRecord @@ -1844,7 +1882,7 @@ posCursor:[389:12] posNoWhite:[389:11] Found expr:[389:6->389:12] Completable: Cpath array->ma Raw opens: 3 Js.place holder ... Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res js.ml +Resolved opens 4 Completion.res Completion.res js.ml pervasives.res ContextPath array->ma ContextPath array CPPipe env:Completion @@ -1873,7 +1911,7 @@ Pexp_ident red:[397:13->397:16] Completable: Cpath Value[red] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[red] Path red [{ @@ -1894,7 +1932,7 @@ Pexp_ident red:[402:24->402:27] Completable: Cpath Value[red] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[red] Path red [{ @@ -1916,7 +1954,7 @@ Pexp_ident r:[405:21->405:22] Completable: Cpath Value[r] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[r] Path r [{ @@ -1948,7 +1986,7 @@ Pexp_ident SomeLocalModule.:[409:5->411:5] Completable: Cpath Value[SomeLocalModule, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[SomeLocalModule, ""] Path SomeLocalModule. [{ @@ -1975,7 +2013,7 @@ Pexp_ident SomeLocalModule.:[412:5->414:8] Completable: Cpath Value[SomeLocalModule, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[SomeLocalModule, ""] Path SomeLocalModule. [{ @@ -1997,7 +2035,7 @@ posCursor:[417:17] posNoWhite:[417:16] Found expr:[417:11->417:17] Completable: Cpath int->t Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath int->t ContextPath int CPPipe env:Completion @@ -2021,7 +2059,7 @@ posCursor:[420:19] posNoWhite:[420:18] Found expr:[420:11->420:19] Completable: Cpath float->t Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath float->t ContextPath float CPPipe env:Completion @@ -2045,7 +2083,7 @@ posCursor:[425:8] posNoWhite:[425:7] Found expr:[425:3->425:8] Completable: Cpath Value[ok]->g Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[ok]->g ContextPath Value[ok] Path ok @@ -2071,7 +2109,7 @@ Pexp_field [443:3->443:12] so:[443:13->443:15] Completable: Cpath Value[rWithDepr].so Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Value[rWithDepr].so ContextPath Value[rWithDepr] Path rWithDepr @@ -2094,7 +2132,7 @@ XXX Not found! Completable: Cexpression Type[someVariantWithDeprecated] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res Completion.res +Resolved opens 3 Completion.res Completion.res pervasives.res ContextPath Type[someVariantWithDeprecated] Path someVariantWithDeprecated [{ diff --git a/analysis/tests/src/expected/CompletionExpressions.res.txt b/analysis/tests/src/expected/CompletionExpressions.res.txt index ba8fbbcb9..c798b460b 100644 --- a/analysis/tests/src/expected/CompletionExpressions.res.txt +++ b/analysis/tests/src/expected/CompletionExpressions.res.txt @@ -2,6 +2,7 @@ Complete src/CompletionExpressions.res 3:20 XXX Not found! Completable: Cpattern CTuple(Value[s], Value[f]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CTuple(Value[s], Value[f]) ContextPath Value[s] Path s @@ -22,6 +23,7 @@ posCursor:[26:27] posNoWhite:[26:26] Found expr:[26:11->26:29] Pexp_apply ...[26:11->26:25] (...[26:26->26:28]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -68,6 +70,7 @@ posCursor:[29:28] posNoWhite:[29:27] Found expr:[29:11->29:30] Pexp_apply ...[29:11->29:25] (...[29:27->29:28]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)=n->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -84,6 +87,7 @@ posCursor:[32:35] posNoWhite:[32:34] Found expr:[32:11->32:38] Pexp_apply ...[32:11->32:25] (...[32:26->32:38]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(offline) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -106,6 +110,7 @@ posCursor:[35:36] posNoWhite:[35:35] Found expr:[35:11->35:39] Pexp_apply ...[35:11->35:25] (...[35:26->35:38]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -146,6 +151,7 @@ posCursor:[38:37] posNoWhite:[38:35] Found expr:[38:11->38:53] Pexp_apply ...[38:11->38:25] (...[38:26->38:52]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -180,6 +186,7 @@ posCursor:[41:44] posNoWhite:[41:43] Found expr:[41:11->41:47] Pexp_apply ...[41:11->41:25] (...[41:26->41:47]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(nested) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -212,6 +219,7 @@ posCursor:[44:46] posNoWhite:[44:45] Found expr:[44:11->44:49] Pexp_apply ...[44:11->44:25] (...[44:26->44:48]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(nested), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -222,6 +230,7 @@ posCursor:[47:51] posNoWhite:[47:50] Found expr:[47:11->47:55] Pexp_apply ...[47:11->47:25] (...[47:26->47:54]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(nested), variantPayload::Some($0), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -244,6 +253,7 @@ posCursor:[50:45] posNoWhite:[50:44] Found expr:[50:11->50:48] Pexp_apply ...[50:11->50:25] (...[50:26->50:48]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(variant) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -278,6 +288,7 @@ posCursor:[53:47] posNoWhite:[53:46] Found expr:[53:11->53:50] Pexp_apply ...[53:11->53:25] (...[53:26->53:49]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)=O->recordField(variant) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -309,6 +320,7 @@ posCursor:[56:57] posNoWhite:[56:56] Found expr:[56:11->56:61] Pexp_apply ...[56:11->56:25] (...[56:26->56:60]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(polyvariant), polyvariantPayload::three($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -328,6 +340,7 @@ posCursor:[59:60] posNoWhite:[59:59] Found expr:[59:11->59:65] Pexp_apply ...[59:11->59:25] (...[59:26->59:64]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(polyvariant), polyvariantPayload::three($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -350,6 +363,7 @@ posCursor:[62:62] posNoWhite:[62:61] Found expr:[62:11->62:66] Pexp_apply ...[62:11->62:25] (...[62:26->62:65]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)=t->recordField(polyvariant), polyvariantPayload::three($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -366,6 +380,7 @@ posCursor:[69:25] posNoWhite:[69:24] Found expr:[69:11->69:26] Pexp_apply ...[69:11->69:24] (...[69:25->69:26]) Completable: Cexpression CArgument Value[fnTakingArray]($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -385,6 +400,7 @@ posCursor:[72:26] posNoWhite:[72:25] Found expr:[72:11->72:28] Pexp_apply ...[72:11->72:24] (...[72:25->72:27]) Completable: Cexpression CArgument Value[fnTakingArray]($0)->array Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -421,6 +437,7 @@ posCursor:[75:26] posNoWhite:[75:25] Found expr:[75:11->75:27] Pexp_apply ...[75:11->75:24] (...[75:25->75:26]) Completable: Cexpression CArgument Value[fnTakingArray]($0)=s Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -437,6 +454,7 @@ posCursor:[78:31] posNoWhite:[78:30] Found expr:[78:11->78:34] Pexp_apply ...[78:11->78:24] (...[78:25->78:33]) Completable: Cexpression CArgument Value[fnTakingArray]($0)->array, variantPayload::Some($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -459,6 +477,7 @@ posCursor:[81:31] posNoWhite:[81:30] Found expr:[81:11->81:34] Pexp_apply ...[81:11->81:24] (...[81:25->81:33]) Completable: Cexpression CArgument Value[fnTakingArray]($0)->array Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -495,6 +514,7 @@ posCursor:[84:31] posNoWhite:[84:30] Found expr:[84:11->84:40] Pexp_apply ...[84:11->84:24] (...[84:25->84:39]) Completable: Cexpression CArgument Value[fnTakingArray]($0)->array Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -531,6 +551,7 @@ posCursor:[89:38] posNoWhite:[89:37] Found expr:[89:11->89:41] Pexp_apply ...[89:11->89:25] (...[89:26->89:40]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)=so Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -547,6 +568,7 @@ posCursor:[96:43] posNoWhite:[96:42] Found expr:[96:11->96:46] Pexp_apply ...[96:11->96:30] (...[96:31->96:46]) Completable: Cexpression CArgument Value[fnTakingOtherRecord]($0)->recordField(otherField) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingOtherRecord]($0) ContextPath Value[fnTakingOtherRecord] Path fnTakingOtherRecord @@ -566,6 +588,7 @@ posCursor:[108:57] posNoWhite:[108:56] Found expr:[108:11->108:60] Pexp_apply ...[108:11->108:42] (...[108:43->108:60]) Completable: Cexpression CArgument Value[fnTakingRecordWithOptionalField]($0)->recordField(someOptField) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecordWithOptionalField]($0) ContextPath Value[fnTakingRecordWithOptionalField] Path fnTakingRecordWithOptionalField @@ -588,6 +611,7 @@ posCursor:[116:53] posNoWhite:[116:52] Found expr:[116:11->116:56] Pexp_apply ...[116:11->116:39] (...[116:40->116:56]) Completable: Cexpression CArgument Value[fnTakingRecordWithOptVariant]($0)->recordField(someVariant) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecordWithOptVariant]($0) ContextPath Value[fnTakingRecordWithOptVariant] Path fnTakingRecordWithOptVariant @@ -636,6 +660,7 @@ posCursor:[126:49] posNoWhite:[126:48] Found expr:[126:11->126:51] Pexp_apply ...[126:11->126:31] (...[126:32->126:50]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)->variantPayload::WithInlineRecord($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -655,6 +680,7 @@ posCursor:[129:50] posNoWhite:[129:49] Found expr:[129:11->129:53] Pexp_apply ...[129:11->129:31] (...[129:32->129:52]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)->variantPayload::WithInlineRecord($0), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -683,6 +709,7 @@ posCursor:[132:51] posNoWhite:[132:50] Found expr:[132:11->132:54] Pexp_apply ...[132:11->132:31] (...[132:32->132:53]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)=s->variantPayload::WithInlineRecord($0), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -699,6 +726,7 @@ posCursor:[135:63] posNoWhite:[135:62] Found expr:[135:11->135:67] Pexp_apply ...[135:11->135:31] (...[135:32->135:66]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)->variantPayload::WithInlineRecord($0), recordField(nestedRecord) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -718,6 +746,7 @@ posCursor:[138:65] posNoWhite:[138:64] Found expr:[138:11->138:70] Pexp_apply ...[138:11->138:31] (...[138:32->138:69]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)->variantPayload::WithInlineRecord($0), recordField(nestedRecord), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -740,6 +769,7 @@ posCursor:[159:20] posNoWhite:[159:19] Found expr:[159:3->159:21] Pexp_apply ...[159:3->159:19] (...[159:20->159:21]) Completable: Cexpression CArgument Value[fnTakingCallback]($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingCallback]($0) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -759,6 +789,7 @@ posCursor:[162:21] posNoWhite:[162:20] Found expr:[162:3->162:22] Pexp_apply ...[162:3->162:19] (...[162:20->162:21]) Completable: Cexpression CArgument Value[fnTakingCallback]($0)=a Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingCallback]($0) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -769,6 +800,7 @@ posCursor:[165:22] posNoWhite:[165:21] Found expr:[165:3->165:24] Pexp_apply ...[165:3->165:19] (...[165:20->165:21]) Completable: Cexpression CArgument Value[fnTakingCallback]($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingCallback]($1) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -788,6 +820,7 @@ posCursor:[168:25] posNoWhite:[168:24] Found expr:[168:3->168:27] Pexp_apply ...[168:3->168:19] (...[168:20->168:21], ...[168:23->168:24]) Completable: Cexpression CArgument Value[fnTakingCallback]($2) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingCallback]($2) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -807,6 +840,7 @@ posCursor:[171:29] posNoWhite:[171:27] Found expr:[171:3->171:30] Pexp_apply ...[171:3->171:19] (...[171:20->171:21], ...[171:23->171:24], ...[171:26->171:27]) Completable: Cexpression CArgument Value[fnTakingCallback]($3) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingCallback]($3) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -826,6 +860,7 @@ posCursor:[174:32] posNoWhite:[174:30] Found expr:[174:3->174:33] Pexp_apply ...[174:3->174:19] (...[174:20->174:21], ...[174:23->174:24], ...[174:26->174:27], ...[174:29->174:30]) Completable: Cexpression CArgument Value[fnTakingCallback]($4) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingCallback]($4) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -845,6 +880,7 @@ posCursor:[177:34] posNoWhite:[177:33] Found expr:[177:3->177:36] Pexp_apply ...[177:3->177:19] (...[177:20->177:21], ...[177:23->177:24], ...[177:26->177:27], ...[177:29->177:30], ...[177:32->177:33]) Completable: Cexpression CArgument Value[fnTakingCallback]($5) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingCallback]($5) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -868,6 +904,7 @@ posCursor:[185:10] posNoWhite:[185:9] Found expr:[185:2->185:11] Pexp_apply ...[185:2->185:8] (...[185:9->185:10]) Completable: Cexpression CArgument Value[Js, log]($0)=s Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[Js, log]($0) ContextPath Value[Js, log] Path Js.log @@ -902,6 +939,7 @@ posCursor:[196:14] posNoWhite:[196:13] Found expr:[196:3->196:14] Pexp_field [196:3->196:6] someOpt:[196:7->196:14] Completable: Cpath Value[fff].someOpt Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[fff].someOpt ContextPath Value[fff] Path fff diff --git a/analysis/tests/src/expected/CompletionFunctionArguments.res.txt b/analysis/tests/src/expected/CompletionFunctionArguments.res.txt index c48ba44b6..38ce34ee2 100644 --- a/analysis/tests/src/expected/CompletionFunctionArguments.res.txt +++ b/analysis/tests/src/expected/CompletionFunctionArguments.res.txt @@ -3,6 +3,7 @@ posCursor:[10:24] posNoWhite:[10:23] Found expr:[10:11->10:25] Pexp_apply ...[10:11->10:17] (~isOn10:19->10:23=...__ghost__[0:-1->0:-1]) Completable: Cexpression CArgument Value[someFn](~isOn) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someFn](~isOn) ContextPath Value[someFn] Path someFn @@ -25,6 +26,7 @@ posCursor:[13:25] posNoWhite:[13:24] Found expr:[13:11->13:26] Pexp_apply ...[13:11->13:17] (~isOn13:19->13:23=...[13:24->13:25]) Completable: Cexpression CArgument Value[someFn](~isOn)=t Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someFn](~isOn) ContextPath Value[someFn] Path someFn @@ -48,6 +50,7 @@ posCursor:[16:25] posNoWhite:[16:24] Found expr:[16:11->16:26] Pexp_apply ...[16:11->16:17] (~isOff16:19->16:24=...__ghost__[0:-1->0:-1]) Completable: Cexpression CArgument Value[someFn](~isOff) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someFn](~isOff) ContextPath Value[someFn] Path someFn @@ -74,6 +77,7 @@ posCursor:[21:27] posNoWhite:[21:26] Found expr:[21:14->21:28] Pexp_apply ...[21:14->21:20] (~isOn21:22->21:26=...__ghost__[0:-1->0:-1]) Completable: Cexpression CArgument Value[someFn](~isOn) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someFn](~isOn) ContextPath Value[someFn] Path someFn @@ -96,6 +100,7 @@ posCursor:[34:24] posNoWhite:[34:23] Found expr:[34:11->34:25] Pexp_apply ...[34:11->34:22] (...[34:23->34:24]) Completable: Cexpression CArgument Value[someOtherFn]($0)=f Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someOtherFn]($0) ContextPath Value[someOtherFn] Path someOtherFn @@ -112,6 +117,7 @@ posCursor:[51:39] posNoWhite:[51:38] Found expr:[51:11->51:40] Pexp_apply ...[51:11->51:30] (~config51:32->51:38=...__ghost__[0:-1->0:-1]) Completable: Cexpression CArgument Value[someFnTakingVariant](~config) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someFnTakingVariant](~config) ContextPath Value[someFnTakingVariant] Path someFnTakingVariant @@ -146,6 +152,7 @@ posCursor:[54:40] posNoWhite:[54:39] Found expr:[54:11->54:41] Pexp_apply ...[54:11->54:30] (~config54:32->54:38=...[54:39->54:40]) Completable: Cexpression CArgument Value[someFnTakingVariant](~config)=O Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someFnTakingVariant](~config) ContextPath Value[someFnTakingVariant] Path someFnTakingVariant @@ -183,6 +190,7 @@ posCursor:[57:33] posNoWhite:[57:32] Found expr:[57:11->57:34] Pexp_apply ...[57:11->57:30] (...[57:31->57:33]) Completable: Cexpression CArgument Value[someFnTakingVariant]($0)=So Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someFnTakingVariant]($0) ContextPath Value[someFnTakingVariant] Path someFnTakingVariant @@ -208,6 +216,7 @@ posCursor:[60:44] posNoWhite:[60:43] Found expr:[60:11->60:45] Pexp_apply ...[60:11->60:30] (~configOpt260:32->60:42=...[60:43->60:44]) Completable: Cexpression CArgument Value[someFnTakingVariant](~configOpt2)=O Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someFnTakingVariant](~configOpt2) ContextPath Value[someFnTakingVariant] Path someFnTakingVariant @@ -245,6 +254,7 @@ posCursor:[63:23] posNoWhite:[63:22] Found expr:[63:11->63:24] Pexp_apply ...[63:11->63:22] (...[63:23->63:24]) Completable: Cexpression CArgument Value[someOtherFn]($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someOtherFn]($0) ContextPath Value[someOtherFn] Path someOtherFn @@ -267,6 +277,7 @@ posCursor:[66:28] posNoWhite:[66:27] Found expr:[66:11->66:30] Pexp_apply ...[66:11->66:22] (...[66:23->66:24], ...[66:26->66:27]) Completable: Cexpression CArgument Value[someOtherFn]($2) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someOtherFn]($2) ContextPath Value[someOtherFn] Path someOtherFn @@ -288,6 +299,7 @@ Complete src/CompletionFunctionArguments.res 69:30 posCursor:[69:30] posNoWhite:[69:29] Found expr:[69:11->69:31] Completable: Cexpression CArgument Value[someOtherFn]($2)=t Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[someOtherFn]($2) ContextPath Value[someOtherFn] Path someOtherFn @@ -311,6 +323,7 @@ posCursor:[76:25] posNoWhite:[76:24] Found expr:[76:11->76:26] Pexp_apply ...[76:11->76:24] (...[76:25->76:26]) Completable: Cexpression CArgument Value[fnTakingTuple]($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingTuple]($0) ContextPath Value[fnTakingTuple] Path fnTakingTuple @@ -329,6 +342,7 @@ posCursor:[89:27] posNoWhite:[89:26] Found expr:[89:11->89:29] Pexp_apply ...[89:11->89:25] (...[89:26->89:28]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -361,6 +375,7 @@ posCursor:[109:29] posNoWhite:[109:28] Found expr:[108:6->109:29] posCursor:[109:29] posNoWhite:[109:28] Found expr:[109:9->109:29] Completable: Cpath Value[thisGetsBrokenLoc]->a <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[thisGetsBrokenLoc]->a <> ContextPath Value[thisGetsBrokenLoc] Path thisGetsBrokenLoc @@ -385,6 +400,7 @@ posCursor:[111:27] posNoWhite:[111:26] Found expr:[108:6->111:27] posCursor:[111:27] posNoWhite:[111:26] Found expr:[111:9->111:27] Completable: Cpath Value[reassignedWorks]->a <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[reassignedWorks]->a <> ContextPath Value[reassignedWorks] Path reassignedWorks diff --git a/analysis/tests/src/expected/CompletionInferValues.res.txt b/analysis/tests/src/expected/CompletionInferValues.res.txt index 88056cde3..183bae3de 100644 --- a/analysis/tests/src/expected/CompletionInferValues.res.txt +++ b/analysis/tests/src/expected/CompletionInferValues.res.txt @@ -2,6 +2,7 @@ Complete src/CompletionInferValues.res 15:43 posCursor:[15:43] posNoWhite:[15:42] Found expr:[15:33->15:43] Completable: Cpath Value[aliased]->f Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[aliased]->f ContextPath Value[aliased] Path aliased @@ -29,6 +30,7 @@ posCursor:[18:30] posNoWhite:[18:29] Found expr:[18:28->18:30] Pexp_field [18:28->18:29] _:[33:0->18:30] Completable: Cpath Value[x]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x]."" ContextPath Value[x] Path x @@ -54,6 +56,7 @@ posCursor:[21:53] posNoWhite:[21:52] Found expr:[21:45->21:53] Pexp_field [21:45->21:52] _:[33:0->21:53] Completable: Cpath Value[aliased]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[aliased]."" ContextPath Value[aliased] Path aliased @@ -86,6 +89,7 @@ posCursor:[24:63] posNoWhite:[24:62] Found expr:[24:52->24:63] Pexp_field [24:52->24:62] _:[24:63->24:63] Completable: Cpath Value[someRecord]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someRecord]."" ContextPath Value[someRecord] Path someRecord @@ -117,6 +121,7 @@ posCursor:[27:90] posNoWhite:[27:89] Found expr:[27:79->27:90] Pexp_field [27:79->27:89] _:[27:90->27:90] Completable: Cpath Value[someRecord]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someRecord]."" ContextPath Value[someRecord] Path someRecord @@ -147,6 +152,7 @@ posCursor:[30:36] posNoWhite:[30:35] Found expr:[30:16->30:38] posCursor:[30:36] posNoWhite:[30:35] Found expr:[30:27->30:36] Completable: Cpath Value[event]->pr Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[event]->pr ContextPath Value[event] Path event @@ -173,19 +179,20 @@ posCursor:[41:50] posNoWhite:[41:49] Found expr:[41:36->41:52] posCursor:[41:50] posNoWhite:[41:49] Found expr:[41:41->41:50] Completable: Cpath Value[event]->pr <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[event]->pr <> ContextPath Value[event] Path event ContextPath CArgument CJsxPropValue [div] onMouseEnter($0) ContextPath CJsxPropValue [div] onMouseEnter Path ReactDOM.domProps -Path JsxDOM.domProps +Path Pervasives.JsxDOM.domProps CPPipe env:CompletionInferValues -CPPipe type path:JsxEvent.Mouse.t -CPPipe pathFromEnv:JsxEvent.Mouse found:false -Path JsxEvent.Mouse.pr +CPPipe type path:JsxEventC.Mouse.t +CPPipe pathFromEnv:JsxEventC.Mouse found:false +Path JsxEventC.Mouse.pr [{ - "label": "JsxEvent.Mouse.preventDefault", + "label": "JsxEventC.Mouse.preventDefault", "kind": 12, "tags": [], "detail": "t => unit", @@ -199,6 +206,7 @@ posCursor:[44:50] posNoWhite:[44:49] Found expr:[44:36->44:52] posCursor:[44:50] posNoWhite:[44:49] Found expr:[44:41->44:50] Completable: Cpath Value[event]->pr <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[event]->pr <> ContextPath Value[event] Path event @@ -206,11 +214,11 @@ ContextPath CArgument CJsxPropValue [Div] onMouseEnter($0) ContextPath CJsxPropValue [Div] onMouseEnter Path Div.make CPPipe env:CompletionInferValues envFromCompletionItem:CompletionInferValues.Div -CPPipe type path:JsxEvent.Mouse.t -CPPipe pathFromEnv:JsxEvent.Mouse found:false -Path JsxEvent.Mouse.pr +CPPipe type path:Pervasives.JsxEvent.Mouse.t +CPPipe pathFromEnv:Pervasives.JsxEvent.Mouse found:false +Path Pervasives.JsxEvent.Mouse.pr [{ - "label": "JsxEvent.Mouse.preventDefault", + "label": "Pervasives.JsxEvent.Mouse.preventDefault", "kind": 12, "tags": [], "detail": "t => unit", @@ -225,13 +233,14 @@ posCursor:[47:87] posNoWhite:[47:86] Found expr:[47:41->47:87] posCursor:[47:87] posNoWhite:[47:86] Found expr:[47:81->47:87] Completable: Cpath Value[btn]->t <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[btn]->t <> ContextPath Value[btn] Path btn ContextPath Value[JsxEvent, Mouse, button](Nolabel) ContextPath Value[JsxEvent, Mouse, button] Path JsxEvent.Mouse.button -CPPipe env:CompletionInferValues envFromCompletionItem:JsxEvent.Mouse +CPPipe env:CompletionInferValues envFromCompletionItem:JsxEventC.Mouse Path Belt.Int.t [{ "label": "Belt.Int.toString", @@ -255,6 +264,7 @@ posCursor:[50:108] posNoWhite:[50:107] Found expr:[50:41->50:108] posCursor:[50:108] posNoWhite:[50:107] Found expr:[50:100->50:108] Completable: Cpath Value[btn]->spl <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[btn]->spl <> ContextPath Value[btn] Path btn @@ -297,6 +307,7 @@ posCursor:[53:130] posNoWhite:[53:129] Found expr:[53:41->53:130] posCursor:[53:130] posNoWhite:[53:129] Found expr:[53:123->53:130] Completable: Cpath Value[btn]->ma <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[btn]->ma <> ContextPath Value[btn] Path btn @@ -324,6 +335,7 @@ posCursor:[56:52] posNoWhite:[56:51] Found expr:[56:50->56:52] Pexp_field [56:50->56:51] _:[59:0->56:52] Completable: Cpath Value[x]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x]."" ContextPath Value[x] Path x @@ -348,6 +360,7 @@ posCursor:[78:78] posNoWhite:[78:77] Found expr:[78:70->78:78] Pexp_field [78:70->78:77] _:[125:0->78:78] Completable: Cpath Value[srecord]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[srecord]."" ContextPath Value[srecord] Path srecord @@ -375,6 +388,7 @@ posCursor:[82:86] posNoWhite:[82:85] Found expr:[82:78->82:86] Pexp_field [82:78->82:85] _:[125:0->82:86] Completable: Cpath Value[aliased]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[aliased]."" ContextPath Value[aliased] Path aliased @@ -396,6 +410,7 @@ posCursor:[86:103] posNoWhite:[86:102] Found expr:[86:92->86:103] Pexp_field [86:92->86:102] _:[125:0->86:103] Completable: Cpath Value[someRecord]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someRecord]."" ContextPath Value[someRecord] Path someRecord @@ -422,6 +437,7 @@ Complete src/CompletionInferValues.res 90:81 posCursor:[90:81] posNoWhite:[90:80] Found expr:[90:69->90:81] Completable: Cpath Value[things]->slic Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[things]->slic ContextPath Value[things] Path things @@ -450,6 +466,7 @@ Complete src/CompletionInferValues.res 94:82 posCursor:[94:82] posNoWhite:[94:81] Found expr:[94:70->94:82] Completable: Cpath Value[someInt]->toS Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someInt]->toS ContextPath Value[someInt] Path someInt @@ -472,6 +489,7 @@ Complete src/CompletionInferValues.res 98:109 posCursor:[98:109] posNoWhite:[98:108] Found expr:[98:97->98:109] Completable: Cpath Value[someInt]->toS Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someInt]->toS ContextPath Value[someInt] Path someInt @@ -498,6 +516,7 @@ posCursor:[102:102] posNoWhite:[102:101] Found expr:[102:57->102:102] posCursor:[102:102] posNoWhite:[102:101] Found expr:[102:90->102:102] Completable: Cpath Value[someInt]->toS Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someInt]->toS ContextPath Value[someInt] Path someInt @@ -523,6 +542,7 @@ Complete src/CompletionInferValues.res 106:88 posCursor:[106:88] posNoWhite:[106:87] Found expr:[106:79->106:88] Completable: Cpath Value[str]->slic Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[str]->slic ContextPath Value[str] Path str @@ -551,6 +571,7 @@ Complete src/CompletionInferValues.res 110:89 posCursor:[110:89] posNoWhite:[110:88] Found expr:[110:80->110:89] Completable: Cpath Value[str]->slic Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[str]->slic ContextPath Value[str] Path str @@ -579,6 +600,7 @@ Complete src/CompletionInferValues.res 114:80 posCursor:[114:80] posNoWhite:[114:79] Found expr:[114:70->114:80] Completable: Cpath Value[name]->slic Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[name]->slic ContextPath Value[name] Path name @@ -608,6 +630,7 @@ posCursor:[118:67] posNoWhite:[118:66] Found expr:[118:60->118:67] Pexp_field [118:60->118:65] s:[118:66->118:67] Completable: Cpath Value[inner].s Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[inner].s ContextPath Value[inner] Path inner @@ -635,6 +658,7 @@ Complete src/CompletionInferValues.res 122:53 posCursor:[122:53] posNoWhite:[122:52] Found expr:[122:46->122:53] Completable: Cpath Value[v]->toSt Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[v]->toSt ContextPath Value[v] Path v @@ -659,6 +683,7 @@ posCursor:[130:26] posNoWhite:[130:25] Found pattern:[130:25->130:27] posCursor:[130:26] posNoWhite:[130:25] Found pattern:[130:25->130:27] Completable: Cpattern CArgument CArgument Value[fnWithRecordCallback]($0)($0)->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CArgument CArgument Value[fnWithRecordCallback]($0)($0) ContextPath CArgument Value[fnWithRecordCallback]($0) ContextPath Value[fnWithRecordCallback] @@ -685,6 +710,7 @@ posCursor:[137:30] posNoWhite:[137:29] Found expr:[137:24->0:-1] posCursor:[137:30] posNoWhite:[137:29] Found expr:[137:24->0:-1] Completable: Cpath Value[root]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[root]-> ContextPath Value[root] Path root @@ -719,6 +745,7 @@ posCursor:[146:30] posNoWhite:[146:29] Found expr:[146:24->0:-1] posCursor:[146:30] posNoWhite:[146:29] Found expr:[146:24->0:-1] Completable: Cpath Value[root]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[root]-> ContextPath Value[root] Path root @@ -755,6 +782,7 @@ Complete src/CompletionInferValues.res 150:47 XXX Not found! Completable: Cpattern Value[Belt, Int, toString](Nolabel) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Belt, Int, toString](Nolabel) ContextPath Value[Belt, Int, toString] Path Belt.Int.toString @@ -773,6 +801,7 @@ Complete src/CompletionInferValues.res 154:70 XXX Not found! Completable: Cpattern Value[Js, String2, split](Nolabel, Nolabel) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Js, String2, split](Nolabel, Nolabel) ContextPath Value[Js, String2, split] Path Js.String2.split @@ -795,6 +824,7 @@ posCursor:[158:105] posNoWhite:[158:104] Found expr:[158:97->158:105] Pexp_field [158:97->158:104] _:[158:105->158:105] Completable: Cpath Value[support]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[support]."" ContextPath Value[support] Path support @@ -819,6 +849,7 @@ posCursor:[162:110] posNoWhite:[162:109] Found expr:[162:104->0:-1] posCursor:[162:110] posNoWhite:[162:109] Found expr:[162:104->0:-1] Completable: Cpath Value[root]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[root]-> ContextPath Value[root] Path root diff --git a/analysis/tests/src/expected/CompletionJsx.res.txt b/analysis/tests/src/expected/CompletionJsx.res.txt index e87737117..4727b410e 100644 --- a/analysis/tests/src/expected/CompletionJsx.res.txt +++ b/analysis/tests/src/expected/CompletionJsx.res.txt @@ -2,6 +2,7 @@ Complete src/CompletionJsx.res 3:17 posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:3->3:17] Completable: Cpath Value[someString]->st Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someString]->st ContextPath Value[someString] Path someString @@ -31,6 +32,7 @@ posCursor:[13:21] posNoWhite:[13:20] Found expr:[13:7->32:10] posCursor:[13:21] posNoWhite:[13:20] Found expr:[13:7->13:21] Completable: Cpath Value[someString]->st <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someString]->st <> ContextPath Value[someString] Path someString @@ -78,6 +80,7 @@ posCursor:[18:24] posNoWhite:[18:23] Found expr:[18:10->32:4] posCursor:[18:24] posNoWhite:[18:23] Found expr:[18:10->18:24] Completable: Cpath Value[someString]->st <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someString]->st <> ContextPath Value[someString] Path someString @@ -125,6 +128,7 @@ posCursor:[20:27] posNoWhite:[20:26] Found expr:[20:10->32:4] posCursor:[20:27] posNoWhite:[20:26] Found expr:[20:10->20:27] Completable: Cpath string->st <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath string->st <> ContextPath string CPPipe env:CompletionJsx @@ -171,6 +175,7 @@ posCursor:[22:44] posNoWhite:[22:43] Found expr:[22:10->32:4] posCursor:[22:44] posNoWhite:[22:43] Found expr:[22:10->22:44] Completable: Cpath Value[Js, String2, trim](Nolabel)->st <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Js, String2, trim](Nolabel)->st <> ContextPath Value[Js, String2, trim](Nolabel) ContextPath Value[Js, String2, trim] @@ -219,6 +224,7 @@ posCursor:[24:19] posNoWhite:[24:18] Found expr:[24:10->32:4] posCursor:[24:19] posNoWhite:[24:18] Found expr:[24:10->0:-1] Completable: Cpath Value[someInt]-> <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someInt]-> <> ContextPath Value[someInt] Path someInt @@ -302,6 +308,7 @@ posCursor:[26:14] posNoWhite:[26:13] Found expr:[26:10->32:4] posCursor:[26:14] posNoWhite:[26:13] Found expr:[26:10->0:-1] Completable: Cpath int-> <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath int-> <> ContextPath int CPPipe env:CompletionJsx @@ -384,6 +391,7 @@ posCursor:[28:20] posNoWhite:[28:19] Found expr:[28:10->32:4] posCursor:[28:20] posNoWhite:[28:19] Found expr:[28:10->28:20] Completable: Cpath Value[someArr]->a <> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someArr]->a <> ContextPath Value[someArr] Path someArr @@ -426,6 +434,7 @@ posCursor:[30:12] posNoWhite:[30:11] Found expr:[30:10->30:12] JSX 30:12] > _children:None Completable: ChtmlElement ", "kind": 4, @@ -454,6 +463,7 @@ posCursor:[45:23] posNoWhite:[45:22] Found expr:[45:4->45:23] JSX 45:21] n[45:22->45:23]=...[45:22->45:23]> _children:None Completable: Cjsx([CompWithoutJsxPpx], n, [n]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path CompWithoutJsxPpx.make [{ "label": "name", diff --git a/analysis/tests/src/expected/CompletionJsxProps.res.txt b/analysis/tests/src/expected/CompletionJsxProps.res.txt index 668161505..eb2fcff43 100644 --- a/analysis/tests/src/expected/CompletionJsxProps.res.txt +++ b/analysis/tests/src/expected/CompletionJsxProps.res.txt @@ -3,6 +3,7 @@ posCursor:[0:47] posNoWhite:[0:46] Found expr:[0:12->0:47] JSX 0:43] on[0:44->0:46]=...__ghost__[0:-1->0:-1]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] on Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [CompletionSupport, TestComponent] on Path CompletionSupport.TestComponent.make [{ @@ -24,6 +25,7 @@ posCursor:[3:48] posNoWhite:[3:47] Found expr:[3:12->3:48] JSX 3:43] on[3:44->3:46]=...[3:47->3:48]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] on=t Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [CompletionSupport, TestComponent] on Path CompletionSupport.TestComponent.make [{ @@ -39,6 +41,7 @@ posCursor:[6:50] posNoWhite:[6:49] Found expr:[6:12->6:50] JSX 6:43] test[6:44->6:48]=...[6:49->6:50]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] test=T Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [CompletionSupport, TestComponent] test Path CompletionSupport.TestComponent.make [{ @@ -78,6 +81,7 @@ posCursor:[9:52] posNoWhite:[9:51] Found expr:[9:12->9:52] JSX 9:43] polyArg[9:44->9:51]=...__ghost__[0:-1->0:-1]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] polyArg Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [CompletionSupport, TestComponent] polyArg Path CompletionSupport.TestComponent.make [{ @@ -119,6 +123,7 @@ posCursor:[12:54] posNoWhite:[12:53] Found expr:[12:12->12:54] JSX 12:43] polyArg[12:44->12:51]=...[12:52->12:54]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] polyArg=#t Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [CompletionSupport, TestComponent] polyArg Path CompletionSupport.TestComponent.make [{ @@ -152,9 +157,10 @@ posCursor:[15:22] posNoWhite:[15:21] Found expr:[15:12->15:25] JSX 15:15] muted[15:16->15:21]=...__ghost__[0:-1->0:-1]> _children:15:23 Completable: Cexpression CJsxPropValue [div] muted Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [div] muted Path ReactDOM.domProps -Path JsxDOM.domProps +Path Pervasives.JsxDOM.domProps [{ "label": "true", "kind": 4, @@ -174,17 +180,18 @@ posCursor:[18:29] posNoWhite:[18:28] Found expr:[18:12->18:32] JSX 18:15] onMouseEnter[18:16->18:28]=...__ghost__[0:-1->0:-1]> _children:18:30 Completable: Cexpression CJsxPropValue [div] onMouseEnter Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [div] onMouseEnter Path ReactDOM.domProps -Path JsxDOM.domProps +Path Pervasives.JsxDOM.domProps [{ - "label": "event => {}", + "label": "v => {}", "kind": 12, "tags": [], - "detail": "JsxEvent.Mouse.t => unit", + "detail": "JsxEventC.Mouse.t => unit", "documentation": null, "sortText": "A", - "insertText": "{${1:event} => {$0}}", + "insertText": "{${1:v} => {$0}}", "insertTextFormat": 2 }] @@ -193,6 +200,7 @@ posCursor:[22:52] posNoWhite:[22:51] Found expr:[22:12->22:52] JSX 22:43] testArr[22:44->22:51]=...__ghost__[0:-1->0:-1]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] testArr Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [CompletionSupport, TestComponent] testArr Path CompletionSupport.TestComponent.make [{ @@ -211,6 +219,7 @@ posCursor:[26:54] posNoWhite:[26:53] Found expr:[26:12->26:56] JSX 26:43] testArr[26:44->26:51]=...[26:53->26:55]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] testArr->array Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [CompletionSupport, TestComponent] testArr Path CompletionSupport.TestComponent.make [{ diff --git a/analysis/tests/src/expected/CompletionPattern.res.txt b/analysis/tests/src/expected/CompletionPattern.res.txt index cbaddb05c..c1824c8a1 100644 --- a/analysis/tests/src/expected/CompletionPattern.res.txt +++ b/analysis/tests/src/expected/CompletionPattern.res.txt @@ -6,6 +6,7 @@ Complete src/CompletionPattern.res 10:15 XXX Not found! Completable: Cpattern Value[v] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[v] Path v [{ @@ -23,6 +24,7 @@ posCursor:[13:18] posNoWhite:[13:17] Found pattern:[13:16->13:22] posCursor:[13:18] posNoWhite:[13:17] Found pattern:[13:17->13:18] Completable: Cpattern Value[v]=t->tuple($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[v] Path v [{ @@ -39,6 +41,7 @@ posCursor:[16:25] posNoWhite:[16:24] Found pattern:[16:23->16:29] posCursor:[16:25] posNoWhite:[16:24] Found pattern:[16:24->16:25] Completable: Cpattern Value[v]=f->tuple($2), tuple($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[v] Path v [{ @@ -53,6 +56,7 @@ Complete src/CompletionPattern.res 21:15 XXX Not found! Completable: Cpattern Value[x] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x] Path x [{ @@ -73,6 +77,7 @@ Complete src/CompletionPattern.res 24:17 posCursor:[24:17] posNoWhite:[24:16] Found pattern:[24:16->24:17] Completable: Cpattern Value[x]=t Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x] Path x [{ @@ -87,6 +92,7 @@ Complete src/CompletionPattern.res 46:15 XXX Not found! Completable: Cpattern Value[f] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[f] Path f [{ @@ -104,6 +110,7 @@ Complete src/CompletionPattern.res 49:17 posCursor:[49:17] posNoWhite:[49:16] Found pattern:[49:16->49:18] Completable: Cpattern Value[f]->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[f] Path f [{ @@ -136,6 +143,7 @@ Complete src/CompletionPattern.res 52:24 posCursor:[52:24] posNoWhite:[52:22] Found pattern:[52:16->52:35] Completable: Cpattern Value[f]->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[f] Path f [{ @@ -157,6 +165,7 @@ posCursor:[55:19] posNoWhite:[55:18] Found pattern:[55:16->55:20] posCursor:[55:19] posNoWhite:[55:18] Found pattern:[55:17->55:19] Completable: Cpattern Value[f]=fi->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[f] Path f [{ @@ -173,6 +182,7 @@ posCursor:[58:19] posNoWhite:[58:18] Found pattern:[58:17->58:20] posCursor:[58:19] posNoWhite:[58:18] Found pattern:[58:18->58:19] Completable: Cpattern Value[z]=o->tuple($0), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[z] Path z [{ @@ -187,6 +197,7 @@ Complete src/CompletionPattern.res 61:22 posCursor:[61:22] posNoWhite:[61:21] Found pattern:[61:16->61:25] Completable: Cpattern Value[f]->recordField(nest) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[f] Path f [{ @@ -205,6 +216,7 @@ posCursor:[64:24] posNoWhite:[64:23] Found pattern:[64:16->64:26] posCursor:[64:24] posNoWhite:[64:23] Found pattern:[64:23->64:25] Completable: Cpattern Value[f]->recordField(nest), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[f] Path f [{ @@ -221,6 +233,7 @@ posCursor:[70:22] posNoWhite:[70:21] Found expr:[70:5->72:13] posCursor:[70:22] posNoWhite:[70:21] Found pattern:[70:21->70:23] Completable: Cpattern Value[nest]->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[nest] Path nest [{ @@ -235,6 +248,7 @@ Complete src/CompletionPattern.res 76:8 posCursor:[76:8] posNoWhite:[76:7] Found pattern:[76:7->76:9] Completable: Cpattern Value[f]->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[f] Path f [{ @@ -269,6 +283,7 @@ posCursor:[79:16] posNoWhite:[79:15] Found pattern:[79:14->79:17] posCursor:[79:16] posNoWhite:[79:15] Found pattern:[79:15->79:16] Completable: Cpattern Value[f]=n->recordField(nest), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[f] Path f [{ @@ -286,6 +301,7 @@ posCursor:[87:20] posNoWhite:[87:19] Found pattern:[87:19->87:21] Ppat_construct ():[87:19->87:21] Completable: Cpattern Value[z]->variantPayload::Two($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[z] Path z [{ @@ -308,6 +324,7 @@ Ppat_construct Two:[90:16->90:19] posCursor:[90:21] posNoWhite:[90:20] Found pattern:[90:20->90:21] Completable: Cpattern Value[z]=t->variantPayload::Two($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[z] Path z [{ @@ -324,6 +341,7 @@ Ppat_construct Three:[93:16->93:21] posCursor:[93:23] posNoWhite:[93:22] Found pattern:[93:22->93:24] Completable: Cpattern Value[z]->variantPayload::Three($0), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[z] Path z [{ @@ -359,6 +377,7 @@ posCursor:[96:27] posNoWhite:[96:26] Found pattern:[96:21->96:29] posCursor:[96:27] posNoWhite:[96:26] Found pattern:[96:26->96:27] Completable: Cpattern Value[z]=t->variantPayload::Three($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[z] Path z [{ @@ -375,6 +394,7 @@ posCursor:[103:21] posNoWhite:[103:20] Found pattern:[103:20->103:21] Ppat_construct ():[103:20->103:21] Completable: Cpattern Value[b]->polyvariantPayload::two($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[b] Path b [{ @@ -396,6 +416,7 @@ posCursor:[106:22] posNoWhite:[106:21] Found pattern:[106:16->106:23] posCursor:[106:22] posNoWhite:[106:21] Found pattern:[106:21->106:22] Completable: Cpattern Value[b]=t->polyvariantPayload::two($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[b] Path b [{ @@ -411,6 +432,7 @@ posCursor:[109:24] posNoWhite:[109:23] Found pattern:[109:16->109:26] posCursor:[109:24] posNoWhite:[109:23] Found pattern:[109:23->109:25] Completable: Cpattern Value[b]->polyvariantPayload::three($0), recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[b] Path b [{ @@ -445,6 +467,7 @@ posCursor:[112:28] posNoWhite:[112:27] Found pattern:[112:22->112:29] posCursor:[112:28] posNoWhite:[112:27] Found pattern:[112:27->112:28] Completable: Cpattern Value[b]=t->polyvariantPayload::three($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[b] Path b [{ @@ -459,6 +482,7 @@ Complete src/CompletionPattern.res 118:15 XXX Not found! Completable: Cpattern Value[c] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[c] Path c [{ @@ -476,6 +500,7 @@ Complete src/CompletionPattern.res 121:17 posCursor:[121:17] posNoWhite:[121:16] Found pattern:[121:16->121:18] Completable: Cpattern Value[c]->array Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[c] Path c [{ @@ -499,6 +524,7 @@ posCursor:[127:21] posNoWhite:[127:20] Found pattern:[127:20->127:22] Ppat_construct ():[127:20->127:22] Completable: Cpattern Value[o]->variantPayload::Some($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[o] Path o [{ @@ -520,6 +546,7 @@ posCursor:[134:23] posNoWhite:[134:22] Found pattern:[134:16->134:25] Ppat_construct Test:[134:16->134:20] Completable: Cpattern Value[p]->variantPayload::Test($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[p] Path p [{ @@ -542,6 +569,7 @@ Ppat_construct Test:[137:16->137:20] posCursor:[137:29] posNoWhite:[137:28] Found pattern:[137:20->137:32] Completable: Cpattern Value[p]->variantPayload::Test($2) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[p] Path p [{ @@ -578,6 +606,7 @@ Ppat_construct Test:[140:16->140:20] posCursor:[140:23] posNoWhite:[140:22] Found pattern:[140:20->140:32] Completable: Cpattern Value[p]->variantPayload::Test($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[p] Path p [{ @@ -600,6 +629,7 @@ Ppat_construct Test:[143:16->143:20] posCursor:[143:35] posNoWhite:[143:34] Found pattern:[143:20->143:38] Completable: Cpattern Value[p]->variantPayload::Test($3) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[p] Path p [{ @@ -617,6 +647,7 @@ Complete src/CompletionPattern.res 150:24 posCursor:[150:24] posNoWhite:[150:23] Found pattern:[150:16->150:26] Completable: Cpattern Value[v]->polyvariantPayload::test($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[v] Path v [{ @@ -638,6 +669,7 @@ posCursor:[153:30] posNoWhite:[153:29] Found pattern:[153:16->153:32] posCursor:[153:30] posNoWhite:[153:29] Found pattern:[153:21->153:32] Completable: Cpattern Value[v]->polyvariantPayload::test($2) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[v] Path v [{ @@ -673,6 +705,7 @@ posCursor:[156:24] posNoWhite:[156:23] Found pattern:[156:16->156:32] posCursor:[156:24] posNoWhite:[156:23] Found pattern:[156:21->156:32] Completable: Cpattern Value[v]->polyvariantPayload::test($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[v] Path v [{ @@ -694,6 +727,7 @@ posCursor:[159:36] posNoWhite:[159:35] Found pattern:[159:16->159:38] posCursor:[159:36] posNoWhite:[159:35] Found pattern:[159:21->159:38] Completable: Cpattern Value[v]->polyvariantPayload::test($3) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[v] Path v [{ @@ -712,6 +746,7 @@ posCursor:[164:17] posNoWhite:[164:16] Found pattern:[164:16->164:18] Ppat_construct ():[164:16->164:18] Completable: Cpattern Value[s]->tuple($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[s] Path s [{ @@ -732,6 +767,7 @@ Complete src/CompletionPattern.res 167:23 posCursor:[167:23] posNoWhite:[167:21] Found pattern:[167:16->167:24] Completable: Cpattern Value[s]->tuple($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[s] Path s [{ @@ -766,6 +802,7 @@ Complete src/CompletionPattern.res 170:22 posCursor:[170:22] posNoWhite:[170:21] Found pattern:[170:16->170:28] Completable: Cpattern Value[s]->tuple($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[s] Path s [{ @@ -800,6 +837,7 @@ Complete src/CompletionPattern.res 173:35 XXX Not found! Completable: Cpattern Value[s] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[s] Path s [{ @@ -816,6 +854,7 @@ Complete src/CompletionPattern.res 176:41 posCursor:[176:41] posNoWhite:[176:40] Found pattern:[176:35->176:47] Completable: Cpattern Value[s]->tuple($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[s] Path s [{ @@ -850,6 +889,7 @@ Complete src/CompletionPattern.res 179:21 XXX Not found! Completable: Cpattern Value[z] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[z] Path z [{ @@ -884,6 +924,7 @@ posCursor:[182:32] posNoWhite:[182:31] Found pattern:[182:22->182:34] Ppat_construct Two:[182:22->182:25] Completable: Cpattern Value[z]->variantPayload::Two($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[z] Path z [{ @@ -907,6 +948,7 @@ Ppat_construct Three:[185:22->185:27] posCursor:[185:48] posNoWhite:[185:47] Found pattern:[185:27->185:53] Completable: Cpattern Value[z]->variantPayload::Three($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[z] Path z [{ @@ -928,6 +970,7 @@ posCursor:[188:34] posNoWhite:[188:33] Found pattern:[188:16->188:36] posCursor:[188:34] posNoWhite:[188:33] Found pattern:[188:23->188:36] Completable: Cpattern Value[b]->polyvariantPayload::two($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[b] Path b [{ @@ -950,6 +993,7 @@ posCursor:[191:50] posNoWhite:[191:49] Found pattern:[191:23->191:52] posCursor:[191:50] posNoWhite:[191:49] Found pattern:[191:29->191:52] Completable: Cpattern Value[b]->polyvariantPayload::three($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[b] Path b [{ @@ -971,6 +1015,7 @@ posCursor:[194:24] posNoWhite:[194:23] Found pattern:[194:16->194:29] posCursor:[194:24] posNoWhite:[194:23] Found pattern:[194:23->194:24] Completable: Cpattern Value[s]->tuple($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[s] Path s [{ @@ -1005,6 +1050,7 @@ Complete src/CompletionPattern.res 201:25 posCursor:[201:25] posNoWhite:[201:24] Found pattern:[201:17->201:28] Completable: Cpattern Value[ff]->recordField(someFn) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[ff] Path ff [] @@ -1013,6 +1059,7 @@ Complete src/CompletionPattern.res 206:16 XXX Not found! Completable: Cpattern Value[xn] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[xn] Path xn [{ diff --git a/analysis/tests/src/expected/CompletionPipeChain.res.txt b/analysis/tests/src/expected/CompletionPipeChain.res.txt index ba47df7bd..9e6b4bd50 100644 --- a/analysis/tests/src/expected/CompletionPipeChain.res.txt +++ b/analysis/tests/src/expected/CompletionPipeChain.res.txt @@ -2,6 +2,7 @@ Complete src/CompletionPipeChain.res 27:16 posCursor:[27:16] posNoWhite:[27:15] Found expr:[27:11->0:-1] Completable: Cpath Value[int]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[int]-> ContextPath Value[int] Path int @@ -39,6 +40,7 @@ Complete src/CompletionPipeChain.res 30:23 posCursor:[30:23] posNoWhite:[30:22] Found expr:[30:11->0:-1] Completable: Cpath Value[toFlt](Nolabel)-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[toFlt](Nolabel)-> ContextPath Value[toFlt](Nolabel) ContextPath Value[toFlt] @@ -65,6 +67,7 @@ Complete src/CompletionPipeChain.res 33:38 posCursor:[33:38] posNoWhite:[33:37] Found expr:[33:11->0:-1] Completable: Cpath Value[Integer, increment](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Integer, increment](Nolabel, Nolabel)-> ContextPath Value[Integer, increment](Nolabel, Nolabel) ContextPath Value[Integer, increment] @@ -103,6 +106,7 @@ Complete src/CompletionPipeChain.res 36:38 posCursor:[36:38] posNoWhite:[36:37] Found expr:[36:11->0:-1] Completable: Cpath Value[Integer, increment](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Integer, increment](Nolabel, Nolabel)-> ContextPath Value[Integer, increment](Nolabel, Nolabel) ContextPath Value[Integer, increment] @@ -141,6 +145,7 @@ Complete src/CompletionPipeChain.res 39:47 posCursor:[39:47] posNoWhite:[39:46] Found expr:[39:11->0:-1] Completable: Cpath Value[Integer, decrement](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Integer, decrement](Nolabel, Nolabel)-> ContextPath Value[Integer, decrement](Nolabel, Nolabel) ContextPath Value[Integer, decrement] @@ -179,6 +184,7 @@ Complete src/CompletionPipeChain.res 42:69 posCursor:[42:69] posNoWhite:[42:68] Found expr:[42:11->0:-1] Completable: Cpath Value[Integer, decrement](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Integer, decrement](Nolabel, Nolabel)-> ContextPath Value[Integer, decrement](Nolabel, Nolabel) ContextPath Value[Integer, decrement] @@ -217,6 +223,7 @@ Complete src/CompletionPipeChain.res 45:62 posCursor:[45:62] posNoWhite:[45:61] Found expr:[45:11->0:-1] Completable: Cpath Value[SuperFloat, fromInteger](Nolabel)-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[SuperFloat, fromInteger](Nolabel)-> ContextPath Value[SuperFloat, fromInteger](Nolabel) ContextPath Value[SuperFloat, fromInteger] @@ -243,6 +250,7 @@ Complete src/CompletionPipeChain.res 48:63 posCursor:[48:63] posNoWhite:[48:62] Found expr:[48:11->48:63] Completable: Cpath Value[SuperFloat, fromInteger](Nolabel)->t Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[SuperFloat, fromInteger](Nolabel)->t ContextPath Value[SuperFloat, fromInteger](Nolabel) ContextPath Value[SuperFloat, fromInteger] @@ -263,6 +271,7 @@ Complete src/CompletionPipeChain.res 51:82 posCursor:[51:82] posNoWhite:[51:81] Found expr:[51:11->0:-1] Completable: Cpath Value[CompletionSupport, Test, make](Nolabel)-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[CompletionSupport, Test, make](Nolabel)-> ContextPath Value[CompletionSupport, Test, make](Nolabel) ContextPath Value[CompletionSupport, Test, make] @@ -295,6 +304,7 @@ Complete src/CompletionPipeChain.res 54:78 posCursor:[54:78] posNoWhite:[54:77] Found expr:[54:11->0:-1] Completable: Cpath Value[CompletionSupport, Test, addSelf](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[CompletionSupport, Test, addSelf](Nolabel, Nolabel)-> ContextPath Value[CompletionSupport, Test, addSelf](Nolabel, Nolabel) ContextPath Value[CompletionSupport, Test, addSelf] @@ -327,6 +337,7 @@ Complete src/CompletionPipeChain.res 58:5 posCursor:[58:5] posNoWhite:[58:4] Found expr:[57:8->0:-1] Completable: Cpath Value[Js, Array2, forEach](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Js, Array2, forEach](Nolabel, Nolabel)-> ContextPath Value[Js, Array2, forEach](Nolabel, Nolabel) ContextPath Value[Js, Array2, forEach] @@ -340,6 +351,7 @@ Complete src/CompletionPipeChain.res 62:6 posCursor:[62:6] posNoWhite:[62:5] Found expr:[61:8->62:6] Completable: Cpath Value[Belt, Array, reduce](Nolabel, Nolabel, Nolabel)->t Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Belt, Array, reduce](Nolabel, Nolabel, Nolabel)->t ContextPath Value[Belt, Array, reduce](Nolabel, Nolabel, Nolabel) ContextPath Value[Belt, Array, reduce] @@ -364,6 +376,7 @@ Complete src/CompletionPipeChain.res 70:12 posCursor:[70:12] posNoWhite:[70:11] Found expr:[70:3->0:-1] Completable: Cpath Value[aliased]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[aliased]-> ContextPath Value[aliased] Path aliased @@ -395,6 +408,7 @@ Complete src/CompletionPipeChain.res 73:15 posCursor:[73:15] posNoWhite:[73:14] Found expr:[73:3->0:-1] Completable: Cpath Value[notAliased]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[notAliased]-> ContextPath Value[notAliased] Path notAliased @@ -431,6 +445,7 @@ posCursor:[82:30] posNoWhite:[82:29] Found expr:[82:7->90:14] posCursor:[82:30] posNoWhite:[82:29] Found expr:[82:7->82:30] Completable: Cpath Value[props].support.root->ren Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[props].support.root->ren ContextPath Value[props].support.root ContextPath Value[props].support @@ -459,6 +474,7 @@ posCursor:[88:16] posNoWhite:[88:15] Found expr:[88:7->90:14] posCursor:[88:16] posNoWhite:[88:15] Found expr:[88:7->88:16] Completable: Cpath Value[root]->ren Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[root]->ren ContextPath Value[root] Path root diff --git a/analysis/tests/src/expected/CompletionPipeSubmodules.res.txt b/analysis/tests/src/expected/CompletionPipeSubmodules.res.txt index c4502045f..5d122827a 100644 --- a/analysis/tests/src/expected/CompletionPipeSubmodules.res.txt +++ b/analysis/tests/src/expected/CompletionPipeSubmodules.res.txt @@ -2,6 +2,7 @@ Complete src/CompletionPipeSubmodules.res 12:20 posCursor:[12:20] posNoWhite:[12:19] Found expr:[12:11->20:8] Completable: Cpath Value[A, B1, xx]-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[A, B1, xx]-> ContextPath Value[A, B1, xx] Path A.B1.xx @@ -27,6 +28,7 @@ Complete src/CompletionPipeSubmodules.res 16:18 posCursor:[16:18] posNoWhite:[16:17] Found expr:[16:11->20:8] Completable: Cpath Value[A, x].v-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[A, x].v-> ContextPath Value[A, x].v ContextPath Value[A, x] @@ -53,6 +55,7 @@ Complete src/CompletionPipeSubmodules.res 38:20 posCursor:[38:20] posNoWhite:[38:19] Found expr:[38:11->0:-1] Completable: Cpath Value[E, e].v.v-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[E, e].v.v-> ContextPath Value[E, e].v.v ContextPath Value[E, e].v @@ -74,6 +77,7 @@ Complete src/CompletionPipeSubmodules.res 42:21 posCursor:[42:21] posNoWhite:[42:20] Found expr:[42:11->0:-1] Completable: Cpath Value[E, e].v.v2-> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[E, e].v.v2-> ContextPath Value[E, e].v.v2 ContextPath Value[E, e].v diff --git a/analysis/tests/src/expected/CompletionTypeAnnotation.res.txt b/analysis/tests/src/expected/CompletionTypeAnnotation.res.txt index 913c03ddb..7ca7be2cb 100644 --- a/analysis/tests/src/expected/CompletionTypeAnnotation.res.txt +++ b/analysis/tests/src/expected/CompletionTypeAnnotation.res.txt @@ -2,6 +2,7 @@ Complete src/CompletionTypeAnnotation.res 9:22 XXX Not found! Completable: Cexpression Type[someRecord] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[someRecord] Path someRecord [{ @@ -19,6 +20,7 @@ Complete src/CompletionTypeAnnotation.res 12:24 XXX Not found! Completable: Cexpression Type[someRecord]->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[someRecord] Path someRecord [{ @@ -39,6 +41,7 @@ Complete src/CompletionTypeAnnotation.res 15:23 XXX Not found! Completable: Cexpression Type[someVariant] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[someVariant] Path someVariant [{ @@ -63,6 +66,7 @@ Complete src/CompletionTypeAnnotation.res 18:25 XXX Not found! Completable: Cexpression Type[someVariant]=O Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[someVariant] Path someVariant [{ @@ -92,6 +96,7 @@ Complete src/CompletionTypeAnnotation.res 21:27 XXX Not found! Completable: Cexpression Type[somePolyVariant] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[somePolyVariant] Path somePolyVariant [{ @@ -116,6 +121,7 @@ Complete src/CompletionTypeAnnotation.res 24:30 XXX Not found! Completable: Cexpression Type[somePolyVariant]=#o Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[somePolyVariant] Path somePolyVariant [{ @@ -132,6 +138,7 @@ Complete src/CompletionTypeAnnotation.res 29:20 XXX Not found! Completable: Cexpression Type[someFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[someFunc] Path someFunc [{ @@ -149,6 +156,7 @@ Complete src/CompletionTypeAnnotation.res 34:21 XXX Not found! Completable: Cexpression Type[someTuple] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[someTuple] Path someTuple [{ @@ -165,6 +173,7 @@ Complete src/CompletionTypeAnnotation.res 37:28 XXX Not found! Completable: Cexpression Type[someTuple]->tuple($1) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[someTuple] Path someTuple [{ @@ -199,6 +208,7 @@ Complete src/CompletionTypeAnnotation.res 40:31 XXX Not found! Completable: Cexpression option Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath option ContextPath Type[someVariant] Path someVariant @@ -238,6 +248,7 @@ Complete src/CompletionTypeAnnotation.res 43:37 XXX Not found! Completable: Cexpression option->variantPayload::Some($0) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath option ContextPath Type[someVariant] Path someVariant @@ -263,6 +274,7 @@ Complete src/CompletionTypeAnnotation.res 46:30 XXX Not found! Completable: Cexpression array Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath array ContextPath Type[someVariant] Path someVariant @@ -281,6 +293,7 @@ Complete src/CompletionTypeAnnotation.res 49:32 XXX Not found! Completable: Cexpression array->array Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath array ContextPath Type[someVariant] Path someVariant @@ -306,6 +319,7 @@ Complete src/CompletionTypeAnnotation.res 52:38 XXX Not found! Completable: Cexpression array> Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath array> ContextPath option ContextPath Type[someVariant] @@ -325,6 +339,7 @@ Complete src/CompletionTypeAnnotation.res 55:45 XXX Not found! Completable: Cexpression option>->variantPayload::Some($0), array Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath option> ContextPath array ContextPath Type[someVariant] diff --git a/analysis/tests/src/expected/Cross.res.txt b/analysis/tests/src/expected/Cross.res.txt index aa2d598ff..931e334cb 100644 --- a/analysis/tests/src/expected/Cross.res.txt +++ b/analysis/tests/src/expected/Cross.res.txt @@ -98,6 +98,7 @@ posCursor:[36:28] posNoWhite:[36:27] Found expr:[36:3->36:28] Pexp_ident DefinitionWithInterface.a:[36:3->36:28] Completable: Cpath Value[DefinitionWithInterface, a] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[DefinitionWithInterface, a] Path DefinitionWithInterface.a [] diff --git a/analysis/tests/src/expected/Debug.res.txt b/analysis/tests/src/expected/Debug.res.txt index 91bc41d6f..6831c6d3d 100644 --- a/analysis/tests/src/expected/Debug.res.txt +++ b/analysis/tests/src/expected/Debug.res.txt @@ -10,7 +10,7 @@ Pexp_ident eqN:[14:5->14:8] Completable: Cpath Value[eqN] Raw opens: 1 Js.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 1 js.ml +Resolved opens 2 js.ml pervasives.res ContextPath Value[eqN] Path eqN [{ diff --git a/analysis/tests/src/expected/Destructuring.res.txt b/analysis/tests/src/expected/Destructuring.res.txt index 975d92333..f78ba866e 100644 --- a/analysis/tests/src/expected/Destructuring.res.txt +++ b/analysis/tests/src/expected/Destructuring.res.txt @@ -2,6 +2,7 @@ Complete src/Destructuring.res 4:11 posCursor:[4:11] posNoWhite:[4:9] Found pattern:[4:4->4:12] Completable: Cpattern Value[x]->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x] Path x [{ @@ -16,6 +17,7 @@ Complete src/Destructuring.res 7:8 posCursor:[7:8] posNoWhite:[7:7] Found pattern:[7:7->7:9] Completable: Cpattern Value[x]->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x] Path x [{ @@ -38,6 +40,7 @@ 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 Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x] Path x [{ @@ -54,6 +57,7 @@ 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 Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x] Path x [{ @@ -74,6 +78,7 @@ Complete src/Destructuring.res 31:8 posCursor:[31:8] posNoWhite:[31:7] Found pattern:[31:7->31:9] Completable: Cpattern Value[x]->recordBody Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x] Path x [{ diff --git a/analysis/tests/src/expected/Div.res.txt b/analysis/tests/src/expected/Div.res.txt index 211154797..28d6b3506 100644 --- a/analysis/tests/src/expected/Div.res.txt +++ b/analysis/tests/src/expected/Div.res.txt @@ -7,6 +7,7 @@ posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:4->3:17] JSX 3:7] dangerous[3:8->3:17]=...[3:8->3:17]> _children:None Completable: Cjsx([div], dangerous, [dangerous]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res [{ "label": "dangerouslySetInnerHTML", "kind": 4, diff --git a/analysis/tests/src/expected/ExhaustiveSwitch.res.txt b/analysis/tests/src/expected/ExhaustiveSwitch.res.txt index 65df9a00a..6fbc351f7 100644 --- a/analysis/tests/src/expected/ExhaustiveSwitch.res.txt +++ b/analysis/tests/src/expected/ExhaustiveSwitch.res.txt @@ -2,6 +2,7 @@ Complete src/ExhaustiveSwitch.res 8:24 XXX Not found! Completable: CexhaustiveSwitch Value[withSomeVarian] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[withSomeVarian] Path withSomeVarian [{ @@ -25,6 +26,7 @@ Complete src/ExhaustiveSwitch.res 11:21 XXX Not found! Completable: CexhaustiveSwitch Value[withSomePol] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[withSomePol] Path withSomePol [{ @@ -48,6 +50,7 @@ Complete src/ExhaustiveSwitch.res 14:17 XXX Not found! Completable: CexhaustiveSwitch Value[someBoo] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someBoo] Path someBoo [{ @@ -71,6 +74,7 @@ Complete src/ExhaustiveSwitch.res 17:16 XXX Not found! Completable: CexhaustiveSwitch Value[someOp] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someOp] Path someOp [{ diff --git a/analysis/tests/src/expected/Fragment.res.txt b/analysis/tests/src/expected/Fragment.res.txt index 4000b1501..d80d1c56a 100644 --- a/analysis/tests/src/expected/Fragment.res.txt +++ b/analysis/tests/src/expected/Fragment.res.txt @@ -1,7 +1,7 @@ Hover src/Fragment.res 6:19 getLocItem #4: heuristic for within fragments: take make as makeProps does not work the type is not great but jump to definition works -{"contents": {"kind": "markdown", "value": "```rescript\nReact.component<{\"children\": React.element}>\n```\n\n---\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C12%2C0%5D)\n"}} +{"contents": {"kind": "markdown", "value": "```rescript\nReact.component<{\"children\": Jsx.element}>\n```\n\n---\n\n```\n \n```\n```rescript\ntype React.component<'props> = Jsx.component<'props>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22React.res%22%2C12%2C0%5D)\n"}} Hover src/Fragment.res 9:56 Nothing at that position. Now trying to use completion. diff --git a/analysis/tests/src/expected/Hover.res.txt b/analysis/tests/src/expected/Hover.res.txt index 054ec1fb7..873d8eee5 100644 --- a/analysis/tests/src/expected/Hover.res.txt +++ b/analysis/tests/src/expected/Hover.res.txt @@ -87,19 +87,20 @@ Nothing at that position. Now trying to use completion. Attribute id:live:[122:0->122:5] label:live Completable: Cdecorator(live) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res {"contents": {"kind": "markdown", "value": "The `@live` decorator is for reanalyze, a static analysis tool for ReScript that can do dead code analysis.\n\n`@live` tells the dead code analysis that the value should be considered live, even though it might appear to be dead. This is typically used in case of FFI where there are indirect ways to access values. It can be added to everything that could otherwise be considered unused by the dead code analysis - values, functions, arguments, records, individual record fields, and so on.\n\n[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#live-decorator).\n\nHint: Did you know you can run an interactive code analysis in your project by running the command `> ReScript: Start Code Analyzer`? Try it!"}} Hover src/Hover.res 125:4 -{"contents": {"kind": "markdown", "value": "```rescript\n(. ()) => unit => int\n```"}} +{"contents": {"kind": "markdown", "value": "```rescript\n(. unit, unit) => int\n```"}} Hover src/Hover.res 131:4 -{"contents": {"kind": "markdown", "value": "```rescript\n(. ()) => (. ()) => int\n```"}} +{"contents": {"kind": "markdown", "value": "```rescript\n(. unit) => (. unit) => int\n```"}} Hover src/Hover.res 134:4 {"contents": {"kind": "markdown", "value": "```rescript\n(. unit, unit) => int\n```"}} Hover src/Hover.res 137:5 -{"contents": {"kind": "markdown", "value": "```rescript\n(. ()) => unit => int\n```"}} +{"contents": {"kind": "markdown", "value": "```rescript\n(. unit, unit) => int\n```"}} Hover src/Hover.res 144:9 {"contents": {"kind": "markdown", "value": "```rescript\nint\n```\n\ndoc comment 1"}} @@ -118,6 +119,7 @@ posCursor:[170:16] posNoWhite:[170:15] Found expr:[170:5->170:16] Pexp_field [170:5->170:15] _:[176:2->170:16] Completable: Cpath Value[x1].content."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x1].content."" ContextPath Value[x1].content ContextPath Value[x1] @@ -135,6 +137,7 @@ posCursor:[173:16] posNoWhite:[173:15] Found expr:[173:5->173:16] Pexp_field [173:5->173:15] _:[176:2->173:16] Completable: Cpath Value[x2].content."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x2].content."" ContextPath Value[x2].content ContextPath Value[x2] @@ -152,6 +155,7 @@ posCursor:[182:16] posNoWhite:[182:15] Found expr:[182:5->182:16] Pexp_field [182:5->182:15] _:[187:0->182:16] Completable: Cpath Value[y1].content."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[y1].content."" ContextPath Value[y1].content ContextPath Value[y1] @@ -169,6 +173,7 @@ posCursor:[185:16] posNoWhite:[185:15] Found expr:[185:5->185:16] Pexp_field [185:5->185:15] _:[187:0->185:16] Completable: Cpath Value[y2].content."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[y2].content."" ContextPath Value[y2].content ContextPath Value[y2] @@ -193,9 +198,11 @@ posCursor:[210:13] posNoWhite:[210:12] Found expr:[210:11->210:14] Pexp_ident usr:[210:11->210:14] Completable: Cpath Value[usr] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[usr] Path usr Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res {"contents": {"kind": "markdown", "value": "```rescript\nuseR\n```\n\n---\n\n```\n \n```\n```rescript\ntype useR = {x: int, y: list>>}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C200%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype r<'a> = {i: 'a, f: float}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C101%2C0%5D)\n"}} Hover src/Hover.res 230:20 @@ -210,10 +217,12 @@ posCursor:[245:6] posNoWhite:[245:5] Found expr:[245:3->245:14] Pexp_field [245:3->245:4] someField:[245:5->245:14] Completable: Cpath Value[x].someField Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x].someField ContextPath Value[x] Path x Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res {"contents": {"kind": "markdown", "value": "```rescript\nbool\n```\n\n Mighty fine field here. "}} Hover src/Hover.res 248:19 @@ -228,9 +237,11 @@ posCursor:[257:23] posNoWhite:[257:22] Found expr:[257:22->257:25] Pexp_ident fff:[257:22->257:25] Completable: Cpath Value[fff] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[fff] Path fff Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath string {"contents": {"kind": "markdown", "value": "```rescript\nstring\n```"}} @@ -240,9 +251,11 @@ posCursor:[260:33] posNoWhite:[260:32] Found expr:[260:31->260:40] Pexp_ident someField:[260:31->260:40] Completable: Cpath Value[someField] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someField] Path someField Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CPatternPath(Value[x])->recordField(someField) ContextPath Value[x] Path x diff --git a/analysis/tests/src/expected/Jsx2.res.txt b/analysis/tests/src/expected/Jsx2.res.txt index 5a2298ce5..73c611d0d 100644 --- a/analysis/tests/src/expected/Jsx2.res.txt +++ b/analysis/tests/src/expected/Jsx2.res.txt @@ -8,6 +8,7 @@ posCursor:[8:15] posNoWhite:[8:14] Found expr:[8:4->8:15] JSX 8:5] second[8:6->8:12]=...[8:13->8:15]> _children:None Completable: Cexpression CJsxPropValue [M] second=fi Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath CJsxPropValue [M] second Path M.make [] @@ -17,6 +18,7 @@ posCursor:[11:20] posNoWhite:[11:19] Found expr:[11:4->11:20] JSX 11:5] second[11:6->11:12]=...[11:13->11:18] f[11:19->11:20]=...[11:19->11:20]> _children:None Completable: Cjsx([M], f, [second, f]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "first", @@ -37,6 +39,7 @@ posCursor:[14:13] posNoWhite:[14:12] Found expr:[14:12->14:13] JSX 14:13] > _children:None Completable: Cpath Module[M] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[M] Path M [{ @@ -70,6 +73,7 @@ posCursor:[22:19] posNoWhite:[22:18] Found expr:[22:4->22:19] JSX 22:5] prop[22:6->22:10]=...[22:12->22:16] k[22:18->22:19]=...[22:18->22:19]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -84,6 +88,7 @@ posCursor:[25:17] posNoWhite:[25:16] Found expr:[25:4->25:17] JSX 25:5] prop[25:6->25:10]=...[25:11->25:15] k[25:16->25:17]=...[25:16->25:17]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -98,6 +103,7 @@ posCursor:[28:21] posNoWhite:[28:20] Found expr:[28:4->28:21] JSX 28:5] prop[28:6->28:10]=...[28:11->28:19] k[28:20->28:21]=...[28:20->28:21]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -112,6 +118,7 @@ posCursor:[31:24] posNoWhite:[31:23] Found expr:[31:4->31:24] JSX 31:5] prop[31:6->31:10]=...[31:11->31:22] k[31:23->31:24]=...[31:23->31:24]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -126,6 +133,7 @@ posCursor:[34:18] posNoWhite:[34:17] Found expr:[34:4->34:18] JSX 34:5] prop[34:6->34:10]=...[34:12->34:16] k[34:17->34:18]=...[34:17->34:18]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -140,6 +148,7 @@ posCursor:[37:16] posNoWhite:[37:15] Found expr:[37:4->37:16] JSX 37:5] prop[37:6->37:10]=...[37:11->37:14] k[37:15->37:16]=...[37:15->37:16]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -154,6 +163,7 @@ posCursor:[40:17] posNoWhite:[40:16] Found expr:[40:4->40:17] JSX 40:5] prop[40:6->40:10]=...[40:11->40:15] k[40:16->40:17]=...[40:16->40:17]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -168,6 +178,7 @@ posCursor:[43:18] posNoWhite:[43:17] Found expr:[43:4->43:18] JSX 43:5] prop[43:6->43:10]=...[43:11->43:16] k[43:17->43:18]=...[43:17->43:18]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -182,6 +193,7 @@ posCursor:[46:16] posNoWhite:[46:15] Found expr:[46:4->46:16] JSX 46:5] prop[46:6->46:10]=...[46:11->46:14] k[46:15->46:16]=...[46:15->46:16]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -196,6 +208,7 @@ posCursor:[49:27] posNoWhite:[49:26] Found expr:[49:4->49:27] JSX 49:5] prop[49:6->49:10]=...[49:11->49:25] k[49:26->49:27]=...[49:26->49:27]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -210,6 +223,7 @@ posCursor:[52:38] posNoWhite:[52:37] Found expr:[52:4->52:38] JSX 52:5] prop[52:6->52:10]=...[52:11->52:36] k[52:37->52:38]=...[52:37->52:38]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -224,6 +238,7 @@ posCursor:[55:25] posNoWhite:[55:24] Found expr:[55:4->55:25] JSX 55:5] prop[55:6->55:10]=...[55:11->55:23] k[55:24->55:25]=...[55:24->55:25]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -243,6 +258,7 @@ posCursor:[68:10] posNoWhite:[68:9] Found expr:[68:4->68:10] JSX 68:7] al[68:8->68:10]=...[68:8->68:10]> _children:None Completable: Cjsx([Ext], al, [al]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path Ext.make [{ "label": "align", @@ -257,6 +273,7 @@ posCursor:[71:11] posNoWhite:[71:10] Found expr:[71:4->71:11] JSX 71:5] first[71:6->71:11]=...[71:6->71:11]> _children:None Completable: Cjsx([M], first, [first]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [] @@ -265,6 +282,7 @@ posCursor:[74:16] posNoWhite:[74:15] Found expr:[74:4->74:16] JSX 74:5] first[74:6->74:11]=...[74:12->74:14] k[74:15->74:16]=...[74:15->74:16]> _children:None Completable: Cjsx([M], k, [first, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -279,6 +297,7 @@ posCursor:[77:23] posNoWhite:[77:22] Found expr:[77:4->77:23] JSX 77:5] first[77:6->77:11]=...[77:19->77:21] k[77:22->77:23]=...[77:22->77:23]> _children:None Completable: Cjsx([M], k, [first, k]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M.make [{ "label": "key", @@ -310,6 +329,7 @@ posCursor:[89:16] posNoWhite:[89:15] Found expr:[89:4->89:16] JSX 89:16] > _children:None Completable: Cpath Module[WithChildren] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[WithChildren] Path WithChildren [{ @@ -325,6 +345,7 @@ posCursor:[91:18] posNoWhite:[91:17] Found expr:[91:4->91:18] JSX 91:16] n[91:17->91:18]=...[91:17->91:18]> _children:None Completable: Cjsx([WithChildren], n, [n]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path WithChildren.make [{ "label": "name", @@ -340,6 +361,7 @@ posCursor:[94:18] posNoWhite:[94:17] Found type:[94:11->94:18] Ptyp_constr React.e:[94:11->94:18] Completable: Cpath Type[React, e] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[React, e] Path React.e [{ @@ -356,6 +378,7 @@ posCursor:[96:20] posNoWhite:[96:19] Found type:[96:11->99:6] Ptyp_constr ReactDOMR:[96:11->99:6] Completable: Cpath Type[ReactDOMR] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[ReactDOMR] Path ReactDOMR [{ @@ -373,6 +396,7 @@ posCursor:[102:21] posNoWhite:[102:20] Found expr:[102:17->102:21] Pexp_field [102:17->102:18] th:[102:19->102:21] Completable: Cpath Value[x].th Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[x].th ContextPath Value[x] Path x @@ -383,6 +407,7 @@ posCursor:[106:28] posNoWhite:[106:27] Found expr:[106:11->106:28] Pexp_ident DefineSomeFields.:[106:11->106:28] Completable: Cpath Value[DefineSomeFields, ""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[DefineSomeFields, ""] Path DefineSomeFields. [{ @@ -400,6 +425,7 @@ posCursor:[108:36] posNoWhite:[108:35] Found expr:[108:15->108:36] Pexp_field [108:15->108:16] DefineSomeFields.th:[108:17->108:36] Completable: Cpath Module[DefineSomeFields].th Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[DefineSomeFields].th Path DefineSomeFields.th [{ @@ -423,6 +449,7 @@ posCursor:[122:20] posNoWhite:[122:19] Found expr:[122:7->122:20] Pexp_ident Outer.Inner.h:[122:7->122:20] Completable: Cpath Value[Outer, Inner, h] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Outer, Inner, h] Path Outer.Inner.h [{ @@ -440,6 +467,7 @@ posCursor:[129:19] posNoWhite:[129:18] Found expr:[129:7->131:8] Pexp_ident Outer.Inner.:[129:7->131:8] Completable: Cpath Value[Outer, Inner, ""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Outer, Inner, ""] Path Outer.Inner. [{ @@ -460,6 +488,7 @@ posCursor:[150:21] posNoWhite:[150:20] Found expr:[150:12->150:32] JSX 150:21] name[150:22->150:26]=...[150:27->150:29]> _children:150:30 Completable: Cpath Module[Nested, Co] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[Nested, Co] Path Nested.Co [{ @@ -475,6 +504,7 @@ posCursor:[153:19] posNoWhite:[153:18] Found expr:[153:12->153:25] JSX 153:24] > _children:None Completable: Cpath Module[Nested, ""] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[Nested, ""] Path Nested. [{ @@ -494,6 +524,7 @@ posCursor:[162:12] posNoWhite:[162:11] Found expr:[162:6->162:20] JSX 162:10] age[162:11->162:14]=...[162:15->162:17]> _children:162:18 Completable: Cjsx([Comp], age, [age]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path Comp.make {"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}} @@ -509,6 +540,7 @@ posCursor:[167:16] posNoWhite:[167:15] Found expr:[167:10->167:24] JSX 167:14] age[167:15->167:18]=...[167:19->167:21]> _children:167:22 Completable: Cjsx([Comp], age, [age]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path Comp.make {"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}} diff --git a/analysis/tests/src/expected/Jsx2.resi.txt b/analysis/tests/src/expected/Jsx2.resi.txt index f0136e300..7b25e403d 100644 --- a/analysis/tests/src/expected/Jsx2.resi.txt +++ b/analysis/tests/src/expected/Jsx2.resi.txt @@ -11,6 +11,7 @@ posCursor:[7:19] posNoWhite:[7:18] Found type:[7:12->7:19] Ptyp_constr React.e:[7:12->7:19] Completable: Cpath Type[React, e] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[React, e] Path React.e [{ @@ -26,6 +27,7 @@ posCursor:[10:18] posNoWhite:[10:17] Found type:[10:11->10:18] Ptyp_constr React.e:[10:11->10:18] Completable: Cpath Type[React, e] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[React, e] Path React.e [{ diff --git a/analysis/tests/src/expected/JsxV4.res.txt b/analysis/tests/src/expected/JsxV4.res.txt index cf28e23f0..d865f4db8 100644 --- a/analysis/tests/src/expected/JsxV4.res.txt +++ b/analysis/tests/src/expected/JsxV4.res.txt @@ -6,6 +6,7 @@ posCursor:[11:20] posNoWhite:[11:19] Found expr:[11:4->11:20] JSX 11:6] first[11:7->11:12]=...[11:13->11:18] f[11:19->11:20]=...[11:19->11:20]> _children:None Completable: Cjsx([M4], f, [first, f]) Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res Path M4.make [{ "label": "fun", diff --git a/analysis/tests/src/expected/RecordCompletion.res.txt b/analysis/tests/src/expected/RecordCompletion.res.txt index e5432cde8..9df90caa6 100644 --- a/analysis/tests/src/expected/RecordCompletion.res.txt +++ b/analysis/tests/src/expected/RecordCompletion.res.txt @@ -2,6 +2,7 @@ Complete src/RecordCompletion.res 8:9 posCursor:[8:9] posNoWhite:[8:8] Found expr:[8:3->8:9] Completable: Cpath Value[t].n->m Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[t].n->m ContextPath Value[t].n ContextPath Value[t] @@ -26,6 +27,7 @@ Complete src/RecordCompletion.res 11:13 posCursor:[11:13] posNoWhite:[11:12] Found expr:[11:3->11:13] Completable: Cpath Value[t2].n2.n->m Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[t2].n2.n->m ContextPath Value[t2].n2.n ContextPath Value[t2].n2 @@ -52,6 +54,7 @@ posCursor:[19:7] posNoWhite:[19:6] Found expr:[19:3->19:7] Pexp_field [19:3->19:4] R.:[19:5->19:7] Completable: Cpath Module[R]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[R]."" Path R. [{ @@ -67,6 +70,7 @@ posCursor:[22:7] posNoWhite:[22:6] Found expr:[22:3->22:10] Pexp_field [22:3->22:4] R.xx:[22:5->22:10] Completable: Cpath Module[R]."" Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Module[R]."" Path R. [{ diff --git a/analysis/tests/src/expected/RecoveryOnProp.res.txt b/analysis/tests/src/expected/RecoveryOnProp.res.txt index 6ef989cf9..aa9f5f456 100644 --- a/analysis/tests/src/expected/RecoveryOnProp.res.txt +++ b/analysis/tests/src/expected/RecoveryOnProp.res.txt @@ -12,6 +12,7 @@ posCursor:[6:26] posNoWhite:[6:25] Found type:[6:23->8:5] Ptyp_constr Res:[6:23->8:5] Completable: Cpath Type[Res] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Type[Res] Path Res [{ diff --git a/analysis/tests/src/expected/SignatureHelp.res.txt b/analysis/tests/src/expected/SignatureHelp.res.txt index 396ab55b5..cb0ecf31c 100644 --- a/analysis/tests/src/expected/SignatureHelp.res.txt +++ b/analysis/tests/src/expected/SignatureHelp.res.txt @@ -5,6 +5,7 @@ posCursor:[16:19] posNoWhite:[16:18] Found expr:[16:11->16:19] Pexp_ident someFunc:[16:11->16:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someFunc] Path someFunc argAtCursor: unlabelled<0> @@ -28,6 +29,7 @@ posCursor:[19:19] posNoWhite:[19:18] Found expr:[19:11->19:19] Pexp_ident someFunc:[19:11->19:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someFunc] Path someFunc argAtCursor: unlabelled<0> @@ -51,6 +53,7 @@ posCursor:[22:19] posNoWhite:[22:18] Found expr:[22:11->22:19] Pexp_ident someFunc:[22:11->22:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someFunc] Path someFunc argAtCursor: ~two @@ -74,6 +77,7 @@ posCursor:[25:19] posNoWhite:[25:18] Found expr:[25:11->25:19] Pexp_ident someFunc:[25:11->25:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someFunc] Path someFunc argAtCursor: ~two @@ -97,6 +101,7 @@ posCursor:[28:19] posNoWhite:[28:18] Found expr:[28:11->28:19] Pexp_ident someFunc:[28:11->28:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someFunc] Path someFunc argAtCursor: ~four @@ -120,6 +125,7 @@ posCursor:[31:19] posNoWhite:[31:18] Found expr:[31:11->31:19] Pexp_ident someFunc:[31:11->31:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someFunc] Path someFunc argAtCursor: ~four @@ -143,6 +149,7 @@ posCursor:[34:20] posNoWhite:[34:19] Found expr:[34:11->34:20] Pexp_ident otherFunc:[34:11->34:20] Completable: Cpath Value[otherFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[otherFunc] Path otherFunc argAtCursor: unlabelled<0> @@ -164,6 +171,7 @@ posCursor:[37:20] posNoWhite:[37:19] Found expr:[37:11->37:20] Pexp_ident otherFunc:[37:11->37:20] Completable: Cpath Value[otherFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[otherFunc] Path otherFunc argAtCursor: unlabelled<0> @@ -185,6 +193,7 @@ posCursor:[40:20] posNoWhite:[40:19] Found expr:[40:11->40:20] Pexp_ident otherFunc:[40:11->40:20] Completable: Cpath Value[otherFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[otherFunc] Path otherFunc argAtCursor: unlabelled<2> @@ -206,6 +215,7 @@ posCursor:[43:29] posNoWhite:[43:28] Found expr:[43:11->43:29] Pexp_ident Completion.Lib.foo:[43:11->43:29] Completable: Cpath Value[Completion, Lib, foo] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[Completion, Lib, foo] Path Completion.Lib.foo argAtCursor: ~age @@ -227,6 +237,7 @@ posCursor:[50:23] posNoWhite:[50:22] Found expr:[50:11->50:23] Pexp_ident iAmSoSpecial:[50:11->50:23] Completable: Cpath Value[iAmSoSpecial] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[iAmSoSpecial] Path iAmSoSpecial argAtCursor: unlabelled<0> @@ -249,6 +260,7 @@ posCursor:[53:29] posNoWhite:[53:28] Found expr:[53:20->53:29] Pexp_ident otherFunc:[53:20->53:29] Completable: Cpath Value[otherFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[otherFunc] Path otherFunc argAtCursor: unlabelled<1> @@ -270,6 +282,7 @@ posCursor:[62:13] posNoWhite:[62:12] Found expr:[62:11->62:13] Pexp_ident fn:[62:11->62:13] Completable: Cpath Value[fn] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[fn] Path fn argAtCursor: unlabelled<1> @@ -291,6 +304,7 @@ posCursor:[65:13] posNoWhite:[65:12] Found expr:[65:11->65:13] Pexp_ident fn:[65:11->65:13] Completable: Cpath Value[fn] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[fn] Path fn argAtCursor: unlabelled<1> @@ -312,6 +326,7 @@ posCursor:[68:13] posNoWhite:[68:12] Found expr:[68:11->68:13] Pexp_ident fn:[68:11->68:13] Completable: Cpath Value[fn] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[fn] Path fn argAtCursor: unlabelled<2> @@ -335,6 +350,7 @@ posCursor:[71:28] posNoWhite:[71:27] Found expr:[71:16->71:28] Pexp_ident iAmSoSpecial:[71:16->71:28] Completable: Cpath Value[iAmSoSpecial] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[iAmSoSpecial] Path iAmSoSpecial argAtCursor: unlabelled<0> @@ -360,6 +376,7 @@ posCursor:[74:39] posNoWhite:[74:38] Found expr:[74:31->74:39] Pexp_ident someFunc:[74:31->74:39] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder +Resolved opens 1 pervasives.res ContextPath Value[someFunc] Path someFunc argAtCursor: unlabelled<0> From b54e0b40a8f3f633f3a46d45b1f15d361950155d Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Tue, 11 Apr 2023 14:35:13 +0200 Subject: [PATCH 2/2] No pervasives extension in debug. Not sure why it would be different on linux. As this is just debug, drop the extension. --- analysis/src/CompletionBackEnd.ml | 7 +- .../src/expected/BrokenParserCases.res.txt | 6 +- .../src/expected/CompletePrioritize1.res.txt | 2 +- .../src/expected/CompletePrioritize2.res.txt | 4 +- .../tests/src/expected/Completion.res.txt | 174 +++++++++--------- .../expected/CompletionExpressions.res.txt | 76 ++++---- .../CompletionFunctionArguments.res.txt | 32 ++-- .../expected/CompletionInferValues.res.txt | 62 +++---- .../tests/src/expected/CompletionJsx.res.txt | 20 +- .../src/expected/CompletionJsxProps.res.txt | 18 +- .../src/expected/CompletionPattern.res.txt | 94 +++++----- .../src/expected/CompletionPipeChain.res.txt | 32 ++-- .../expected/CompletionPipeSubmodules.res.txt | 8 +- .../expected/CompletionTypeAnnotation.res.txt | 30 +-- analysis/tests/src/expected/Cross.res.txt | 2 +- analysis/tests/src/expected/Debug.res.txt | 2 +- .../tests/src/expected/Destructuring.res.txt | 10 +- analysis/tests/src/expected/Div.res.txt | 2 +- .../src/expected/ExhaustiveSwitch.res.txt | 8 +- analysis/tests/src/expected/Hover.res.txt | 26 +-- analysis/tests/src/expected/Jsx2.res.txt | 64 +++---- analysis/tests/src/expected/Jsx2.resi.txt | 4 +- analysis/tests/src/expected/JsxV4.res.txt | 2 +- .../src/expected/RecordCompletion.res.txt | 8 +- .../tests/src/expected/RecoveryOnProp.res.txt | 2 +- .../tests/src/expected/SignatureHelp.res.txt | 34 ++-- 26 files changed, 367 insertions(+), 362 deletions(-) diff --git a/analysis/src/CompletionBackEnd.ml b/analysis/src/CompletionBackEnd.ml index b5fbfebef..08e8f8d45 100644 --- a/analysis/src/CompletionBackEnd.ml +++ b/analysis/src/CompletionBackEnd.ml @@ -1136,7 +1136,12 @@ let getOpens ~debug ~rawOpens ~package ~env = ^ " " ^ String.concat " " (resolvedOpens - |> List.map (fun (e : QueryEnv.t) -> Uri.toString e.file.uri))); + |> List.map (fun (e : QueryEnv.t) -> + let name = Uri.toString e.file.uri in + + if Utils.startsWith name "pervasives." then + Filename.chop_extension name + else name))); (* Last open takes priority *) List.rev resolvedOpens diff --git a/analysis/tests/src/expected/BrokenParserCases.res.txt b/analysis/tests/src/expected/BrokenParserCases.res.txt index 13751f983..8a4494a65 100644 --- a/analysis/tests/src/expected/BrokenParserCases.res.txt +++ b/analysis/tests/src/expected/BrokenParserCases.res.txt @@ -3,7 +3,7 @@ posCursor:[2:24] posNoWhite:[2:23] Found expr:[2:11->2:30] Pexp_apply ...[2:11->2:17] (~isOff2:19->2:24=...[2:27->2:29]) Completable: CnamedArg(Value[someFn], isOff, [isOff]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someFn] Path someFn [] @@ -12,7 +12,7 @@ Complete src/BrokenParserCases.res 6:17 posCursor:[6:17] posNoWhite:[6:16] Found pattern:[6:16->6:19] Completable: Cpattern Value[s]=t Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[s] Path s [] @@ -23,7 +23,7 @@ posCursor:[10:29] posNoWhite:[10:27] Found pattern:[10:24->10:28] Ppat_construct None:[10:24->10:28] Completable: Cpath Value[None] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[None] Path None [] diff --git a/analysis/tests/src/expected/CompletePrioritize1.res.txt b/analysis/tests/src/expected/CompletePrioritize1.res.txt index c8ca65779..b520a84a2 100644 --- a/analysis/tests/src/expected/CompletePrioritize1.res.txt +++ b/analysis/tests/src/expected/CompletePrioritize1.res.txt @@ -2,7 +2,7 @@ Complete src/CompletePrioritize1.res 5:6 posCursor:[5:6] posNoWhite:[5:5] Found expr:[5:3->0:-1] Completable: Cpath Value[a]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[a]-> ContextPath Value[a] Path a diff --git a/analysis/tests/src/expected/CompletePrioritize2.res.txt b/analysis/tests/src/expected/CompletePrioritize2.res.txt index ba268ddc9..a1ecd61c8 100644 --- a/analysis/tests/src/expected/CompletePrioritize2.res.txt +++ b/analysis/tests/src/expected/CompletePrioritize2.res.txt @@ -2,7 +2,7 @@ Complete src/CompletePrioritize2.res 9:7 posCursor:[9:7] posNoWhite:[9:6] Found expr:[9:3->0:-1] Completable: Cpath Value[ax]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[ax]-> ContextPath Value[ax] Path ax @@ -23,7 +23,7 @@ posCursor:[12:5] posNoWhite:[12:4] Found expr:[12:3->12:5] Pexp_ident ax:[12:3->12:5] Completable: Cpath Value[ax] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[ax] Path ax [{ diff --git a/analysis/tests/src/expected/Completion.res.txt b/analysis/tests/src/expected/Completion.res.txt index fbf701c70..8e18ae4cc 100644 --- a/analysis/tests/src/expected/Completion.res.txt +++ b/analysis/tests/src/expected/Completion.res.txt @@ -3,7 +3,7 @@ posCursor:[1:11] posNoWhite:[1:10] Found expr:[1:3->1:11] Pexp_ident MyList.m:[1:3->1:11] Completable: Cpath Value[MyList, m] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[MyList, m] Path MyList.m [{ @@ -79,7 +79,7 @@ posCursor:[3:9] posNoWhite:[3:8] Found expr:[3:3->3:9] Pexp_ident Array.:[3:3->3:9] Completable: Cpath Value[Array, ""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Array, ""] Path Array. [{ @@ -305,7 +305,7 @@ posCursor:[5:10] posNoWhite:[5:9] Found expr:[5:3->5:10] Pexp_ident Array.m:[5:3->5:10] Completable: Cpath Value[Array, m] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Array, m] Path Array.m [{ @@ -363,7 +363,7 @@ posCursor:[15:17] posNoWhite:[15:16] Found expr:[15:12->15:17] Pexp_ident Dep.c:[15:12->15:17] Completable: Cpath Value[Dep, c] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Dep, c] Path Dep.c [{ @@ -379,7 +379,7 @@ posCursor:[23:20] posNoWhite:[23:19] Found expr:[23:11->23:20] Pexp_apply ...[23:11->23:18] () Completable: CnamedArg(Value[Lib, foo], "", []) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -401,7 +401,7 @@ Complete src/Completion.res 26:13 posCursor:[26:13] posNoWhite:[26:12] Found expr:[26:3->26:13] Completable: Cpath array->m Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath array->m ContextPath array CPPipe env:Completion @@ -424,7 +424,7 @@ Complete src/Completion.res 29:13 posCursor:[29:13] posNoWhite:[29:12] Found expr:[29:3->29:13] Completable: Cpath string->toU Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath string->toU ContextPath string CPPipe env:Completion @@ -441,7 +441,7 @@ Complete src/Completion.res 34:8 posCursor:[34:8] posNoWhite:[34:7] Found expr:[34:3->34:8] Completable: Cpath Value[op]->e Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[op]->e ContextPath Value[op] Path op @@ -467,7 +467,7 @@ Pexp_apply ...[50:9->50:10] (...[44:3->50:8], ...[51:2->54:3]) posCursor:[44:7] posNoWhite:[44:6] Found expr:[44:3->50:8] Completable: Cpath Value[fa]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[fa]-> ContextPath Value[fa] Path fa @@ -495,7 +495,7 @@ posCursor:[47:21] posNoWhite:[47:20] Found expr:[47:12->47:21] Pexp_ident Js.Dict.u:[47:12->47:21] Completable: Cpath Value[Js, Dict, u] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Js, Dict, u] Path Js.Dict.u [{ @@ -517,7 +517,7 @@ posCursor:[59:30] posNoWhite:[59:29] Found expr:[59:15->59:30] JSX 59:21] second[59:22->59:28]=...[59:29->59:30]> _children:None Completable: Cexpression CJsxPropValue [O, Comp] second=z Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [O, Comp] second Path O.Comp.make [{ @@ -533,7 +533,7 @@ posCursor:[62:23] posNoWhite:[62:22] Found expr:[62:15->62:23] JSX 62:21] z[62:22->62:23]=...[62:22->62:23]> _children:None Completable: Cjsx([O, Comp], z, [z]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path O.Comp.make [{ "label": "zoo", @@ -547,7 +547,7 @@ Complete src/Completion.res 65:8 Attribute id:reac:[65:3->65:8] label:reac Completable: Cdecorator(reac) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives [{ "label": "react.component", "kind": 4, @@ -562,7 +562,7 @@ Pexp_apply ...[80:6->80:7] (...[80:8->86:1]) Attribute id:react.let:[68:3->80:3] label:react. Completable: Cdecorator(react.) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives [{ "label": "component", "kind": 4, @@ -576,7 +576,7 @@ posCursor:[71:27] posNoWhite:[71:26] Found expr:[71:11->71:27] Pexp_apply ...[71:11->71:18] (~name71:20->71:24=...[71:20->71:24]) Completable: CnamedArg(Value[Lib, foo], "", [name]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -593,7 +593,7 @@ posCursor:[74:26] posNoWhite:[74:25] Found expr:[74:11->74:26] Pexp_apply ...[74:11->74:18] (~age74:20->74:23=...[74:20->74:23]) Completable: CnamedArg(Value[Lib, foo], "", [age]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -610,7 +610,7 @@ posCursor:[77:32] posNoWhite:[77:31] Found expr:[77:11->77:32] Pexp_apply ...[77:11->77:18] (~age77:20->77:23=...[77:25->77:28]) Completable: CnamedArg(Value[Lib, foo], "", [age]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -627,7 +627,7 @@ posCursor:[82:5] posNoWhite:[82:4] Found expr:[80:8->86:1] Pexp_apply ...[80:8->80:15] (~age84:3->84:6=...[84:7->84:8], ~name85:3->85:7=...[85:8->85:10]) Completable: CnamedArg(Value[Lib, foo], "", [age, name]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Lib, foo] Path Lib.foo Found type for function (~age: int, ~name: string) => string @@ -638,7 +638,7 @@ posCursor:[90:13] posNoWhite:[90:12] Found expr:[90:3->93:18] Pexp_send a[90:12->90:13] e:[90:3->90:10] Completable: Cpath Value[someObj]["a"] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someObj]["a"] ContextPath Value[someObj] Path someObj @@ -655,7 +655,7 @@ posCursor:[95:24] posNoWhite:[95:23] Found expr:[95:3->99:6] Pexp_send [95:24->95:24] e:[95:3->95:22] Completable: Cpath Value[nestedObj]["x"]["y"][""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[nestedObj]["x"]["y"][""] ContextPath Value[nestedObj]["x"]["y"] ContextPath Value[nestedObj]["x"] @@ -680,7 +680,7 @@ posCursor:[99:7] posNoWhite:[99:6] Found expr:[99:3->102:20] Pexp_send a[99:6->99:7] e:[99:3->99:4] Completable: Cpath Value[o]["a"] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[o]["a"] ContextPath Value[o] Path o @@ -697,7 +697,7 @@ posCursor:[104:17] posNoWhite:[104:16] Found expr:[104:3->125:19] Pexp_send [104:17->104:17] e:[104:3->104:15] Completable: Cpath Value[no]["x"]["y"][""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[no]["x"]["y"][""] ContextPath Value[no]["x"]["y"] ContextPath Value[no]["x"] @@ -722,7 +722,7 @@ posCursor:[110:5] posNoWhite:[110:4] Found expr:[110:3->110:5] Pexp_field [110:3->110:4] _:[116:0->110:5] Completable: Cpath Value[r]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[r]."" ContextPath Value[r] Path r @@ -745,7 +745,7 @@ posCursor:[113:25] posNoWhite:[113:24] Found expr:[113:3->113:25] Pexp_field [113:3->113:24] _:[116:0->113:25] Completable: Cpath Value[Objects, Rec, recordVal]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Objects, Rec, recordVal]."" ContextPath Value[Objects, Rec, recordVal] Path Objects.Rec.recordVal @@ -770,7 +770,7 @@ posCursor:[120:7] posNoWhite:[120:6] Found expr:[120:5->120:7] Pexp_ident my:[120:5->120:7] Completable: Cpath Value[my] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[my] Path my [{ @@ -786,7 +786,7 @@ posCursor:[125:19] posNoWhite:[125:18] Found expr:[125:3->145:32] Pexp_send [125:19->125:19] e:[125:3->125:17] Completable: Cpath Value[Objects, object][""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Objects, object][""] ContextPath Value[Objects, object] Path Objects.object @@ -809,7 +809,7 @@ posCursor:[151:6] posNoWhite:[151:5] Found expr:[151:4->151:6] JSX 151:6] > _children:None Completable: Cpath Module[O, ""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[O, ""] Path O. [{ @@ -825,7 +825,7 @@ posCursor:[157:8] posNoWhite:[157:7] Found expr:[157:3->157:8] Pexp_field [157:3->157:7] _:[165:0->157:8] Completable: Cpath Value[q].aa."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[q].aa."" ContextPath Value[q].aa ContextPath Value[q] @@ -849,7 +849,7 @@ posCursor:[159:9] posNoWhite:[159:8] Found expr:[159:3->159:9] Pexp_field [159:3->159:7] n:[159:8->159:9] Completable: Cpath Value[q].aa.n Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[q].aa.n ContextPath Value[q].aa ContextPath Value[q] @@ -867,7 +867,7 @@ posCursor:[162:6] posNoWhite:[162:5] Found expr:[162:3->162:6] Pexp_construct Lis:[162:3->162:6] None Completable: Cpath Value[Lis] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Lis] Path Lis [{ @@ -889,7 +889,7 @@ posCursor:[169:16] posNoWhite:[169:15] Found expr:[169:4->169:16] JSX 169:16] > _children:None Completable: Cpath Module[WithChildren] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[WithChildren] Path WithChildren [{ @@ -905,7 +905,7 @@ posCursor:[172:16] posNoWhite:[172:15] Found type:[172:12->172:16] Ptyp_constr Js.n:[172:12->172:16] Completable: Cpath Type[Js, n] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[Js, n] Path Js.n [{ @@ -933,7 +933,7 @@ posCursor:[174:20] posNoWhite:[174:19] Found type:[174:12->174:20] Ptyp_constr ForAuto.:[174:12->174:20] Completable: Cpath Type[ForAuto, ""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[ForAuto, ""] Path ForAuto. [{ @@ -949,7 +949,7 @@ posCursor:[179:13] posNoWhite:[179:12] Found expr:[179:11->179:13] Pexp_construct As:[179:11->179:13] None Completable: Cpath Value[As] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[As] Path As [{ @@ -964,7 +964,7 @@ Complete src/Completion.res 182:17 Pmod_ident For:[182:14->182:17] Completable: Cpath Module[For] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[For] Path For [{ @@ -980,7 +980,7 @@ posCursor:[190:11] posNoWhite:[190:10] Found expr:[190:3->190:11] Pexp_ident Private.:[190:3->190:11] Completable: Cpath Value[Private, ""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Private, ""] Path Private. [{ @@ -996,7 +996,7 @@ posCursor:[202:6] posNoWhite:[202:5] Found expr:[202:3->202:6] Pexp_ident sha:[202:3->202:6] Completable: Cpath Value[sha] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[sha] Path sha [] @@ -1007,7 +1007,7 @@ Pexp_ident sha:[205:3->205:6] Completable: Cpath Value[sha] Raw opens: 1 Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 Completion.res pervasives.res +Resolved opens 2 Completion.res pervasives ContextPath Value[sha] Path sha [{ @@ -1024,7 +1024,7 @@ Pexp_ident sha:[208:3->208:6] Completable: Cpath Value[sha] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[sha] Path sha [{ @@ -1041,7 +1041,7 @@ Pexp_send [221:22->221:22] e:[221:3->221:20] Completable: Cpath Value[FAO, forAutoObject][""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[FAO, forAutoObject][""] ContextPath Value[FAO, forAutoObject] Path FAO.forAutoObject @@ -1065,7 +1065,7 @@ Pexp_field [224:3->224:36] _:[233:0->224:37] Completable: Cpath Value[FAO, forAutoObject]["forAutoLabel"]."" Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[FAO, forAutoObject]["forAutoLabel"]."" ContextPath Value[FAO, forAutoObject]["forAutoLabel"] ContextPath Value[FAO, forAutoObject] @@ -1089,7 +1089,7 @@ posCursor:[227:46] posNoWhite:[227:45] Found expr:[227:3->0:-1] Completable: Cpath Value[FAO, forAutoObject]["forAutoLabel"].forAuto-> Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[FAO, forAutoObject]["forAutoLabel"].forAuto-> ContextPath Value[FAO, forAutoObject]["forAutoLabel"].forAuto ContextPath Value[FAO, forAutoObject]["forAutoLabel"] @@ -1120,7 +1120,7 @@ Pexp_ident ForAuto.a:[230:46->230:55] Completable: Cpath Value[ForAuto, a] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ForAuto, a] Path ForAuto.a [{ @@ -1147,7 +1147,7 @@ Pexp_ident na:[234:32->234:34] Completable: Cpath Value[na] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[na] Path na [{ @@ -1163,7 +1163,7 @@ posCursor:[237:17] posNoWhite:[237:14] Found expr:[237:14->237:22] Completable: Cnone Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives [] Complete src/Completion.res 243:8 @@ -1174,7 +1174,7 @@ Pexp_field [243:5->243:7] _:[245:0->243:8] Completable: Cpath Value[_z]."" Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[_z]."" ContextPath Value[_z] Path _z @@ -1198,7 +1198,7 @@ Pexp_construct SomeLo:[254:11->254:17] None Completable: Cpath Value[SomeLo] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[SomeLo] Path SomeLo [{ @@ -1215,7 +1215,7 @@ Ptyp_constr SomeLocalModule.:[256:13->256:29] Completable: Cpath Type[SomeLocalModule, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Type[SomeLocalModule, ""] Path SomeLocalModule. [{ @@ -1232,7 +1232,7 @@ Ptyp_constr SomeLocalModule.:[261:17->263:11] Completable: Cpath Type[SomeLocalModule, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Type[SomeLocalModule, ""] Path SomeLocalModule. [{ @@ -1248,7 +1248,7 @@ Ptype_variant unary SomeLocal:[268:12->268:21] Completable: Cpath Value[SomeLocal] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[SomeLocal] Path SomeLocal [{ @@ -1272,7 +1272,7 @@ Ptyp_constr SomeLocal:[271:11->274:3] Completable: Cpath Type[SomeLocal] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Type[SomeLocal] Path SomeLocal [{ @@ -1291,7 +1291,7 @@ Pexp_ident _w:[275:13->275:15] Completable: Cpath Value[_w] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[_w] Path _w [{ @@ -1308,7 +1308,7 @@ Ptyp_constr s:[281:21->281:22] Completable: Cpath Type[s] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Type[s] Path s [{ @@ -1331,7 +1331,7 @@ Pexp_apply ...[291:11->291:28] () Completable: CnamedArg(Value[funRecord].someFun, "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[funRecord].someFun ContextPath Value[funRecord] Path funRecord @@ -1350,7 +1350,7 @@ Pexp_field [296:3->296:10] _:[299:0->296:11] Completable: Cpath Value[retAA](Nolabel)."" Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[retAA](Nolabel)."" ContextPath Value[retAA](Nolabel) ContextPath Value[retAA] @@ -1375,7 +1375,7 @@ Pexp_apply ...[301:3->301:11] () Completable: CnamedArg(Value[ff](~c), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ff](~c) ContextPath Value[ff] Path ff @@ -1419,7 +1419,7 @@ Pexp_apply ...[304:3->304:13] () Completable: CnamedArg(Value[ff](~c)(Nolabel), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ff](~c)(Nolabel) ContextPath Value[ff](~c) ContextPath Value[ff] @@ -1451,7 +1451,7 @@ Pexp_apply ...[307:3->307:15] () Completable: CnamedArg(Value[ff](~c, Nolabel), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ff](~c, Nolabel) ContextPath Value[ff] Path ff @@ -1482,7 +1482,7 @@ Pexp_apply ...[310:3->310:19] () Completable: CnamedArg(Value[ff](~c, Nolabel, Nolabel), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ff](~c, Nolabel, Nolabel) ContextPath Value[ff] Path ff @@ -1507,7 +1507,7 @@ Pexp_apply ...[313:3->313:21] () Completable: CnamedArg(Value[ff](~c, Nolabel, ~b), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ff](~c, Nolabel, ~b) ContextPath Value[ff] Path ff @@ -1532,7 +1532,7 @@ Pexp_apply ...[316:3->316:14] () Completable: CnamedArg(Value[ff](~opt2), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ff](~opt2) ContextPath Value[ff] Path ff @@ -1569,7 +1569,7 @@ Pexp_apply ...[323:3->323:15] () Completable: CnamedArg(Value[withCallback], "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[withCallback] Path withCallback Found type for function (~b: int) => callback @@ -1593,7 +1593,7 @@ Pexp_apply ...[326:3->326:19] () Completable: CnamedArg(Value[withCallback](~a), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[withCallback](~a) ContextPath Value[withCallback] Path withCallback @@ -1612,7 +1612,7 @@ Pexp_apply ...[329:3->329:19] () Completable: CnamedArg(Value[withCallback](~b), "", []) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[withCallback](~b) ContextPath Value[withCallback] Path withCallback @@ -1641,7 +1641,7 @@ Ptyp_constr Res:[336:23->338:5] Completable: Cpath Type[Res] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Type[Res] Path Res [{ @@ -1665,7 +1665,7 @@ Pexp_ident this:[343:53->343:57] Completable: Cpath Value[this] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[this] Path this [{ @@ -1683,7 +1683,7 @@ JSX 346:12] name[346:13->346:17]=...[346:18->346:20]> _children:346 Completable: Cjsx([div], name, [name]) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives {"contents": {"kind": "markdown", "value": "```rescript\nstring\n```"}} Hover src/Completion.res 349:17 @@ -1695,12 +1695,12 @@ Pexp_ident FAO.forAutoObject:[349:11->349:28] Completable: Cpath Value[FAO, forAutoObject] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[FAO, forAutoObject] Path FAO.forAutoObject Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives {"contents": {"kind": "markdown", "value": "```rescript\n{\"age\": int, \"forAutoLabel\": FAR.forAutoRecord}\n```"}} Hover src/Completion.res 352:17 @@ -1710,7 +1710,7 @@ Pexp_apply ...[352:11->352:13] (~opt1352:15->352:19=...[352:20->352:21]) Completable: CnamedArg(Value[ff], opt1, [opt1]) Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ff] Path ff Found type for function ( @@ -1737,13 +1737,13 @@ Ppat_construct T:[362:7->362:8] Completable: Cpattern Value[x]=T Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[x] Path x Completable: Cpath Value[T] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[T] Path T [{ @@ -1780,7 +1780,7 @@ Ppat_construct AndThatOther.T:[373:7->373:21] Completable: Cpath Value[AndThatOther, T] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[AndThatOther, T] Path AndThatOther.T [{ @@ -1801,7 +1801,7 @@ Pexp_ident ForAuto.:[378:16->378:24] Completable: Cpath Value[ForAuto, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ForAuto, ""] Path ForAuto. [{ @@ -1828,7 +1828,7 @@ Pexp_send [381:38->381:38] e:[381:19->381:36] Completable: Cpath Value[FAO, forAutoObject][""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[FAO, forAutoObject][""] ContextPath Value[FAO, forAutoObject] Path FAO.forAutoObject @@ -1856,7 +1856,7 @@ Pexp_field [384:14->384:23] _:[384:24->384:24] Completable: Cpath Value[funRecord]."" Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[funRecord]."" ContextPath Value[funRecord] Path funRecord @@ -1882,7 +1882,7 @@ posCursor:[389:12] posNoWhite:[389:11] Found expr:[389:6->389:12] Completable: Cpath array->ma Raw opens: 3 Js.place holder ... Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 4 Completion.res Completion.res js.ml pervasives.res +Resolved opens 4 Completion.res Completion.res js.ml pervasives ContextPath array->ma ContextPath array CPPipe env:Completion @@ -1911,7 +1911,7 @@ Pexp_ident red:[397:13->397:16] Completable: Cpath Value[red] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[red] Path red [{ @@ -1932,7 +1932,7 @@ Pexp_ident red:[402:24->402:27] Completable: Cpath Value[red] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[red] Path red [{ @@ -1954,7 +1954,7 @@ Pexp_ident r:[405:21->405:22] Completable: Cpath Value[r] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[r] Path r [{ @@ -1986,7 +1986,7 @@ Pexp_ident SomeLocalModule.:[409:5->411:5] Completable: Cpath Value[SomeLocalModule, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[SomeLocalModule, ""] Path SomeLocalModule. [{ @@ -2013,7 +2013,7 @@ Pexp_ident SomeLocalModule.:[412:5->414:8] Completable: Cpath Value[SomeLocalModule, ""] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[SomeLocalModule, ""] Path SomeLocalModule. [{ @@ -2035,7 +2035,7 @@ posCursor:[417:17] posNoWhite:[417:16] Found expr:[417:11->417:17] Completable: Cpath int->t Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath int->t ContextPath int CPPipe env:Completion @@ -2059,7 +2059,7 @@ posCursor:[420:19] posNoWhite:[420:18] Found expr:[420:11->420:19] Completable: Cpath float->t Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath float->t ContextPath float CPPipe env:Completion @@ -2083,7 +2083,7 @@ posCursor:[425:8] posNoWhite:[425:7] Found expr:[425:3->425:8] Completable: Cpath Value[ok]->g Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[ok]->g ContextPath Value[ok] Path ok @@ -2109,7 +2109,7 @@ Pexp_field [443:3->443:12] so:[443:13->443:15] Completable: Cpath Value[rWithDepr].so Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Value[rWithDepr].so ContextPath Value[rWithDepr] Path rWithDepr @@ -2132,7 +2132,7 @@ XXX Not found! Completable: Cexpression Type[someVariantWithDeprecated] Raw opens: 2 Shadow.B.place holder ... Shadow.A.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 3 Completion.res Completion.res pervasives.res +Resolved opens 3 Completion.res Completion.res pervasives ContextPath Type[someVariantWithDeprecated] Path someVariantWithDeprecated [{ diff --git a/analysis/tests/src/expected/CompletionExpressions.res.txt b/analysis/tests/src/expected/CompletionExpressions.res.txt index c798b460b..cb80dfcb7 100644 --- a/analysis/tests/src/expected/CompletionExpressions.res.txt +++ b/analysis/tests/src/expected/CompletionExpressions.res.txt @@ -2,7 +2,7 @@ Complete src/CompletionExpressions.res 3:20 XXX Not found! Completable: Cpattern CTuple(Value[s], Value[f]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CTuple(Value[s], Value[f]) ContextPath Value[s] Path s @@ -23,7 +23,7 @@ posCursor:[26:27] posNoWhite:[26:26] Found expr:[26:11->26:29] Pexp_apply ...[26:11->26:25] (...[26:26->26:28]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -70,7 +70,7 @@ posCursor:[29:28] posNoWhite:[29:27] Found expr:[29:11->29:30] Pexp_apply ...[29:11->29:25] (...[29:27->29:28]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)=n->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -87,7 +87,7 @@ posCursor:[32:35] posNoWhite:[32:34] Found expr:[32:11->32:38] Pexp_apply ...[32:11->32:25] (...[32:26->32:38]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(offline) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -110,7 +110,7 @@ posCursor:[35:36] posNoWhite:[35:35] Found expr:[35:11->35:39] Pexp_apply ...[35:11->35:25] (...[35:26->35:38]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -151,7 +151,7 @@ posCursor:[38:37] posNoWhite:[38:35] Found expr:[38:11->38:53] Pexp_apply ...[38:11->38:25] (...[38:26->38:52]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -186,7 +186,7 @@ posCursor:[41:44] posNoWhite:[41:43] Found expr:[41:11->41:47] Pexp_apply ...[41:11->41:25] (...[41:26->41:47]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(nested) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -219,7 +219,7 @@ posCursor:[44:46] posNoWhite:[44:45] Found expr:[44:11->44:49] Pexp_apply ...[44:11->44:25] (...[44:26->44:48]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(nested), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -230,7 +230,7 @@ posCursor:[47:51] posNoWhite:[47:50] Found expr:[47:11->47:55] Pexp_apply ...[47:11->47:25] (...[47:26->47:54]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(nested), variantPayload::Some($0), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -253,7 +253,7 @@ posCursor:[50:45] posNoWhite:[50:44] Found expr:[50:11->50:48] Pexp_apply ...[50:11->50:25] (...[50:26->50:48]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(variant) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -288,7 +288,7 @@ posCursor:[53:47] posNoWhite:[53:46] Found expr:[53:11->53:50] Pexp_apply ...[53:11->53:25] (...[53:26->53:49]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)=O->recordField(variant) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -320,7 +320,7 @@ posCursor:[56:57] posNoWhite:[56:56] Found expr:[56:11->56:61] Pexp_apply ...[56:11->56:25] (...[56:26->56:60]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(polyvariant), polyvariantPayload::three($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -340,7 +340,7 @@ posCursor:[59:60] posNoWhite:[59:59] Found expr:[59:11->59:65] Pexp_apply ...[59:11->59:25] (...[59:26->59:64]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordField(polyvariant), polyvariantPayload::three($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -363,7 +363,7 @@ posCursor:[62:62] posNoWhite:[62:61] Found expr:[62:11->62:66] Pexp_apply ...[62:11->62:25] (...[62:26->62:65]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)=t->recordField(polyvariant), polyvariantPayload::three($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -380,7 +380,7 @@ posCursor:[69:25] posNoWhite:[69:24] Found expr:[69:11->69:26] Pexp_apply ...[69:11->69:24] (...[69:25->69:26]) Completable: Cexpression CArgument Value[fnTakingArray]($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -400,7 +400,7 @@ posCursor:[72:26] posNoWhite:[72:25] Found expr:[72:11->72:28] Pexp_apply ...[72:11->72:24] (...[72:25->72:27]) Completable: Cexpression CArgument Value[fnTakingArray]($0)->array Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -437,7 +437,7 @@ posCursor:[75:26] posNoWhite:[75:25] Found expr:[75:11->75:27] Pexp_apply ...[75:11->75:24] (...[75:25->75:26]) Completable: Cexpression CArgument Value[fnTakingArray]($0)=s Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -454,7 +454,7 @@ posCursor:[78:31] posNoWhite:[78:30] Found expr:[78:11->78:34] Pexp_apply ...[78:11->78:24] (...[78:25->78:33]) Completable: Cexpression CArgument Value[fnTakingArray]($0)->array, variantPayload::Some($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -477,7 +477,7 @@ posCursor:[81:31] posNoWhite:[81:30] Found expr:[81:11->81:34] Pexp_apply ...[81:11->81:24] (...[81:25->81:33]) Completable: Cexpression CArgument Value[fnTakingArray]($0)->array Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -514,7 +514,7 @@ posCursor:[84:31] posNoWhite:[84:30] Found expr:[84:11->84:40] Pexp_apply ...[84:11->84:24] (...[84:25->84:39]) Completable: Cexpression CArgument Value[fnTakingArray]($0)->array Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingArray]($0) ContextPath Value[fnTakingArray] Path fnTakingArray @@ -551,7 +551,7 @@ posCursor:[89:38] posNoWhite:[89:37] Found expr:[89:11->89:41] Pexp_apply ...[89:11->89:25] (...[89:26->89:40]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)=so Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -568,7 +568,7 @@ posCursor:[96:43] posNoWhite:[96:42] Found expr:[96:11->96:46] Pexp_apply ...[96:11->96:30] (...[96:31->96:46]) Completable: Cexpression CArgument Value[fnTakingOtherRecord]($0)->recordField(otherField) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingOtherRecord]($0) ContextPath Value[fnTakingOtherRecord] Path fnTakingOtherRecord @@ -588,7 +588,7 @@ posCursor:[108:57] posNoWhite:[108:56] Found expr:[108:11->108:60] Pexp_apply ...[108:11->108:42] (...[108:43->108:60]) Completable: Cexpression CArgument Value[fnTakingRecordWithOptionalField]($0)->recordField(someOptField) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecordWithOptionalField]($0) ContextPath Value[fnTakingRecordWithOptionalField] Path fnTakingRecordWithOptionalField @@ -611,7 +611,7 @@ posCursor:[116:53] posNoWhite:[116:52] Found expr:[116:11->116:56] Pexp_apply ...[116:11->116:39] (...[116:40->116:56]) Completable: Cexpression CArgument Value[fnTakingRecordWithOptVariant]($0)->recordField(someVariant) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecordWithOptVariant]($0) ContextPath Value[fnTakingRecordWithOptVariant] Path fnTakingRecordWithOptVariant @@ -660,7 +660,7 @@ posCursor:[126:49] posNoWhite:[126:48] Found expr:[126:11->126:51] Pexp_apply ...[126:11->126:31] (...[126:32->126:50]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)->variantPayload::WithInlineRecord($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -680,7 +680,7 @@ posCursor:[129:50] posNoWhite:[129:49] Found expr:[129:11->129:53] Pexp_apply ...[129:11->129:31] (...[129:32->129:52]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)->variantPayload::WithInlineRecord($0), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -709,7 +709,7 @@ posCursor:[132:51] posNoWhite:[132:50] Found expr:[132:11->132:54] Pexp_apply ...[132:11->132:31] (...[132:32->132:53]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)=s->variantPayload::WithInlineRecord($0), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -726,7 +726,7 @@ posCursor:[135:63] posNoWhite:[135:62] Found expr:[135:11->135:67] Pexp_apply ...[135:11->135:31] (...[135:32->135:66]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)->variantPayload::WithInlineRecord($0), recordField(nestedRecord) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -746,7 +746,7 @@ posCursor:[138:65] posNoWhite:[138:64] Found expr:[138:11->138:70] Pexp_apply ...[138:11->138:31] (...[138:32->138:69]) Completable: Cexpression CArgument Value[fnTakingInlineRecord]($0)->variantPayload::WithInlineRecord($0), recordField(nestedRecord), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingInlineRecord]($0) ContextPath Value[fnTakingInlineRecord] Path fnTakingInlineRecord @@ -769,7 +769,7 @@ posCursor:[159:20] posNoWhite:[159:19] Found expr:[159:3->159:21] Pexp_apply ...[159:3->159:19] (...[159:20->159:21]) Completable: Cexpression CArgument Value[fnTakingCallback]($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingCallback]($0) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -789,7 +789,7 @@ posCursor:[162:21] posNoWhite:[162:20] Found expr:[162:3->162:22] Pexp_apply ...[162:3->162:19] (...[162:20->162:21]) Completable: Cexpression CArgument Value[fnTakingCallback]($0)=a Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingCallback]($0) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -800,7 +800,7 @@ posCursor:[165:22] posNoWhite:[165:21] Found expr:[165:3->165:24] Pexp_apply ...[165:3->165:19] (...[165:20->165:21]) Completable: Cexpression CArgument Value[fnTakingCallback]($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingCallback]($1) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -820,7 +820,7 @@ posCursor:[168:25] posNoWhite:[168:24] Found expr:[168:3->168:27] Pexp_apply ...[168:3->168:19] (...[168:20->168:21], ...[168:23->168:24]) Completable: Cexpression CArgument Value[fnTakingCallback]($2) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingCallback]($2) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -840,7 +840,7 @@ posCursor:[171:29] posNoWhite:[171:27] Found expr:[171:3->171:30] Pexp_apply ...[171:3->171:19] (...[171:20->171:21], ...[171:23->171:24], ...[171:26->171:27]) Completable: Cexpression CArgument Value[fnTakingCallback]($3) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingCallback]($3) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -860,7 +860,7 @@ posCursor:[174:32] posNoWhite:[174:30] Found expr:[174:3->174:33] Pexp_apply ...[174:3->174:19] (...[174:20->174:21], ...[174:23->174:24], ...[174:26->174:27], ...[174:29->174:30]) Completable: Cexpression CArgument Value[fnTakingCallback]($4) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingCallback]($4) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -880,7 +880,7 @@ posCursor:[177:34] posNoWhite:[177:33] Found expr:[177:3->177:36] Pexp_apply ...[177:3->177:19] (...[177:20->177:21], ...[177:23->177:24], ...[177:26->177:27], ...[177:29->177:30], ...[177:32->177:33]) Completable: Cexpression CArgument Value[fnTakingCallback]($5) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingCallback]($5) ContextPath Value[fnTakingCallback] Path fnTakingCallback @@ -904,7 +904,7 @@ posCursor:[185:10] posNoWhite:[185:9] Found expr:[185:2->185:11] Pexp_apply ...[185:2->185:8] (...[185:9->185:10]) Completable: Cexpression CArgument Value[Js, log]($0)=s Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[Js, log]($0) ContextPath Value[Js, log] Path Js.log @@ -939,7 +939,7 @@ posCursor:[196:14] posNoWhite:[196:13] Found expr:[196:3->196:14] Pexp_field [196:3->196:6] someOpt:[196:7->196:14] Completable: Cpath Value[fff].someOpt Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[fff].someOpt ContextPath Value[fff] Path fff diff --git a/analysis/tests/src/expected/CompletionFunctionArguments.res.txt b/analysis/tests/src/expected/CompletionFunctionArguments.res.txt index 38ce34ee2..d15f00087 100644 --- a/analysis/tests/src/expected/CompletionFunctionArguments.res.txt +++ b/analysis/tests/src/expected/CompletionFunctionArguments.res.txt @@ -3,7 +3,7 @@ posCursor:[10:24] posNoWhite:[10:23] Found expr:[10:11->10:25] Pexp_apply ...[10:11->10:17] (~isOn10:19->10:23=...__ghost__[0:-1->0:-1]) Completable: Cexpression CArgument Value[someFn](~isOn) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someFn](~isOn) ContextPath Value[someFn] Path someFn @@ -26,7 +26,7 @@ posCursor:[13:25] posNoWhite:[13:24] Found expr:[13:11->13:26] Pexp_apply ...[13:11->13:17] (~isOn13:19->13:23=...[13:24->13:25]) Completable: Cexpression CArgument Value[someFn](~isOn)=t Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someFn](~isOn) ContextPath Value[someFn] Path someFn @@ -50,7 +50,7 @@ posCursor:[16:25] posNoWhite:[16:24] Found expr:[16:11->16:26] Pexp_apply ...[16:11->16:17] (~isOff16:19->16:24=...__ghost__[0:-1->0:-1]) Completable: Cexpression CArgument Value[someFn](~isOff) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someFn](~isOff) ContextPath Value[someFn] Path someFn @@ -77,7 +77,7 @@ posCursor:[21:27] posNoWhite:[21:26] Found expr:[21:14->21:28] Pexp_apply ...[21:14->21:20] (~isOn21:22->21:26=...__ghost__[0:-1->0:-1]) Completable: Cexpression CArgument Value[someFn](~isOn) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someFn](~isOn) ContextPath Value[someFn] Path someFn @@ -100,7 +100,7 @@ posCursor:[34:24] posNoWhite:[34:23] Found expr:[34:11->34:25] Pexp_apply ...[34:11->34:22] (...[34:23->34:24]) Completable: Cexpression CArgument Value[someOtherFn]($0)=f Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someOtherFn]($0) ContextPath Value[someOtherFn] Path someOtherFn @@ -117,7 +117,7 @@ posCursor:[51:39] posNoWhite:[51:38] Found expr:[51:11->51:40] Pexp_apply ...[51:11->51:30] (~config51:32->51:38=...__ghost__[0:-1->0:-1]) Completable: Cexpression CArgument Value[someFnTakingVariant](~config) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someFnTakingVariant](~config) ContextPath Value[someFnTakingVariant] Path someFnTakingVariant @@ -152,7 +152,7 @@ posCursor:[54:40] posNoWhite:[54:39] Found expr:[54:11->54:41] Pexp_apply ...[54:11->54:30] (~config54:32->54:38=...[54:39->54:40]) Completable: Cexpression CArgument Value[someFnTakingVariant](~config)=O Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someFnTakingVariant](~config) ContextPath Value[someFnTakingVariant] Path someFnTakingVariant @@ -190,7 +190,7 @@ posCursor:[57:33] posNoWhite:[57:32] Found expr:[57:11->57:34] Pexp_apply ...[57:11->57:30] (...[57:31->57:33]) Completable: Cexpression CArgument Value[someFnTakingVariant]($0)=So Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someFnTakingVariant]($0) ContextPath Value[someFnTakingVariant] Path someFnTakingVariant @@ -216,7 +216,7 @@ posCursor:[60:44] posNoWhite:[60:43] Found expr:[60:11->60:45] Pexp_apply ...[60:11->60:30] (~configOpt260:32->60:42=...[60:43->60:44]) Completable: Cexpression CArgument Value[someFnTakingVariant](~configOpt2)=O Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someFnTakingVariant](~configOpt2) ContextPath Value[someFnTakingVariant] Path someFnTakingVariant @@ -254,7 +254,7 @@ posCursor:[63:23] posNoWhite:[63:22] Found expr:[63:11->63:24] Pexp_apply ...[63:11->63:22] (...[63:23->63:24]) Completable: Cexpression CArgument Value[someOtherFn]($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someOtherFn]($0) ContextPath Value[someOtherFn] Path someOtherFn @@ -277,7 +277,7 @@ posCursor:[66:28] posNoWhite:[66:27] Found expr:[66:11->66:30] Pexp_apply ...[66:11->66:22] (...[66:23->66:24], ...[66:26->66:27]) Completable: Cexpression CArgument Value[someOtherFn]($2) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someOtherFn]($2) ContextPath Value[someOtherFn] Path someOtherFn @@ -299,7 +299,7 @@ Complete src/CompletionFunctionArguments.res 69:30 posCursor:[69:30] posNoWhite:[69:29] Found expr:[69:11->69:31] Completable: Cexpression CArgument Value[someOtherFn]($2)=t Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[someOtherFn]($2) ContextPath Value[someOtherFn] Path someOtherFn @@ -323,7 +323,7 @@ posCursor:[76:25] posNoWhite:[76:24] Found expr:[76:11->76:26] Pexp_apply ...[76:11->76:24] (...[76:25->76:26]) Completable: Cexpression CArgument Value[fnTakingTuple]($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingTuple]($0) ContextPath Value[fnTakingTuple] Path fnTakingTuple @@ -342,7 +342,7 @@ posCursor:[89:27] posNoWhite:[89:26] Found expr:[89:11->89:29] Pexp_apply ...[89:11->89:25] (...[89:26->89:28]) Completable: Cexpression CArgument Value[fnTakingRecord]($0)->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument Value[fnTakingRecord]($0) ContextPath Value[fnTakingRecord] Path fnTakingRecord @@ -375,7 +375,7 @@ posCursor:[109:29] posNoWhite:[109:28] Found expr:[108:6->109:29] posCursor:[109:29] posNoWhite:[109:28] Found expr:[109:9->109:29] Completable: Cpath Value[thisGetsBrokenLoc]->a <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[thisGetsBrokenLoc]->a <> ContextPath Value[thisGetsBrokenLoc] Path thisGetsBrokenLoc @@ -400,7 +400,7 @@ posCursor:[111:27] posNoWhite:[111:26] Found expr:[108:6->111:27] posCursor:[111:27] posNoWhite:[111:26] Found expr:[111:9->111:27] Completable: Cpath Value[reassignedWorks]->a <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[reassignedWorks]->a <> ContextPath Value[reassignedWorks] Path reassignedWorks diff --git a/analysis/tests/src/expected/CompletionInferValues.res.txt b/analysis/tests/src/expected/CompletionInferValues.res.txt index 183bae3de..55b527da6 100644 --- a/analysis/tests/src/expected/CompletionInferValues.res.txt +++ b/analysis/tests/src/expected/CompletionInferValues.res.txt @@ -2,7 +2,7 @@ Complete src/CompletionInferValues.res 15:43 posCursor:[15:43] posNoWhite:[15:42] Found expr:[15:33->15:43] Completable: Cpath Value[aliased]->f Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[aliased]->f ContextPath Value[aliased] Path aliased @@ -30,7 +30,7 @@ posCursor:[18:30] posNoWhite:[18:29] Found expr:[18:28->18:30] Pexp_field [18:28->18:29] _:[33:0->18:30] Completable: Cpath Value[x]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x]."" ContextPath Value[x] Path x @@ -56,7 +56,7 @@ posCursor:[21:53] posNoWhite:[21:52] Found expr:[21:45->21:53] Pexp_field [21:45->21:52] _:[33:0->21:53] Completable: Cpath Value[aliased]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[aliased]."" ContextPath Value[aliased] Path aliased @@ -89,7 +89,7 @@ posCursor:[24:63] posNoWhite:[24:62] Found expr:[24:52->24:63] Pexp_field [24:52->24:62] _:[24:63->24:63] Completable: Cpath Value[someRecord]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someRecord]."" ContextPath Value[someRecord] Path someRecord @@ -121,7 +121,7 @@ posCursor:[27:90] posNoWhite:[27:89] Found expr:[27:79->27:90] Pexp_field [27:79->27:89] _:[27:90->27:90] Completable: Cpath Value[someRecord]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someRecord]."" ContextPath Value[someRecord] Path someRecord @@ -152,7 +152,7 @@ posCursor:[30:36] posNoWhite:[30:35] Found expr:[30:16->30:38] posCursor:[30:36] posNoWhite:[30:35] Found expr:[30:27->30:36] Completable: Cpath Value[event]->pr Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[event]->pr ContextPath Value[event] Path event @@ -179,7 +179,7 @@ posCursor:[41:50] posNoWhite:[41:49] Found expr:[41:36->41:52] posCursor:[41:50] posNoWhite:[41:49] Found expr:[41:41->41:50] Completable: Cpath Value[event]->pr <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[event]->pr <> ContextPath Value[event] Path event @@ -206,7 +206,7 @@ posCursor:[44:50] posNoWhite:[44:49] Found expr:[44:36->44:52] posCursor:[44:50] posNoWhite:[44:49] Found expr:[44:41->44:50] Completable: Cpath Value[event]->pr <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[event]->pr <> ContextPath Value[event] Path event @@ -233,7 +233,7 @@ posCursor:[47:87] posNoWhite:[47:86] Found expr:[47:41->47:87] posCursor:[47:87] posNoWhite:[47:86] Found expr:[47:81->47:87] Completable: Cpath Value[btn]->t <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[btn]->t <> ContextPath Value[btn] Path btn @@ -264,7 +264,7 @@ posCursor:[50:108] posNoWhite:[50:107] Found expr:[50:41->50:108] posCursor:[50:108] posNoWhite:[50:107] Found expr:[50:100->50:108] Completable: Cpath Value[btn]->spl <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[btn]->spl <> ContextPath Value[btn] Path btn @@ -307,7 +307,7 @@ posCursor:[53:130] posNoWhite:[53:129] Found expr:[53:41->53:130] posCursor:[53:130] posNoWhite:[53:129] Found expr:[53:123->53:130] Completable: Cpath Value[btn]->ma <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[btn]->ma <> ContextPath Value[btn] Path btn @@ -335,7 +335,7 @@ posCursor:[56:52] posNoWhite:[56:51] Found expr:[56:50->56:52] Pexp_field [56:50->56:51] _:[59:0->56:52] Completable: Cpath Value[x]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x]."" ContextPath Value[x] Path x @@ -360,7 +360,7 @@ posCursor:[78:78] posNoWhite:[78:77] Found expr:[78:70->78:78] Pexp_field [78:70->78:77] _:[125:0->78:78] Completable: Cpath Value[srecord]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[srecord]."" ContextPath Value[srecord] Path srecord @@ -388,7 +388,7 @@ posCursor:[82:86] posNoWhite:[82:85] Found expr:[82:78->82:86] Pexp_field [82:78->82:85] _:[125:0->82:86] Completable: Cpath Value[aliased]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[aliased]."" ContextPath Value[aliased] Path aliased @@ -410,7 +410,7 @@ posCursor:[86:103] posNoWhite:[86:102] Found expr:[86:92->86:103] Pexp_field [86:92->86:102] _:[125:0->86:103] Completable: Cpath Value[someRecord]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someRecord]."" ContextPath Value[someRecord] Path someRecord @@ -437,7 +437,7 @@ Complete src/CompletionInferValues.res 90:81 posCursor:[90:81] posNoWhite:[90:80] Found expr:[90:69->90:81] Completable: Cpath Value[things]->slic Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[things]->slic ContextPath Value[things] Path things @@ -466,7 +466,7 @@ Complete src/CompletionInferValues.res 94:82 posCursor:[94:82] posNoWhite:[94:81] Found expr:[94:70->94:82] Completable: Cpath Value[someInt]->toS Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someInt]->toS ContextPath Value[someInt] Path someInt @@ -489,7 +489,7 @@ Complete src/CompletionInferValues.res 98:109 posCursor:[98:109] posNoWhite:[98:108] Found expr:[98:97->98:109] Completable: Cpath Value[someInt]->toS Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someInt]->toS ContextPath Value[someInt] Path someInt @@ -516,7 +516,7 @@ posCursor:[102:102] posNoWhite:[102:101] Found expr:[102:57->102:102] posCursor:[102:102] posNoWhite:[102:101] Found expr:[102:90->102:102] Completable: Cpath Value[someInt]->toS Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someInt]->toS ContextPath Value[someInt] Path someInt @@ -542,7 +542,7 @@ Complete src/CompletionInferValues.res 106:88 posCursor:[106:88] posNoWhite:[106:87] Found expr:[106:79->106:88] Completable: Cpath Value[str]->slic Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[str]->slic ContextPath Value[str] Path str @@ -571,7 +571,7 @@ Complete src/CompletionInferValues.res 110:89 posCursor:[110:89] posNoWhite:[110:88] Found expr:[110:80->110:89] Completable: Cpath Value[str]->slic Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[str]->slic ContextPath Value[str] Path str @@ -600,7 +600,7 @@ Complete src/CompletionInferValues.res 114:80 posCursor:[114:80] posNoWhite:[114:79] Found expr:[114:70->114:80] Completable: Cpath Value[name]->slic Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[name]->slic ContextPath Value[name] Path name @@ -630,7 +630,7 @@ posCursor:[118:67] posNoWhite:[118:66] Found expr:[118:60->118:67] Pexp_field [118:60->118:65] s:[118:66->118:67] Completable: Cpath Value[inner].s Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[inner].s ContextPath Value[inner] Path inner @@ -658,7 +658,7 @@ Complete src/CompletionInferValues.res 122:53 posCursor:[122:53] posNoWhite:[122:52] Found expr:[122:46->122:53] Completable: Cpath Value[v]->toSt Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[v]->toSt ContextPath Value[v] Path v @@ -683,7 +683,7 @@ posCursor:[130:26] posNoWhite:[130:25] Found pattern:[130:25->130:27] posCursor:[130:26] posNoWhite:[130:25] Found pattern:[130:25->130:27] Completable: Cpattern CArgument CArgument Value[fnWithRecordCallback]($0)($0)->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CArgument CArgument Value[fnWithRecordCallback]($0)($0) ContextPath CArgument Value[fnWithRecordCallback]($0) ContextPath Value[fnWithRecordCallback] @@ -710,7 +710,7 @@ posCursor:[137:30] posNoWhite:[137:29] Found expr:[137:24->0:-1] posCursor:[137:30] posNoWhite:[137:29] Found expr:[137:24->0:-1] Completable: Cpath Value[root]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[root]-> ContextPath Value[root] Path root @@ -745,7 +745,7 @@ posCursor:[146:30] posNoWhite:[146:29] Found expr:[146:24->0:-1] posCursor:[146:30] posNoWhite:[146:29] Found expr:[146:24->0:-1] Completable: Cpath Value[root]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[root]-> ContextPath Value[root] Path root @@ -782,7 +782,7 @@ Complete src/CompletionInferValues.res 150:47 XXX Not found! Completable: Cpattern Value[Belt, Int, toString](Nolabel) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Belt, Int, toString](Nolabel) ContextPath Value[Belt, Int, toString] Path Belt.Int.toString @@ -801,7 +801,7 @@ Complete src/CompletionInferValues.res 154:70 XXX Not found! Completable: Cpattern Value[Js, String2, split](Nolabel, Nolabel) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Js, String2, split](Nolabel, Nolabel) ContextPath Value[Js, String2, split] Path Js.String2.split @@ -824,7 +824,7 @@ posCursor:[158:105] posNoWhite:[158:104] Found expr:[158:97->158:105] Pexp_field [158:97->158:104] _:[158:105->158:105] Completable: Cpath Value[support]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[support]."" ContextPath Value[support] Path support @@ -849,7 +849,7 @@ posCursor:[162:110] posNoWhite:[162:109] Found expr:[162:104->0:-1] posCursor:[162:110] posNoWhite:[162:109] Found expr:[162:104->0:-1] Completable: Cpath Value[root]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[root]-> ContextPath Value[root] Path root diff --git a/analysis/tests/src/expected/CompletionJsx.res.txt b/analysis/tests/src/expected/CompletionJsx.res.txt index 4727b410e..fba67fac1 100644 --- a/analysis/tests/src/expected/CompletionJsx.res.txt +++ b/analysis/tests/src/expected/CompletionJsx.res.txt @@ -2,7 +2,7 @@ Complete src/CompletionJsx.res 3:17 posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:3->3:17] Completable: Cpath Value[someString]->st Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someString]->st ContextPath Value[someString] Path someString @@ -32,7 +32,7 @@ posCursor:[13:21] posNoWhite:[13:20] Found expr:[13:7->32:10] posCursor:[13:21] posNoWhite:[13:20] Found expr:[13:7->13:21] Completable: Cpath Value[someString]->st <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someString]->st <> ContextPath Value[someString] Path someString @@ -80,7 +80,7 @@ posCursor:[18:24] posNoWhite:[18:23] Found expr:[18:10->32:4] posCursor:[18:24] posNoWhite:[18:23] Found expr:[18:10->18:24] Completable: Cpath Value[someString]->st <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someString]->st <> ContextPath Value[someString] Path someString @@ -128,7 +128,7 @@ posCursor:[20:27] posNoWhite:[20:26] Found expr:[20:10->32:4] posCursor:[20:27] posNoWhite:[20:26] Found expr:[20:10->20:27] Completable: Cpath string->st <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath string->st <> ContextPath string CPPipe env:CompletionJsx @@ -175,7 +175,7 @@ posCursor:[22:44] posNoWhite:[22:43] Found expr:[22:10->32:4] posCursor:[22:44] posNoWhite:[22:43] Found expr:[22:10->22:44] Completable: Cpath Value[Js, String2, trim](Nolabel)->st <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Js, String2, trim](Nolabel)->st <> ContextPath Value[Js, String2, trim](Nolabel) ContextPath Value[Js, String2, trim] @@ -224,7 +224,7 @@ posCursor:[24:19] posNoWhite:[24:18] Found expr:[24:10->32:4] posCursor:[24:19] posNoWhite:[24:18] Found expr:[24:10->0:-1] Completable: Cpath Value[someInt]-> <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someInt]-> <> ContextPath Value[someInt] Path someInt @@ -308,7 +308,7 @@ posCursor:[26:14] posNoWhite:[26:13] Found expr:[26:10->32:4] posCursor:[26:14] posNoWhite:[26:13] Found expr:[26:10->0:-1] Completable: Cpath int-> <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath int-> <> ContextPath int CPPipe env:CompletionJsx @@ -391,7 +391,7 @@ posCursor:[28:20] posNoWhite:[28:19] Found expr:[28:10->32:4] posCursor:[28:20] posNoWhite:[28:19] Found expr:[28:10->28:20] Completable: Cpath Value[someArr]->a <> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someArr]->a <> ContextPath Value[someArr] Path someArr @@ -434,7 +434,7 @@ posCursor:[30:12] posNoWhite:[30:11] Found expr:[30:10->30:12] JSX 30:12] > _children:None Completable: ChtmlElement ", "kind": 4, @@ -463,7 +463,7 @@ posCursor:[45:23] posNoWhite:[45:22] Found expr:[45:4->45:23] JSX 45:21] n[45:22->45:23]=...[45:22->45:23]> _children:None Completable: Cjsx([CompWithoutJsxPpx], n, [n]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path CompWithoutJsxPpx.make [{ "label": "name", diff --git a/analysis/tests/src/expected/CompletionJsxProps.res.txt b/analysis/tests/src/expected/CompletionJsxProps.res.txt index eb2fcff43..e65d45841 100644 --- a/analysis/tests/src/expected/CompletionJsxProps.res.txt +++ b/analysis/tests/src/expected/CompletionJsxProps.res.txt @@ -3,7 +3,7 @@ posCursor:[0:47] posNoWhite:[0:46] Found expr:[0:12->0:47] JSX 0:43] on[0:44->0:46]=...__ghost__[0:-1->0:-1]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] on Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [CompletionSupport, TestComponent] on Path CompletionSupport.TestComponent.make [{ @@ -25,7 +25,7 @@ posCursor:[3:48] posNoWhite:[3:47] Found expr:[3:12->3:48] JSX 3:43] on[3:44->3:46]=...[3:47->3:48]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] on=t Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [CompletionSupport, TestComponent] on Path CompletionSupport.TestComponent.make [{ @@ -41,7 +41,7 @@ posCursor:[6:50] posNoWhite:[6:49] Found expr:[6:12->6:50] JSX 6:43] test[6:44->6:48]=...[6:49->6:50]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] test=T Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [CompletionSupport, TestComponent] test Path CompletionSupport.TestComponent.make [{ @@ -81,7 +81,7 @@ posCursor:[9:52] posNoWhite:[9:51] Found expr:[9:12->9:52] JSX 9:43] polyArg[9:44->9:51]=...__ghost__[0:-1->0:-1]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] polyArg Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [CompletionSupport, TestComponent] polyArg Path CompletionSupport.TestComponent.make [{ @@ -123,7 +123,7 @@ posCursor:[12:54] posNoWhite:[12:53] Found expr:[12:12->12:54] JSX 12:43] polyArg[12:44->12:51]=...[12:52->12:54]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] polyArg=#t Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [CompletionSupport, TestComponent] polyArg Path CompletionSupport.TestComponent.make [{ @@ -157,7 +157,7 @@ posCursor:[15:22] posNoWhite:[15:21] Found expr:[15:12->15:25] JSX 15:15] muted[15:16->15:21]=...__ghost__[0:-1->0:-1]> _children:15:23 Completable: Cexpression CJsxPropValue [div] muted Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [div] muted Path ReactDOM.domProps Path Pervasives.JsxDOM.domProps @@ -180,7 +180,7 @@ posCursor:[18:29] posNoWhite:[18:28] Found expr:[18:12->18:32] JSX 18:15] onMouseEnter[18:16->18:28]=...__ghost__[0:-1->0:-1]> _children:18:30 Completable: Cexpression CJsxPropValue [div] onMouseEnter Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [div] onMouseEnter Path ReactDOM.domProps Path Pervasives.JsxDOM.domProps @@ -200,7 +200,7 @@ posCursor:[22:52] posNoWhite:[22:51] Found expr:[22:12->22:52] JSX 22:43] testArr[22:44->22:51]=...__ghost__[0:-1->0:-1]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] testArr Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [CompletionSupport, TestComponent] testArr Path CompletionSupport.TestComponent.make [{ @@ -219,7 +219,7 @@ posCursor:[26:54] posNoWhite:[26:53] Found expr:[26:12->26:56] JSX 26:43] testArr[26:44->26:51]=...[26:53->26:55]> _children:None Completable: Cexpression CJsxPropValue [CompletionSupport, TestComponent] testArr->array Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [CompletionSupport, TestComponent] testArr Path CompletionSupport.TestComponent.make [{ diff --git a/analysis/tests/src/expected/CompletionPattern.res.txt b/analysis/tests/src/expected/CompletionPattern.res.txt index c1824c8a1..3883cc749 100644 --- a/analysis/tests/src/expected/CompletionPattern.res.txt +++ b/analysis/tests/src/expected/CompletionPattern.res.txt @@ -6,7 +6,7 @@ Complete src/CompletionPattern.res 10:15 XXX Not found! Completable: Cpattern Value[v] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[v] Path v [{ @@ -24,7 +24,7 @@ posCursor:[13:18] posNoWhite:[13:17] Found pattern:[13:16->13:22] posCursor:[13:18] posNoWhite:[13:17] Found pattern:[13:17->13:18] Completable: Cpattern Value[v]=t->tuple($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[v] Path v [{ @@ -41,7 +41,7 @@ posCursor:[16:25] posNoWhite:[16:24] Found pattern:[16:23->16:29] posCursor:[16:25] posNoWhite:[16:24] Found pattern:[16:24->16:25] Completable: Cpattern Value[v]=f->tuple($2), tuple($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[v] Path v [{ @@ -56,7 +56,7 @@ Complete src/CompletionPattern.res 21:15 XXX Not found! Completable: Cpattern Value[x] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x] Path x [{ @@ -77,7 +77,7 @@ Complete src/CompletionPattern.res 24:17 posCursor:[24:17] posNoWhite:[24:16] Found pattern:[24:16->24:17] Completable: Cpattern Value[x]=t Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x] Path x [{ @@ -92,7 +92,7 @@ Complete src/CompletionPattern.res 46:15 XXX Not found! Completable: Cpattern Value[f] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[f] Path f [{ @@ -110,7 +110,7 @@ Complete src/CompletionPattern.res 49:17 posCursor:[49:17] posNoWhite:[49:16] Found pattern:[49:16->49:18] Completable: Cpattern Value[f]->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[f] Path f [{ @@ -143,7 +143,7 @@ Complete src/CompletionPattern.res 52:24 posCursor:[52:24] posNoWhite:[52:22] Found pattern:[52:16->52:35] Completable: Cpattern Value[f]->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[f] Path f [{ @@ -165,7 +165,7 @@ posCursor:[55:19] posNoWhite:[55:18] Found pattern:[55:16->55:20] posCursor:[55:19] posNoWhite:[55:18] Found pattern:[55:17->55:19] Completable: Cpattern Value[f]=fi->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[f] Path f [{ @@ -182,7 +182,7 @@ posCursor:[58:19] posNoWhite:[58:18] Found pattern:[58:17->58:20] posCursor:[58:19] posNoWhite:[58:18] Found pattern:[58:18->58:19] Completable: Cpattern Value[z]=o->tuple($0), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[z] Path z [{ @@ -197,7 +197,7 @@ Complete src/CompletionPattern.res 61:22 posCursor:[61:22] posNoWhite:[61:21] Found pattern:[61:16->61:25] Completable: Cpattern Value[f]->recordField(nest) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[f] Path f [{ @@ -216,7 +216,7 @@ posCursor:[64:24] posNoWhite:[64:23] Found pattern:[64:16->64:26] posCursor:[64:24] posNoWhite:[64:23] Found pattern:[64:23->64:25] Completable: Cpattern Value[f]->recordField(nest), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[f] Path f [{ @@ -233,7 +233,7 @@ posCursor:[70:22] posNoWhite:[70:21] Found expr:[70:5->72:13] posCursor:[70:22] posNoWhite:[70:21] Found pattern:[70:21->70:23] Completable: Cpattern Value[nest]->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[nest] Path nest [{ @@ -248,7 +248,7 @@ Complete src/CompletionPattern.res 76:8 posCursor:[76:8] posNoWhite:[76:7] Found pattern:[76:7->76:9] Completable: Cpattern Value[f]->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[f] Path f [{ @@ -283,7 +283,7 @@ posCursor:[79:16] posNoWhite:[79:15] Found pattern:[79:14->79:17] posCursor:[79:16] posNoWhite:[79:15] Found pattern:[79:15->79:16] Completable: Cpattern Value[f]=n->recordField(nest), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[f] Path f [{ @@ -301,7 +301,7 @@ posCursor:[87:20] posNoWhite:[87:19] Found pattern:[87:19->87:21] Ppat_construct ():[87:19->87:21] Completable: Cpattern Value[z]->variantPayload::Two($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[z] Path z [{ @@ -324,7 +324,7 @@ Ppat_construct Two:[90:16->90:19] posCursor:[90:21] posNoWhite:[90:20] Found pattern:[90:20->90:21] Completable: Cpattern Value[z]=t->variantPayload::Two($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[z] Path z [{ @@ -341,7 +341,7 @@ Ppat_construct Three:[93:16->93:21] posCursor:[93:23] posNoWhite:[93:22] Found pattern:[93:22->93:24] Completable: Cpattern Value[z]->variantPayload::Three($0), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[z] Path z [{ @@ -377,7 +377,7 @@ posCursor:[96:27] posNoWhite:[96:26] Found pattern:[96:21->96:29] posCursor:[96:27] posNoWhite:[96:26] Found pattern:[96:26->96:27] Completable: Cpattern Value[z]=t->variantPayload::Three($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[z] Path z [{ @@ -394,7 +394,7 @@ posCursor:[103:21] posNoWhite:[103:20] Found pattern:[103:20->103:21] Ppat_construct ():[103:20->103:21] Completable: Cpattern Value[b]->polyvariantPayload::two($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[b] Path b [{ @@ -416,7 +416,7 @@ posCursor:[106:22] posNoWhite:[106:21] Found pattern:[106:16->106:23] posCursor:[106:22] posNoWhite:[106:21] Found pattern:[106:21->106:22] Completable: Cpattern Value[b]=t->polyvariantPayload::two($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[b] Path b [{ @@ -432,7 +432,7 @@ posCursor:[109:24] posNoWhite:[109:23] Found pattern:[109:16->109:26] posCursor:[109:24] posNoWhite:[109:23] Found pattern:[109:23->109:25] Completable: Cpattern Value[b]->polyvariantPayload::three($0), recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[b] Path b [{ @@ -467,7 +467,7 @@ posCursor:[112:28] posNoWhite:[112:27] Found pattern:[112:22->112:29] posCursor:[112:28] posNoWhite:[112:27] Found pattern:[112:27->112:28] Completable: Cpattern Value[b]=t->polyvariantPayload::three($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[b] Path b [{ @@ -482,7 +482,7 @@ Complete src/CompletionPattern.res 118:15 XXX Not found! Completable: Cpattern Value[c] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[c] Path c [{ @@ -500,7 +500,7 @@ Complete src/CompletionPattern.res 121:17 posCursor:[121:17] posNoWhite:[121:16] Found pattern:[121:16->121:18] Completable: Cpattern Value[c]->array Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[c] Path c [{ @@ -524,7 +524,7 @@ posCursor:[127:21] posNoWhite:[127:20] Found pattern:[127:20->127:22] Ppat_construct ():[127:20->127:22] Completable: Cpattern Value[o]->variantPayload::Some($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[o] Path o [{ @@ -546,7 +546,7 @@ posCursor:[134:23] posNoWhite:[134:22] Found pattern:[134:16->134:25] Ppat_construct Test:[134:16->134:20] Completable: Cpattern Value[p]->variantPayload::Test($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[p] Path p [{ @@ -569,7 +569,7 @@ Ppat_construct Test:[137:16->137:20] posCursor:[137:29] posNoWhite:[137:28] Found pattern:[137:20->137:32] Completable: Cpattern Value[p]->variantPayload::Test($2) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[p] Path p [{ @@ -606,7 +606,7 @@ Ppat_construct Test:[140:16->140:20] posCursor:[140:23] posNoWhite:[140:22] Found pattern:[140:20->140:32] Completable: Cpattern Value[p]->variantPayload::Test($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[p] Path p [{ @@ -629,7 +629,7 @@ Ppat_construct Test:[143:16->143:20] posCursor:[143:35] posNoWhite:[143:34] Found pattern:[143:20->143:38] Completable: Cpattern Value[p]->variantPayload::Test($3) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[p] Path p [{ @@ -647,7 +647,7 @@ Complete src/CompletionPattern.res 150:24 posCursor:[150:24] posNoWhite:[150:23] Found pattern:[150:16->150:26] Completable: Cpattern Value[v]->polyvariantPayload::test($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[v] Path v [{ @@ -669,7 +669,7 @@ posCursor:[153:30] posNoWhite:[153:29] Found pattern:[153:16->153:32] posCursor:[153:30] posNoWhite:[153:29] Found pattern:[153:21->153:32] Completable: Cpattern Value[v]->polyvariantPayload::test($2) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[v] Path v [{ @@ -705,7 +705,7 @@ posCursor:[156:24] posNoWhite:[156:23] Found pattern:[156:16->156:32] posCursor:[156:24] posNoWhite:[156:23] Found pattern:[156:21->156:32] Completable: Cpattern Value[v]->polyvariantPayload::test($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[v] Path v [{ @@ -727,7 +727,7 @@ posCursor:[159:36] posNoWhite:[159:35] Found pattern:[159:16->159:38] posCursor:[159:36] posNoWhite:[159:35] Found pattern:[159:21->159:38] Completable: Cpattern Value[v]->polyvariantPayload::test($3) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[v] Path v [{ @@ -746,7 +746,7 @@ posCursor:[164:17] posNoWhite:[164:16] Found pattern:[164:16->164:18] Ppat_construct ():[164:16->164:18] Completable: Cpattern Value[s]->tuple($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[s] Path s [{ @@ -767,7 +767,7 @@ Complete src/CompletionPattern.res 167:23 posCursor:[167:23] posNoWhite:[167:21] Found pattern:[167:16->167:24] Completable: Cpattern Value[s]->tuple($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[s] Path s [{ @@ -802,7 +802,7 @@ Complete src/CompletionPattern.res 170:22 posCursor:[170:22] posNoWhite:[170:21] Found pattern:[170:16->170:28] Completable: Cpattern Value[s]->tuple($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[s] Path s [{ @@ -837,7 +837,7 @@ Complete src/CompletionPattern.res 173:35 XXX Not found! Completable: Cpattern Value[s] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[s] Path s [{ @@ -854,7 +854,7 @@ Complete src/CompletionPattern.res 176:41 posCursor:[176:41] posNoWhite:[176:40] Found pattern:[176:35->176:47] Completable: Cpattern Value[s]->tuple($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[s] Path s [{ @@ -889,7 +889,7 @@ Complete src/CompletionPattern.res 179:21 XXX Not found! Completable: Cpattern Value[z] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[z] Path z [{ @@ -924,7 +924,7 @@ posCursor:[182:32] posNoWhite:[182:31] Found pattern:[182:22->182:34] Ppat_construct Two:[182:22->182:25] Completable: Cpattern Value[z]->variantPayload::Two($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[z] Path z [{ @@ -948,7 +948,7 @@ Ppat_construct Three:[185:22->185:27] posCursor:[185:48] posNoWhite:[185:47] Found pattern:[185:27->185:53] Completable: Cpattern Value[z]->variantPayload::Three($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[z] Path z [{ @@ -970,7 +970,7 @@ posCursor:[188:34] posNoWhite:[188:33] Found pattern:[188:16->188:36] posCursor:[188:34] posNoWhite:[188:33] Found pattern:[188:23->188:36] Completable: Cpattern Value[b]->polyvariantPayload::two($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[b] Path b [{ @@ -993,7 +993,7 @@ posCursor:[191:50] posNoWhite:[191:49] Found pattern:[191:23->191:52] posCursor:[191:50] posNoWhite:[191:49] Found pattern:[191:29->191:52] Completable: Cpattern Value[b]->polyvariantPayload::three($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[b] Path b [{ @@ -1015,7 +1015,7 @@ posCursor:[194:24] posNoWhite:[194:23] Found pattern:[194:16->194:29] posCursor:[194:24] posNoWhite:[194:23] Found pattern:[194:23->194:24] Completable: Cpattern Value[s]->tuple($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[s] Path s [{ @@ -1050,7 +1050,7 @@ Complete src/CompletionPattern.res 201:25 posCursor:[201:25] posNoWhite:[201:24] Found pattern:[201:17->201:28] Completable: Cpattern Value[ff]->recordField(someFn) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[ff] Path ff [] @@ -1059,7 +1059,7 @@ Complete src/CompletionPattern.res 206:16 XXX Not found! Completable: Cpattern Value[xn] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[xn] Path xn [{ diff --git a/analysis/tests/src/expected/CompletionPipeChain.res.txt b/analysis/tests/src/expected/CompletionPipeChain.res.txt index 9e6b4bd50..52bfb0631 100644 --- a/analysis/tests/src/expected/CompletionPipeChain.res.txt +++ b/analysis/tests/src/expected/CompletionPipeChain.res.txt @@ -2,7 +2,7 @@ Complete src/CompletionPipeChain.res 27:16 posCursor:[27:16] posNoWhite:[27:15] Found expr:[27:11->0:-1] Completable: Cpath Value[int]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[int]-> ContextPath Value[int] Path int @@ -40,7 +40,7 @@ Complete src/CompletionPipeChain.res 30:23 posCursor:[30:23] posNoWhite:[30:22] Found expr:[30:11->0:-1] Completable: Cpath Value[toFlt](Nolabel)-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[toFlt](Nolabel)-> ContextPath Value[toFlt](Nolabel) ContextPath Value[toFlt] @@ -67,7 +67,7 @@ Complete src/CompletionPipeChain.res 33:38 posCursor:[33:38] posNoWhite:[33:37] Found expr:[33:11->0:-1] Completable: Cpath Value[Integer, increment](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Integer, increment](Nolabel, Nolabel)-> ContextPath Value[Integer, increment](Nolabel, Nolabel) ContextPath Value[Integer, increment] @@ -106,7 +106,7 @@ Complete src/CompletionPipeChain.res 36:38 posCursor:[36:38] posNoWhite:[36:37] Found expr:[36:11->0:-1] Completable: Cpath Value[Integer, increment](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Integer, increment](Nolabel, Nolabel)-> ContextPath Value[Integer, increment](Nolabel, Nolabel) ContextPath Value[Integer, increment] @@ -145,7 +145,7 @@ Complete src/CompletionPipeChain.res 39:47 posCursor:[39:47] posNoWhite:[39:46] Found expr:[39:11->0:-1] Completable: Cpath Value[Integer, decrement](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Integer, decrement](Nolabel, Nolabel)-> ContextPath Value[Integer, decrement](Nolabel, Nolabel) ContextPath Value[Integer, decrement] @@ -184,7 +184,7 @@ Complete src/CompletionPipeChain.res 42:69 posCursor:[42:69] posNoWhite:[42:68] Found expr:[42:11->0:-1] Completable: Cpath Value[Integer, decrement](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Integer, decrement](Nolabel, Nolabel)-> ContextPath Value[Integer, decrement](Nolabel, Nolabel) ContextPath Value[Integer, decrement] @@ -223,7 +223,7 @@ Complete src/CompletionPipeChain.res 45:62 posCursor:[45:62] posNoWhite:[45:61] Found expr:[45:11->0:-1] Completable: Cpath Value[SuperFloat, fromInteger](Nolabel)-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[SuperFloat, fromInteger](Nolabel)-> ContextPath Value[SuperFloat, fromInteger](Nolabel) ContextPath Value[SuperFloat, fromInteger] @@ -250,7 +250,7 @@ Complete src/CompletionPipeChain.res 48:63 posCursor:[48:63] posNoWhite:[48:62] Found expr:[48:11->48:63] Completable: Cpath Value[SuperFloat, fromInteger](Nolabel)->t Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[SuperFloat, fromInteger](Nolabel)->t ContextPath Value[SuperFloat, fromInteger](Nolabel) ContextPath Value[SuperFloat, fromInteger] @@ -271,7 +271,7 @@ Complete src/CompletionPipeChain.res 51:82 posCursor:[51:82] posNoWhite:[51:81] Found expr:[51:11->0:-1] Completable: Cpath Value[CompletionSupport, Test, make](Nolabel)-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[CompletionSupport, Test, make](Nolabel)-> ContextPath Value[CompletionSupport, Test, make](Nolabel) ContextPath Value[CompletionSupport, Test, make] @@ -304,7 +304,7 @@ Complete src/CompletionPipeChain.res 54:78 posCursor:[54:78] posNoWhite:[54:77] Found expr:[54:11->0:-1] Completable: Cpath Value[CompletionSupport, Test, addSelf](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[CompletionSupport, Test, addSelf](Nolabel, Nolabel)-> ContextPath Value[CompletionSupport, Test, addSelf](Nolabel, Nolabel) ContextPath Value[CompletionSupport, Test, addSelf] @@ -337,7 +337,7 @@ Complete src/CompletionPipeChain.res 58:5 posCursor:[58:5] posNoWhite:[58:4] Found expr:[57:8->0:-1] Completable: Cpath Value[Js, Array2, forEach](Nolabel, Nolabel)-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Js, Array2, forEach](Nolabel, Nolabel)-> ContextPath Value[Js, Array2, forEach](Nolabel, Nolabel) ContextPath Value[Js, Array2, forEach] @@ -351,7 +351,7 @@ Complete src/CompletionPipeChain.res 62:6 posCursor:[62:6] posNoWhite:[62:5] Found expr:[61:8->62:6] Completable: Cpath Value[Belt, Array, reduce](Nolabel, Nolabel, Nolabel)->t Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Belt, Array, reduce](Nolabel, Nolabel, Nolabel)->t ContextPath Value[Belt, Array, reduce](Nolabel, Nolabel, Nolabel) ContextPath Value[Belt, Array, reduce] @@ -376,7 +376,7 @@ Complete src/CompletionPipeChain.res 70:12 posCursor:[70:12] posNoWhite:[70:11] Found expr:[70:3->0:-1] Completable: Cpath Value[aliased]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[aliased]-> ContextPath Value[aliased] Path aliased @@ -408,7 +408,7 @@ Complete src/CompletionPipeChain.res 73:15 posCursor:[73:15] posNoWhite:[73:14] Found expr:[73:3->0:-1] Completable: Cpath Value[notAliased]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[notAliased]-> ContextPath Value[notAliased] Path notAliased @@ -445,7 +445,7 @@ posCursor:[82:30] posNoWhite:[82:29] Found expr:[82:7->90:14] posCursor:[82:30] posNoWhite:[82:29] Found expr:[82:7->82:30] Completable: Cpath Value[props].support.root->ren Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[props].support.root->ren ContextPath Value[props].support.root ContextPath Value[props].support @@ -474,7 +474,7 @@ posCursor:[88:16] posNoWhite:[88:15] Found expr:[88:7->90:14] posCursor:[88:16] posNoWhite:[88:15] Found expr:[88:7->88:16] Completable: Cpath Value[root]->ren Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[root]->ren ContextPath Value[root] Path root diff --git a/analysis/tests/src/expected/CompletionPipeSubmodules.res.txt b/analysis/tests/src/expected/CompletionPipeSubmodules.res.txt index 5d122827a..26dcf482c 100644 --- a/analysis/tests/src/expected/CompletionPipeSubmodules.res.txt +++ b/analysis/tests/src/expected/CompletionPipeSubmodules.res.txt @@ -2,7 +2,7 @@ Complete src/CompletionPipeSubmodules.res 12:20 posCursor:[12:20] posNoWhite:[12:19] Found expr:[12:11->20:8] Completable: Cpath Value[A, B1, xx]-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[A, B1, xx]-> ContextPath Value[A, B1, xx] Path A.B1.xx @@ -28,7 +28,7 @@ Complete src/CompletionPipeSubmodules.res 16:18 posCursor:[16:18] posNoWhite:[16:17] Found expr:[16:11->20:8] Completable: Cpath Value[A, x].v-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[A, x].v-> ContextPath Value[A, x].v ContextPath Value[A, x] @@ -55,7 +55,7 @@ Complete src/CompletionPipeSubmodules.res 38:20 posCursor:[38:20] posNoWhite:[38:19] Found expr:[38:11->0:-1] Completable: Cpath Value[E, e].v.v-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[E, e].v.v-> ContextPath Value[E, e].v.v ContextPath Value[E, e].v @@ -77,7 +77,7 @@ Complete src/CompletionPipeSubmodules.res 42:21 posCursor:[42:21] posNoWhite:[42:20] Found expr:[42:11->0:-1] Completable: Cpath Value[E, e].v.v2-> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[E, e].v.v2-> ContextPath Value[E, e].v.v2 ContextPath Value[E, e].v diff --git a/analysis/tests/src/expected/CompletionTypeAnnotation.res.txt b/analysis/tests/src/expected/CompletionTypeAnnotation.res.txt index 7ca7be2cb..cb0319ed2 100644 --- a/analysis/tests/src/expected/CompletionTypeAnnotation.res.txt +++ b/analysis/tests/src/expected/CompletionTypeAnnotation.res.txt @@ -2,7 +2,7 @@ Complete src/CompletionTypeAnnotation.res 9:22 XXX Not found! Completable: Cexpression Type[someRecord] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[someRecord] Path someRecord [{ @@ -20,7 +20,7 @@ Complete src/CompletionTypeAnnotation.res 12:24 XXX Not found! Completable: Cexpression Type[someRecord]->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[someRecord] Path someRecord [{ @@ -41,7 +41,7 @@ Complete src/CompletionTypeAnnotation.res 15:23 XXX Not found! Completable: Cexpression Type[someVariant] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[someVariant] Path someVariant [{ @@ -66,7 +66,7 @@ Complete src/CompletionTypeAnnotation.res 18:25 XXX Not found! Completable: Cexpression Type[someVariant]=O Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[someVariant] Path someVariant [{ @@ -96,7 +96,7 @@ Complete src/CompletionTypeAnnotation.res 21:27 XXX Not found! Completable: Cexpression Type[somePolyVariant] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[somePolyVariant] Path somePolyVariant [{ @@ -121,7 +121,7 @@ Complete src/CompletionTypeAnnotation.res 24:30 XXX Not found! Completable: Cexpression Type[somePolyVariant]=#o Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[somePolyVariant] Path somePolyVariant [{ @@ -138,7 +138,7 @@ Complete src/CompletionTypeAnnotation.res 29:20 XXX Not found! Completable: Cexpression Type[someFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[someFunc] Path someFunc [{ @@ -156,7 +156,7 @@ Complete src/CompletionTypeAnnotation.res 34:21 XXX Not found! Completable: Cexpression Type[someTuple] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[someTuple] Path someTuple [{ @@ -173,7 +173,7 @@ Complete src/CompletionTypeAnnotation.res 37:28 XXX Not found! Completable: Cexpression Type[someTuple]->tuple($1) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[someTuple] Path someTuple [{ @@ -208,7 +208,7 @@ Complete src/CompletionTypeAnnotation.res 40:31 XXX Not found! Completable: Cexpression option Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath option ContextPath Type[someVariant] Path someVariant @@ -248,7 +248,7 @@ Complete src/CompletionTypeAnnotation.res 43:37 XXX Not found! Completable: Cexpression option->variantPayload::Some($0) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath option ContextPath Type[someVariant] Path someVariant @@ -274,7 +274,7 @@ Complete src/CompletionTypeAnnotation.res 46:30 XXX Not found! Completable: Cexpression array Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath array ContextPath Type[someVariant] Path someVariant @@ -293,7 +293,7 @@ Complete src/CompletionTypeAnnotation.res 49:32 XXX Not found! Completable: Cexpression array->array Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath array ContextPath Type[someVariant] Path someVariant @@ -319,7 +319,7 @@ Complete src/CompletionTypeAnnotation.res 52:38 XXX Not found! Completable: Cexpression array> Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath array> ContextPath option ContextPath Type[someVariant] @@ -339,7 +339,7 @@ Complete src/CompletionTypeAnnotation.res 55:45 XXX Not found! Completable: Cexpression option>->variantPayload::Some($0), array Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath option> ContextPath array ContextPath Type[someVariant] diff --git a/analysis/tests/src/expected/Cross.res.txt b/analysis/tests/src/expected/Cross.res.txt index 931e334cb..6f5ad3e43 100644 --- a/analysis/tests/src/expected/Cross.res.txt +++ b/analysis/tests/src/expected/Cross.res.txt @@ -98,7 +98,7 @@ posCursor:[36:28] posNoWhite:[36:27] Found expr:[36:3->36:28] Pexp_ident DefinitionWithInterface.a:[36:3->36:28] Completable: Cpath Value[DefinitionWithInterface, a] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[DefinitionWithInterface, a] Path DefinitionWithInterface.a [] diff --git a/analysis/tests/src/expected/Debug.res.txt b/analysis/tests/src/expected/Debug.res.txt index 6831c6d3d..1f4ab58da 100644 --- a/analysis/tests/src/expected/Debug.res.txt +++ b/analysis/tests/src/expected/Debug.res.txt @@ -10,7 +10,7 @@ Pexp_ident eqN:[14:5->14:8] Completable: Cpath Value[eqN] Raw opens: 1 Js.place holder Package opens Pervasives.JsxModules.place holder -Resolved opens 2 js.ml pervasives.res +Resolved opens 2 js.ml pervasives ContextPath Value[eqN] Path eqN [{ diff --git a/analysis/tests/src/expected/Destructuring.res.txt b/analysis/tests/src/expected/Destructuring.res.txt index f78ba866e..978a78816 100644 --- a/analysis/tests/src/expected/Destructuring.res.txt +++ b/analysis/tests/src/expected/Destructuring.res.txt @@ -2,7 +2,7 @@ Complete src/Destructuring.res 4:11 posCursor:[4:11] posNoWhite:[4:9] Found pattern:[4:4->4:12] Completable: Cpattern Value[x]->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x] Path x [{ @@ -17,7 +17,7 @@ Complete src/Destructuring.res 7:8 posCursor:[7:8] posNoWhite:[7:7] Found pattern:[7:7->7:9] Completable: Cpattern Value[x]->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x] Path x [{ @@ -40,7 +40,7 @@ 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 Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x] Path x [{ @@ -57,7 +57,7 @@ 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 Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x] Path x [{ @@ -78,7 +78,7 @@ Complete src/Destructuring.res 31:8 posCursor:[31:8] posNoWhite:[31:7] Found pattern:[31:7->31:9] Completable: Cpattern Value[x]->recordBody Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x] Path x [{ diff --git a/analysis/tests/src/expected/Div.res.txt b/analysis/tests/src/expected/Div.res.txt index 28d6b3506..29048516a 100644 --- a/analysis/tests/src/expected/Div.res.txt +++ b/analysis/tests/src/expected/Div.res.txt @@ -7,7 +7,7 @@ posCursor:[3:17] posNoWhite:[3:16] Found expr:[3:4->3:17] JSX 3:7] dangerous[3:8->3:17]=...[3:8->3:17]> _children:None Completable: Cjsx([div], dangerous, [dangerous]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives [{ "label": "dangerouslySetInnerHTML", "kind": 4, diff --git a/analysis/tests/src/expected/ExhaustiveSwitch.res.txt b/analysis/tests/src/expected/ExhaustiveSwitch.res.txt index 6fbc351f7..17b977cf9 100644 --- a/analysis/tests/src/expected/ExhaustiveSwitch.res.txt +++ b/analysis/tests/src/expected/ExhaustiveSwitch.res.txt @@ -2,7 +2,7 @@ Complete src/ExhaustiveSwitch.res 8:24 XXX Not found! Completable: CexhaustiveSwitch Value[withSomeVarian] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[withSomeVarian] Path withSomeVarian [{ @@ -26,7 +26,7 @@ Complete src/ExhaustiveSwitch.res 11:21 XXX Not found! Completable: CexhaustiveSwitch Value[withSomePol] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[withSomePol] Path withSomePol [{ @@ -50,7 +50,7 @@ Complete src/ExhaustiveSwitch.res 14:17 XXX Not found! Completable: CexhaustiveSwitch Value[someBoo] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someBoo] Path someBoo [{ @@ -74,7 +74,7 @@ Complete src/ExhaustiveSwitch.res 17:16 XXX Not found! Completable: CexhaustiveSwitch Value[someOp] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someOp] Path someOp [{ diff --git a/analysis/tests/src/expected/Hover.res.txt b/analysis/tests/src/expected/Hover.res.txt index 873d8eee5..e56cbe0f2 100644 --- a/analysis/tests/src/expected/Hover.res.txt +++ b/analysis/tests/src/expected/Hover.res.txt @@ -87,7 +87,7 @@ Nothing at that position. Now trying to use completion. Attribute id:live:[122:0->122:5] label:live Completable: Cdecorator(live) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives {"contents": {"kind": "markdown", "value": "The `@live` decorator is for reanalyze, a static analysis tool for ReScript that can do dead code analysis.\n\n`@live` tells the dead code analysis that the value should be considered live, even though it might appear to be dead. This is typically used in case of FFI where there are indirect ways to access values. It can be added to everything that could otherwise be considered unused by the dead code analysis - values, functions, arguments, records, individual record fields, and so on.\n\n[Read more and see examples in the documentation](https://rescript-lang.org/syntax-lookup#live-decorator).\n\nHint: Did you know you can run an interactive code analysis in your project by running the command `> ReScript: Start Code Analyzer`? Try it!"}} Hover src/Hover.res 125:4 @@ -119,7 +119,7 @@ posCursor:[170:16] posNoWhite:[170:15] Found expr:[170:5->170:16] Pexp_field [170:5->170:15] _:[176:2->170:16] Completable: Cpath Value[x1].content."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x1].content."" ContextPath Value[x1].content ContextPath Value[x1] @@ -137,7 +137,7 @@ posCursor:[173:16] posNoWhite:[173:15] Found expr:[173:5->173:16] Pexp_field [173:5->173:15] _:[176:2->173:16] Completable: Cpath Value[x2].content."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x2].content."" ContextPath Value[x2].content ContextPath Value[x2] @@ -155,7 +155,7 @@ posCursor:[182:16] posNoWhite:[182:15] Found expr:[182:5->182:16] Pexp_field [182:5->182:15] _:[187:0->182:16] Completable: Cpath Value[y1].content."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[y1].content."" ContextPath Value[y1].content ContextPath Value[y1] @@ -173,7 +173,7 @@ posCursor:[185:16] posNoWhite:[185:15] Found expr:[185:5->185:16] Pexp_field [185:5->185:15] _:[187:0->185:16] Completable: Cpath Value[y2].content."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[y2].content."" ContextPath Value[y2].content ContextPath Value[y2] @@ -198,11 +198,11 @@ posCursor:[210:13] posNoWhite:[210:12] Found expr:[210:11->210:14] Pexp_ident usr:[210:11->210:14] Completable: Cpath Value[usr] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[usr] Path usr Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives {"contents": {"kind": "markdown", "value": "```rescript\nuseR\n```\n\n---\n\n```\n \n```\n```rescript\ntype useR = {x: int, y: list>>}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C200%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype r<'a> = {i: 'a, f: float}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Hover.res%22%2C101%2C0%5D)\n"}} Hover src/Hover.res 230:20 @@ -217,12 +217,12 @@ posCursor:[245:6] posNoWhite:[245:5] Found expr:[245:3->245:14] Pexp_field [245:3->245:4] someField:[245:5->245:14] Completable: Cpath Value[x].someField Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x].someField ContextPath Value[x] Path x Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives {"contents": {"kind": "markdown", "value": "```rescript\nbool\n```\n\n Mighty fine field here. "}} Hover src/Hover.res 248:19 @@ -237,11 +237,11 @@ posCursor:[257:23] posNoWhite:[257:22] Found expr:[257:22->257:25] Pexp_ident fff:[257:22->257:25] Completable: Cpath Value[fff] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[fff] Path fff Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath string {"contents": {"kind": "markdown", "value": "```rescript\nstring\n```"}} @@ -251,11 +251,11 @@ posCursor:[260:33] posNoWhite:[260:32] Found expr:[260:31->260:40] Pexp_ident someField:[260:31->260:40] Completable: Cpath Value[someField] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someField] Path someField Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CPatternPath(Value[x])->recordField(someField) ContextPath Value[x] Path x diff --git a/analysis/tests/src/expected/Jsx2.res.txt b/analysis/tests/src/expected/Jsx2.res.txt index 73c611d0d..b6f0c10e3 100644 --- a/analysis/tests/src/expected/Jsx2.res.txt +++ b/analysis/tests/src/expected/Jsx2.res.txt @@ -8,7 +8,7 @@ posCursor:[8:15] posNoWhite:[8:14] Found expr:[8:4->8:15] JSX 8:5] second[8:6->8:12]=...[8:13->8:15]> _children:None Completable: Cexpression CJsxPropValue [M] second=fi Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath CJsxPropValue [M] second Path M.make [] @@ -18,7 +18,7 @@ posCursor:[11:20] posNoWhite:[11:19] Found expr:[11:4->11:20] JSX 11:5] second[11:6->11:12]=...[11:13->11:18] f[11:19->11:20]=...[11:19->11:20]> _children:None Completable: Cjsx([M], f, [second, f]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "first", @@ -39,7 +39,7 @@ posCursor:[14:13] posNoWhite:[14:12] Found expr:[14:12->14:13] JSX 14:13] > _children:None Completable: Cpath Module[M] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[M] Path M [{ @@ -73,7 +73,7 @@ posCursor:[22:19] posNoWhite:[22:18] Found expr:[22:4->22:19] JSX 22:5] prop[22:6->22:10]=...[22:12->22:16] k[22:18->22:19]=...[22:18->22:19]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -88,7 +88,7 @@ posCursor:[25:17] posNoWhite:[25:16] Found expr:[25:4->25:17] JSX 25:5] prop[25:6->25:10]=...[25:11->25:15] k[25:16->25:17]=...[25:16->25:17]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -103,7 +103,7 @@ posCursor:[28:21] posNoWhite:[28:20] Found expr:[28:4->28:21] JSX 28:5] prop[28:6->28:10]=...[28:11->28:19] k[28:20->28:21]=...[28:20->28:21]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -118,7 +118,7 @@ posCursor:[31:24] posNoWhite:[31:23] Found expr:[31:4->31:24] JSX 31:5] prop[31:6->31:10]=...[31:11->31:22] k[31:23->31:24]=...[31:23->31:24]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -133,7 +133,7 @@ posCursor:[34:18] posNoWhite:[34:17] Found expr:[34:4->34:18] JSX 34:5] prop[34:6->34:10]=...[34:12->34:16] k[34:17->34:18]=...[34:17->34:18]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -148,7 +148,7 @@ posCursor:[37:16] posNoWhite:[37:15] Found expr:[37:4->37:16] JSX 37:5] prop[37:6->37:10]=...[37:11->37:14] k[37:15->37:16]=...[37:15->37:16]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -163,7 +163,7 @@ posCursor:[40:17] posNoWhite:[40:16] Found expr:[40:4->40:17] JSX 40:5] prop[40:6->40:10]=...[40:11->40:15] k[40:16->40:17]=...[40:16->40:17]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -178,7 +178,7 @@ posCursor:[43:18] posNoWhite:[43:17] Found expr:[43:4->43:18] JSX 43:5] prop[43:6->43:10]=...[43:11->43:16] k[43:17->43:18]=...[43:17->43:18]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -193,7 +193,7 @@ posCursor:[46:16] posNoWhite:[46:15] Found expr:[46:4->46:16] JSX 46:5] prop[46:6->46:10]=...[46:11->46:14] k[46:15->46:16]=...[46:15->46:16]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -208,7 +208,7 @@ posCursor:[49:27] posNoWhite:[49:26] Found expr:[49:4->49:27] JSX 49:5] prop[49:6->49:10]=...[49:11->49:25] k[49:26->49:27]=...[49:26->49:27]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -223,7 +223,7 @@ posCursor:[52:38] posNoWhite:[52:37] Found expr:[52:4->52:38] JSX 52:5] prop[52:6->52:10]=...[52:11->52:36] k[52:37->52:38]=...[52:37->52:38]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -238,7 +238,7 @@ posCursor:[55:25] posNoWhite:[55:24] Found expr:[55:4->55:25] JSX 55:5] prop[55:6->55:10]=...[55:11->55:23] k[55:24->55:25]=...[55:24->55:25]> _children:None Completable: Cjsx([M], k, [prop, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -258,7 +258,7 @@ posCursor:[68:10] posNoWhite:[68:9] Found expr:[68:4->68:10] JSX 68:7] al[68:8->68:10]=...[68:8->68:10]> _children:None Completable: Cjsx([Ext], al, [al]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path Ext.make [{ "label": "align", @@ -273,7 +273,7 @@ posCursor:[71:11] posNoWhite:[71:10] Found expr:[71:4->71:11] JSX 71:5] first[71:6->71:11]=...[71:6->71:11]> _children:None Completable: Cjsx([M], first, [first]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [] @@ -282,7 +282,7 @@ posCursor:[74:16] posNoWhite:[74:15] Found expr:[74:4->74:16] JSX 74:5] first[74:6->74:11]=...[74:12->74:14] k[74:15->74:16]=...[74:15->74:16]> _children:None Completable: Cjsx([M], k, [first, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -297,7 +297,7 @@ posCursor:[77:23] posNoWhite:[77:22] Found expr:[77:4->77:23] JSX 77:5] first[77:6->77:11]=...[77:19->77:21] k[77:22->77:23]=...[77:22->77:23]> _children:None Completable: Cjsx([M], k, [first, k]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M.make [{ "label": "key", @@ -329,7 +329,7 @@ posCursor:[89:16] posNoWhite:[89:15] Found expr:[89:4->89:16] JSX 89:16] > _children:None Completable: Cpath Module[WithChildren] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[WithChildren] Path WithChildren [{ @@ -345,7 +345,7 @@ posCursor:[91:18] posNoWhite:[91:17] Found expr:[91:4->91:18] JSX 91:16] n[91:17->91:18]=...[91:17->91:18]> _children:None Completable: Cjsx([WithChildren], n, [n]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path WithChildren.make [{ "label": "name", @@ -361,7 +361,7 @@ posCursor:[94:18] posNoWhite:[94:17] Found type:[94:11->94:18] Ptyp_constr React.e:[94:11->94:18] Completable: Cpath Type[React, e] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[React, e] Path React.e [{ @@ -378,7 +378,7 @@ posCursor:[96:20] posNoWhite:[96:19] Found type:[96:11->99:6] Ptyp_constr ReactDOMR:[96:11->99:6] Completable: Cpath Type[ReactDOMR] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[ReactDOMR] Path ReactDOMR [{ @@ -396,7 +396,7 @@ posCursor:[102:21] posNoWhite:[102:20] Found expr:[102:17->102:21] Pexp_field [102:17->102:18] th:[102:19->102:21] Completable: Cpath Value[x].th Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[x].th ContextPath Value[x] Path x @@ -407,7 +407,7 @@ posCursor:[106:28] posNoWhite:[106:27] Found expr:[106:11->106:28] Pexp_ident DefineSomeFields.:[106:11->106:28] Completable: Cpath Value[DefineSomeFields, ""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[DefineSomeFields, ""] Path DefineSomeFields. [{ @@ -425,7 +425,7 @@ posCursor:[108:36] posNoWhite:[108:35] Found expr:[108:15->108:36] Pexp_field [108:15->108:16] DefineSomeFields.th:[108:17->108:36] Completable: Cpath Module[DefineSomeFields].th Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[DefineSomeFields].th Path DefineSomeFields.th [{ @@ -449,7 +449,7 @@ posCursor:[122:20] posNoWhite:[122:19] Found expr:[122:7->122:20] Pexp_ident Outer.Inner.h:[122:7->122:20] Completable: Cpath Value[Outer, Inner, h] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Outer, Inner, h] Path Outer.Inner.h [{ @@ -467,7 +467,7 @@ posCursor:[129:19] posNoWhite:[129:18] Found expr:[129:7->131:8] Pexp_ident Outer.Inner.:[129:7->131:8] Completable: Cpath Value[Outer, Inner, ""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Outer, Inner, ""] Path Outer.Inner. [{ @@ -488,7 +488,7 @@ posCursor:[150:21] posNoWhite:[150:20] Found expr:[150:12->150:32] JSX 150:21] name[150:22->150:26]=...[150:27->150:29]> _children:150:30 Completable: Cpath Module[Nested, Co] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[Nested, Co] Path Nested.Co [{ @@ -504,7 +504,7 @@ posCursor:[153:19] posNoWhite:[153:18] Found expr:[153:12->153:25] JSX 153:24] > _children:None Completable: Cpath Module[Nested, ""] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[Nested, ""] Path Nested. [{ @@ -524,7 +524,7 @@ posCursor:[162:12] posNoWhite:[162:11] Found expr:[162:6->162:20] JSX 162:10] age[162:11->162:14]=...[162:15->162:17]> _children:162:18 Completable: Cjsx([Comp], age, [age]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path Comp.make {"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}} @@ -540,7 +540,7 @@ posCursor:[167:16] posNoWhite:[167:15] Found expr:[167:10->167:24] JSX 167:14] age[167:15->167:18]=...[167:19->167:21]> _children:167:22 Completable: Cjsx([Comp], age, [age]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path Comp.make {"contents": {"kind": "markdown", "value": "```rescript\nint\n```"}} diff --git a/analysis/tests/src/expected/Jsx2.resi.txt b/analysis/tests/src/expected/Jsx2.resi.txt index 7b25e403d..1dc85a0e9 100644 --- a/analysis/tests/src/expected/Jsx2.resi.txt +++ b/analysis/tests/src/expected/Jsx2.resi.txt @@ -11,7 +11,7 @@ posCursor:[7:19] posNoWhite:[7:18] Found type:[7:12->7:19] Ptyp_constr React.e:[7:12->7:19] Completable: Cpath Type[React, e] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[React, e] Path React.e [{ @@ -27,7 +27,7 @@ posCursor:[10:18] posNoWhite:[10:17] Found type:[10:11->10:18] Ptyp_constr React.e:[10:11->10:18] Completable: Cpath Type[React, e] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[React, e] Path React.e [{ diff --git a/analysis/tests/src/expected/JsxV4.res.txt b/analysis/tests/src/expected/JsxV4.res.txt index d865f4db8..9c9bb9d37 100644 --- a/analysis/tests/src/expected/JsxV4.res.txt +++ b/analysis/tests/src/expected/JsxV4.res.txt @@ -6,7 +6,7 @@ posCursor:[11:20] posNoWhite:[11:19] Found expr:[11:4->11:20] JSX 11:6] first[11:7->11:12]=...[11:13->11:18] f[11:19->11:20]=...[11:19->11:20]> _children:None Completable: Cjsx([M4], f, [first, f]) Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives Path M4.make [{ "label": "fun", diff --git a/analysis/tests/src/expected/RecordCompletion.res.txt b/analysis/tests/src/expected/RecordCompletion.res.txt index 9df90caa6..f8ae52243 100644 --- a/analysis/tests/src/expected/RecordCompletion.res.txt +++ b/analysis/tests/src/expected/RecordCompletion.res.txt @@ -2,7 +2,7 @@ Complete src/RecordCompletion.res 8:9 posCursor:[8:9] posNoWhite:[8:8] Found expr:[8:3->8:9] Completable: Cpath Value[t].n->m Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[t].n->m ContextPath Value[t].n ContextPath Value[t] @@ -27,7 +27,7 @@ Complete src/RecordCompletion.res 11:13 posCursor:[11:13] posNoWhite:[11:12] Found expr:[11:3->11:13] Completable: Cpath Value[t2].n2.n->m Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[t2].n2.n->m ContextPath Value[t2].n2.n ContextPath Value[t2].n2 @@ -54,7 +54,7 @@ posCursor:[19:7] posNoWhite:[19:6] Found expr:[19:3->19:7] Pexp_field [19:3->19:4] R.:[19:5->19:7] Completable: Cpath Module[R]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[R]."" Path R. [{ @@ -70,7 +70,7 @@ posCursor:[22:7] posNoWhite:[22:6] Found expr:[22:3->22:10] Pexp_field [22:3->22:4] R.xx:[22:5->22:10] Completable: Cpath Module[R]."" Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Module[R]."" Path R. [{ diff --git a/analysis/tests/src/expected/RecoveryOnProp.res.txt b/analysis/tests/src/expected/RecoveryOnProp.res.txt index aa9f5f456..b8f163ba5 100644 --- a/analysis/tests/src/expected/RecoveryOnProp.res.txt +++ b/analysis/tests/src/expected/RecoveryOnProp.res.txt @@ -12,7 +12,7 @@ posCursor:[6:26] posNoWhite:[6:25] Found type:[6:23->8:5] Ptyp_constr Res:[6:23->8:5] Completable: Cpath Type[Res] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Type[Res] Path Res [{ diff --git a/analysis/tests/src/expected/SignatureHelp.res.txt b/analysis/tests/src/expected/SignatureHelp.res.txt index cb0ecf31c..2dd482881 100644 --- a/analysis/tests/src/expected/SignatureHelp.res.txt +++ b/analysis/tests/src/expected/SignatureHelp.res.txt @@ -5,7 +5,7 @@ posCursor:[16:19] posNoWhite:[16:18] Found expr:[16:11->16:19] Pexp_ident someFunc:[16:11->16:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someFunc] Path someFunc argAtCursor: unlabelled<0> @@ -29,7 +29,7 @@ posCursor:[19:19] posNoWhite:[19:18] Found expr:[19:11->19:19] Pexp_ident someFunc:[19:11->19:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someFunc] Path someFunc argAtCursor: unlabelled<0> @@ -53,7 +53,7 @@ posCursor:[22:19] posNoWhite:[22:18] Found expr:[22:11->22:19] Pexp_ident someFunc:[22:11->22:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someFunc] Path someFunc argAtCursor: ~two @@ -77,7 +77,7 @@ posCursor:[25:19] posNoWhite:[25:18] Found expr:[25:11->25:19] Pexp_ident someFunc:[25:11->25:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someFunc] Path someFunc argAtCursor: ~two @@ -101,7 +101,7 @@ posCursor:[28:19] posNoWhite:[28:18] Found expr:[28:11->28:19] Pexp_ident someFunc:[28:11->28:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someFunc] Path someFunc argAtCursor: ~four @@ -125,7 +125,7 @@ posCursor:[31:19] posNoWhite:[31:18] Found expr:[31:11->31:19] Pexp_ident someFunc:[31:11->31:19] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someFunc] Path someFunc argAtCursor: ~four @@ -149,7 +149,7 @@ posCursor:[34:20] posNoWhite:[34:19] Found expr:[34:11->34:20] Pexp_ident otherFunc:[34:11->34:20] Completable: Cpath Value[otherFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[otherFunc] Path otherFunc argAtCursor: unlabelled<0> @@ -171,7 +171,7 @@ posCursor:[37:20] posNoWhite:[37:19] Found expr:[37:11->37:20] Pexp_ident otherFunc:[37:11->37:20] Completable: Cpath Value[otherFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[otherFunc] Path otherFunc argAtCursor: unlabelled<0> @@ -193,7 +193,7 @@ posCursor:[40:20] posNoWhite:[40:19] Found expr:[40:11->40:20] Pexp_ident otherFunc:[40:11->40:20] Completable: Cpath Value[otherFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[otherFunc] Path otherFunc argAtCursor: unlabelled<2> @@ -215,7 +215,7 @@ posCursor:[43:29] posNoWhite:[43:28] Found expr:[43:11->43:29] Pexp_ident Completion.Lib.foo:[43:11->43:29] Completable: Cpath Value[Completion, Lib, foo] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[Completion, Lib, foo] Path Completion.Lib.foo argAtCursor: ~age @@ -237,7 +237,7 @@ posCursor:[50:23] posNoWhite:[50:22] Found expr:[50:11->50:23] Pexp_ident iAmSoSpecial:[50:11->50:23] Completable: Cpath Value[iAmSoSpecial] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[iAmSoSpecial] Path iAmSoSpecial argAtCursor: unlabelled<0> @@ -260,7 +260,7 @@ posCursor:[53:29] posNoWhite:[53:28] Found expr:[53:20->53:29] Pexp_ident otherFunc:[53:20->53:29] Completable: Cpath Value[otherFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[otherFunc] Path otherFunc argAtCursor: unlabelled<1> @@ -282,7 +282,7 @@ posCursor:[62:13] posNoWhite:[62:12] Found expr:[62:11->62:13] Pexp_ident fn:[62:11->62:13] Completable: Cpath Value[fn] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[fn] Path fn argAtCursor: unlabelled<1> @@ -304,7 +304,7 @@ posCursor:[65:13] posNoWhite:[65:12] Found expr:[65:11->65:13] Pexp_ident fn:[65:11->65:13] Completable: Cpath Value[fn] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[fn] Path fn argAtCursor: unlabelled<1> @@ -326,7 +326,7 @@ posCursor:[68:13] posNoWhite:[68:12] Found expr:[68:11->68:13] Pexp_ident fn:[68:11->68:13] Completable: Cpath Value[fn] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[fn] Path fn argAtCursor: unlabelled<2> @@ -350,7 +350,7 @@ posCursor:[71:28] posNoWhite:[71:27] Found expr:[71:16->71:28] Pexp_ident iAmSoSpecial:[71:16->71:28] Completable: Cpath Value[iAmSoSpecial] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[iAmSoSpecial] Path iAmSoSpecial argAtCursor: unlabelled<0> @@ -376,7 +376,7 @@ posCursor:[74:39] posNoWhite:[74:38] Found expr:[74:31->74:39] Pexp_ident someFunc:[74:31->74:39] Completable: Cpath Value[someFunc] Package opens Pervasives.JsxModules.place holder -Resolved opens 1 pervasives.res +Resolved opens 1 pervasives ContextPath Value[someFunc] Path someFunc argAtCursor: unlabelled<0>