diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-06-18 06:44:00 +0200 |
---|---|---|
committer | Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> | 2021-06-18 17:34:47 +0100 |
commit | 05755b53e1d723ff4d2c9de79c61badd42491b13 (patch) | |
tree | 71e4181ebf333ded767bb1481b19a176bf61c566 /pyGHDL/lsp/workspace.py | |
parent | d8917e7cb2579b4e26c41610692fcc9a169350c0 (diff) | |
download | ghdl-05755b53e1d723ff4d2c9de79c61badd42491b13.tar.gz ghdl-05755b53e1d723ff4d2c9de79c61badd42491b13.tar.bz2 ghdl-05755b53e1d723ff4d2c9de79c61badd42491b13.zip |
pyGHDL: automatically add type annotations for nodes.py
Add missing types in _types.py, adjust lsp
Diffstat (limited to 'pyGHDL/lsp/workspace.py')
-rw-r--r-- | pyGHDL/lsp/workspace.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |