aboutsummaryrefslogtreecommitdiff
path: root/hcel-utils.el
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-23 16:45:36 +1000
committerYuchen Pei <hi@ypei.me>2022-09-23 16:45:36 +1000
commit1699e7873395703720c607a0254909aece16bae7 (patch)
tree5129ba34dfc33ee6c3f5e99e8a43b73ecdb3fccd /hcel-utils.el
parentf73cbee6f83f948202d0ea3fb8775b49562295be (diff)
Separating out hcel-minor mode to avoid recursive requires
Diffstat (limited to 'hcel-utils.el')
-rw-r--r--hcel-utils.el20
1 files changed, 0 insertions, 20 deletions
diff --git a/hcel-utils.el b/hcel-utils.el
index 6d44a4c..3bd8841 100644
--- a/hcel-utils.el
+++ b/hcel-utils.el
@@ -28,26 +28,6 @@
"Gets the tag of LOCATION-INFO."
(alist-get 'tag location-info))
-(defun hcel-approx-to-exact-location (approx-location-info)
- "Fetch exact location given approximate location.
-
-Example of approximate location:
-
- \"locationInfo\": {
- \"componentId\": \"exe-haskell-code-server\",
- \"entity\": \"Typ\",
- \"haddockAnchorId\": \"PackageInfo\",
- \"moduleName\": \"HaskellCodeExplorer.Types\",
- \"name\": \"PackageInfo\",
- \"packageId\": {
- \"name\": \"haskell-code-explorer\",
- \"version\": \"0.1.0.0\"
- },
- \"tag\": \"ApproximateLocation\"
- }"
- (alist-get 'location
- (hcel-definition-site-location-info approx-location-info)))
-
(defun hcel-id-src-span-to-location-info (package-id module-path id-src-span)
"Converts an idSrcSpan to an exact location.