From ec39e2c29dc5f627d78be3348550be1149e0e30e Mon Sep 17 00:00:00 2001
From: Patrick Lehmann <Patrick.Lehmann@plc2.de>
Date: Wed, 6 Jan 2021 13:45:58 +0100
Subject: Fixed references: Get_Is_Ref has only 1 parameter.

---
 pyGHDL/lsp/references.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'pyGHDL/lsp')

diff --git a/pyGHDL/lsp/references.py b/pyGHDL/lsp/references.py
index 65bbeead4..2725f40f2 100644
--- a/pyGHDL/lsp/references.py
+++ b/pyGHDL/lsp/references.py
@@ -63,7 +63,7 @@ def find_def(n, loc):
                 if res is not None:
                     return res
             elif attr == nodes_meta.Attr.Maybe_Ref:
-                if not nodes.Get_Is_Ref(n, f):
+                if not nodes.Get_Is_Ref(n):
                     res = find_def(nodes_meta.Get_Iir(n, f), loc)
                     if res is not None:
                         return res
-- 
cgit v1.2.3