aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/lsp
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/lsp')
-rw-r--r--pyGHDL/lsp/document.py2
-rw-r--r--pyGHDL/lsp/workspace.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/pyGHDL/lsp/document.py b/pyGHDL/lsp/document.py
index 7935e980e..a6f9ae217 100644
--- a/pyGHDL/lsp/document.py
+++ b/pyGHDL/lsp/document.py
@@ -167,7 +167,7 @@ class Document(object):
unit = nodes.Get_First_Design_Unit(self._tree)
while unit != nodes.Null_Iir:
sem.Semantic(unit)
- nodes.Set_Date_State(unit, nodes.Date_State.Analyze)
+ nodes.Set_Date_State(unit, nodes.DateStateType.Analyze)
unit = nodes.Get_Chain(unit)
def flatten_symbols(self, syms, parent):
diff --git a/pyGHDL/lsp/workspace.py b/pyGHDL/lsp/workspace.py
index db2a6fb12..bef20a872 100644
--- a/pyGHDL/lsp/workspace.py
+++ b/pyGHDL/lsp/workspace.py
@@ -301,11 +301,11 @@ class Workspace(object):
)
# Recurse
self.obsolete_dependent_units(un, antideps)
- if nodes.Get_Date_State(un) == nodes.Date_State.Disk:
+ if nodes.Get_Date_State(un) == nodes.DateStateType.Disk:
# Already obsolete!
continue
# FIXME: just de-analyze ?
- nodes.Set_Date_State(un, nodes.Date_State.Disk)
+ nodes.Set_Date_State(un, nodes.DateStateType.Disk)
sem_lib.Free_Dependence_List(un)
loc = nodes.Get_Location(un)
fil = files_map.Location_To_File(loc)
@@ -480,7 +480,7 @@ class Workspace(object):
while files != nodes.Null_Iir:
units = nodes.Get_First_Design_Unit(files)
while units != nodes.Null_Iir:
- if nodes.Get_Date_State(units) == nodes.Date_State.Analyze:
+ if nodes.Get_Date_State(units) == nodes.DateStateType.Analyze:
# The unit has been analyzed, so the dependencies are know.
deps = nodes.Get_Dependence_List(units)
assert deps != nodes.Null_Iir_List