aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2022-06-04 20:44:57 +0200
committerTristan Gingold <tgingold@free.fr>2022-06-04 20:44:57 +0200
commit58fce267c29f44ccec558ef23b499f1b2917861b (patch)
tree9567be6aa22c780c5f99393001aa4e4932bf7759 /pyGHDL
parent89afd0cc5a3b36f185c62c9f183066133631910e (diff)
downloadghdl-58fce267c29f44ccec558ef23b499f1b2917861b.tar.gz
ghdl-58fce267c29f44ccec558ef23b499f1b2917861b.tar.bz2
ghdl-58fce267c29f44ccec558ef23b499f1b2917861b.zip
pyGHDL/lsp: reformat
Diffstat (limited to 'pyGHDL')
-rw-r--r--pyGHDL/lsp/references.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pyGHDL/lsp/references.py b/pyGHDL/lsp/references.py
index d83930355..e99f473c2 100644
--- a/pyGHDL/lsp/references.py
+++ b/pyGHDL/lsp/references.py
@@ -76,9 +76,7 @@ def find_def(n, loc):
return res
elif typ == nodes_meta.types.Iir_Flist:
attr = nodes_meta.get_field_attribute(f)
- if (attr == nodes_meta.Attr.ANone
- or (attr == nodes_meta.Attr.Of_Maybe_Ref
- and not nodes.Get_Is_Ref(n))):
+ if attr == nodes_meta.Attr.ANone or (attr == nodes_meta.Attr.Of_Maybe_Ref and not nodes.Get_Is_Ref(n)):
for n1 in pyutils.flist_iter(nodes_meta.Get_Iir_Flist(n, f)):
res = find_def(n1, loc)
if res is not None: