aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/lsp/references.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/lsp/references.py')
-rw-r--r--pyGHDL/lsp/references.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyGHDL/lsp/references.py b/pyGHDL/lsp/references.py
index 2adde0fed..db72865b1 100644
--- a/pyGHDL/lsp/references.py
+++ b/pyGHDL/lsp/references.py
@@ -135,12 +135,14 @@ def find_def(n, loc):
return None
+
def find_node_by_loc(n, loc):
"""Return the denoting node for :param loc: or None."""
ref = find_def(n, loc)
log.debug("for loc %u found node %s", loc, ref)
return ref
+
def find_definition_by_loc(n, loc):
"""Return the declaration (as a node) under :param loc: or None."""
ref = find_node_by_loc(n, loc)