@jpoly1219/context-extractor 0.2.5 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/app.js +2 -1
- package/dist/src/ocaml-utils/_build/.filesystem-clock +1 -0
- package/dist/src/ocaml-utils/_build/.lock +0 -0
- package/dist/src/ocaml-utils/_build/default/.dune/configurator +2 -0
- package/dist/src/ocaml-utils/_build/default/.dune/configurator.v2 +1 -0
- package/dist/src/ocaml-utils/_build/default/.js/default/compiler-libs.common/ocamlcommon.cma.js +160991 -0
- package/dist/src/ocaml-utils/_build/default/.js/default/js_of_ocaml/js_of_ocaml.cma.js +7195 -0
- package/dist/src/ocaml-utils/_build/default/.js/default/js_of_ocaml-compiler.runtime/jsoo_runtime.cma.js +73 -0
- package/dist/src/ocaml-utils/_build/default/.js/default/stdlib/std_exit.cmo.js +25 -0
- package/dist/src/ocaml-utils/_build/default/.js/default/stdlib/stdlib.cma.js +28451 -0
- package/dist/src/ocaml-utils/_build/default/.merlin-conf/exe-test_parser +0 -0
- package/dist/src/ocaml-utils/_build/default/.ppx/7b799aed44581cc79b02033532c5f775/_ppx.ml-gen +1 -0
- package/dist/src/ocaml-utils/_build/default/.ppx/7b799aed44581cc79b02033532c5f775/dune__exe___ppx.cmi +0 -0
- package/dist/src/ocaml-utils/_build/default/.ppx/7b799aed44581cc79b02033532c5f775/dune__exe___ppx.cmo +0 -0
- package/dist/src/ocaml-utils/_build/default/.ppx/7b799aed44581cc79b02033532c5f775/dune__exe___ppx.cmx +0 -0
- package/dist/src/ocaml-utils/_build/default/.ppx/7b799aed44581cc79b02033532c5f775/dune__exe___ppx.o +0 -0
- package/dist/src/ocaml-utils/_build/default/.ppx/7b799aed44581cc79b02033532c5f775/ppx.exe +0 -0
- package/dist/src/ocaml-utils/_build/default/.test_parser.eobjs/byte/dune__exe__Test_parser.cmi +0 -0
- package/dist/src/ocaml-utils/_build/default/.test_parser.eobjs/byte/dune__exe__Test_parser.cmo +0 -0
- package/dist/src/ocaml-utils/_build/default/.test_parser.eobjs/byte/dune__exe__Test_parser.cmt +0 -0
- package/dist/src/ocaml-utils/_build/default/.test_parser.eobjs/byte/dune__exe__Test_parser.cmti +0 -0
- package/dist/src/ocaml-utils/_build/default/.test_parser.eobjs/jsoo/dune__exe__Test_parser.cmo.js +215 -0
- package/dist/src/ocaml-utils/_build/default/.test_parser.eobjs/jsoo/test_parser.bc.runtime.js +8894 -0
- package/dist/src/ocaml-utils/_build/default/.test_parser.eobjs/native/dune__exe__Test_parser.cmx +0 -0
- package/dist/src/ocaml-utils/_build/default/.test_parser.eobjs/native/dune__exe__Test_parser.o +0 -0
- package/dist/src/ocaml-utils/_build/default/test_parser.bc-for-jsoo +0 -0
- package/dist/src/ocaml-utils/_build/default/test_parser.bc.d.ts +3 -0
- package/dist/src/ocaml-utils/_build/default/test_parser.bc.js +194658 -0
- package/dist/src/ocaml-utils/_build/default/test_parser.ml +315 -0
- package/dist/src/ocaml-utils/_build/default/test_parser.pp.ml +0 -0
- package/dist/src/ocaml-utils/_build/default/test_parser.pp.mli +1 -0
- package/dist/src/ocaml-utils/_build/log +22 -0
- package/dist/src/runner.js +10 -1
- package/dist/src/typescript-driver.js +13 -2
- package/package.json +6 -2
package/dist/src/app.js
CHANGED
@@ -125,7 +125,7 @@ class App {
|
|
125
125
|
else if (this.language === types_1.Language.OCaml) {
|
126
126
|
relevantTypes.delete("_");
|
127
127
|
}
|
128
|
-
console.log(
|
128
|
+
// console.log(relevantTypes)
|
129
129
|
let repo = [];
|
130
130
|
if (this.language === types_1.Language.TypeScript) {
|
131
131
|
repo = (0, utils_1.getAllTSFiles)(this.repoPath);
|
@@ -134,6 +134,7 @@ class App {
|
|
134
134
|
repo = (0, utils_1.getAllOCamlFiles)(this.repoPath);
|
135
135
|
}
|
136
136
|
const relevantHeaders = await this.languageDriver.extractRelevantHeaders(this.lspClient, repo, relevantTypes, holeContext.functionTypeSpan);
|
137
|
+
// console.log(relevantHeaders)
|
137
138
|
// Postprocess the map.
|
138
139
|
if (this.language === types_1.Language.TypeScript) {
|
139
140
|
relevantTypes.delete("");
|
@@ -0,0 +1 @@
|
|
1
|
+
<dummy>
|
File without changes
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(ocamlc /home/jacob/projects/context-extractor/_opam/bin/ocamlc.opt)
|
2
|
+
(ocaml_config_vars (afl_instrument false) (architecture amd64) (asm as) (asm_cfi_supported true) (ast_impl_magic_number Caml1999M034) (ast_intf_magic_number Caml1999N034) (bytecomp_c_compiler "gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread -D_FILE_OFFSET_BITS=64 ") (bytecomp_c_libraries " -lm -lpthread") (c_compiler gcc) (ccomp_type cc) (cma_magic_number Caml1999A034) (cmi_magic_number Caml1999I034) (cmo_magic_number Caml1999O034) (cmt_magic_number Caml1999T034) (cmx_magic_number Caml1999Y034) (cmxa_magic_number Caml1999Z034) (cmxs_magic_number Caml1999D034) (default_executable_name a.out) (default_safe_string true) (exec_magic_number Caml1999X034) (ext_asm .s) (ext_dll .so) (ext_exe "") (ext_lib .a) (ext_obj .o) (flambda false) (flat_float_array true) (function_sections true) (host x86_64-pc-linux-gnu) (int_size 63) (linear_magic_number Caml1999L034) (model default) (naked_pointers false) (native_c_compiler "gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread -D_FILE_OFFSET_BITS=64 ") (native_c_libraries " -lm -lpthread") (native_compiler true) (native_dynlink true) (native_ldflags "") (native_pack_linker "ld -r -o ") (ocamlc_cflags " -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread") (ocamlc_cppflags " -D_FILE_OFFSET_BITS=64 ") (ocamlopt_cflags " -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread") (ocamlopt_cppflags " -D_FILE_OFFSET_BITS=64 ") (os_type Unix) (safe_string true) (standard_library /home/jacob/projects/context-extractor/_opam/lib/ocaml) (standard_library_default /home/jacob/projects/context-extractor/_opam/lib/ocaml) (supports_shared_libraries true) (system linux) (systhread_supported true) (target x86_64-pc-linux-gnu) (tsan false) (version 5.2.0) (windows_unicode false) (with_frame_pointers false) (word_size 64))
|
@@ -0,0 +1 @@
|
|
1
|
+
((6:ocamlc59:/home/jacob/projects/context-extractor/_opam/bin/ocamlc.opt)(17:ocaml_config_vars((14:afl_instrument5:false)(12:architecture5:amd64)(3:asm2:as)(17:asm_cfi_supported4:true)(21:ast_impl_magic_number12:Caml1999M034)(21:ast_intf_magic_number12:Caml1999N034)(19:bytecomp_c_compiler87:gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread -D_FILE_OFFSET_BITS=64 )(20:bytecomp_c_libraries16: -lm -lpthread)(10:c_compiler3:gcc)(10:ccomp_type2:cc)(16:cma_magic_number12:Caml1999A034)(16:cmi_magic_number12:Caml1999I034)(16:cmo_magic_number12:Caml1999O034)(16:cmt_magic_number12:Caml1999T034)(16:cmx_magic_number12:Caml1999Y034)(17:cmxa_magic_number12:Caml1999Z034)(17:cmxs_magic_number12:Caml1999D034)(23:default_executable_name5:a.out)(19:default_safe_string4:true)(17:exec_magic_number12:Caml1999X034)(7:ext_asm2:.s)(7:ext_dll3:.so)(7:ext_exe0:)(7:ext_lib2:.a)(7:ext_obj2:.o)(7:flambda5:false)(16:flat_float_array4:true)(17:function_sections4:true)(4:host19:x86_64-pc-linux-gnu)(8:int_size2:63)(19:linear_magic_number12:Caml1999L034)(5:model7:default)(14:naked_pointers5:false)(17:native_c_compiler87:gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread -D_FILE_OFFSET_BITS=64 )(18:native_c_libraries15: -lm -lpthread)(15:native_compiler4:true)(14:native_dynlink4:true)(14:native_ldflags0:)(18:native_pack_linker9:ld -r -o )(13:ocamlc_cflags58: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread)(15:ocamlc_cppflags24: -D_FILE_OFFSET_BITS=64 )(15:ocamlopt_cflags58: -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -pthread)(17:ocamlopt_cppflags24: -D_FILE_OFFSET_BITS=64 )(7:os_type4:Unix)(11:safe_string4:true)(16:standard_library54:/home/jacob/projects/context-extractor/_opam/lib/ocaml)(24:standard_library_default54:/home/jacob/projects/context-extractor/_opam/lib/ocaml)(25:supports_shared_libraries4:true)(6:system5:linux)(19:systhread_supported4:true)(6:target19:x86_64-pc-linux-gnu)(4:tsan5:false)(7:version5:5.2.0)(15:windows_unicode5:false)(19:with_frame_pointers5:false)(9:word_size2:64))))
|