@codua/codeoutline-win32-x64 0.2.1 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -144,14 +144,14 @@ function M.resident(root)
144
144
  return p.idx, p.idx.symbol_tables
145
145
  end
146
146
 
147
- function M.explore(root, query, opts)
148
- explore.validate(query, opts)
147
+ local function run_query(engine, root, query, opts)
148
+ engine.validate(query, opts)
149
149
  local idx, _, stats = refresh(root, opts, true)
150
150
  idx.query_sources = {}
151
151
  local ok, result = pcall(function()
152
152
  while true do
153
153
  -- A GBK repair commits the decoded file, which renumbers its nodes.
154
- local output, details = explore.run(idx:symbols(), idx, query, opts)
154
+ local output, details = engine.run(idx:symbols(), idx, query, opts)
155
155
  control.check()
156
156
  if not details.encoding_retry then return { text = output, info = details } end
157
157
  end
@@ -166,6 +166,14 @@ function M.explore(root, query, opts)
166
166
  return result.text, result.info
167
167
  end
168
168
 
169
+ function M.explore(root, query, opts)
170
+ return run_query(explore, root, query, opts)
171
+ end
172
+
173
+ function M.callers(root, query, opts)
174
+ return run_query(require('codeoutline.callers'), root, query, opts)
175
+ end
176
+
169
177
  function M.status(root, opts)
170
178
  local idx, G, stats = M.get(root, opts)
171
179
  local languages = {}
@@ -1 +1 @@
1
- return 11
1
+ return 13
@@ -1 +1 @@
1
- return '0.2.1'
1
+ return '0.2.4'