aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/files_map.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/libghdl/files_map.py')
-rw-r--r--pyGHDL/libghdl/files_map.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/pyGHDL/libghdl/files_map.py b/pyGHDL/libghdl/files_map.py
index 7e2ae0abc..ceda483c5 100644
--- a/pyGHDL/libghdl/files_map.py
+++ b/pyGHDL/libghdl/files_map.py
@@ -87,7 +87,9 @@ def Location_File_To_Line(Location: Location_Type, File: SourceFileEntry) -> int
@export
@BindToLibGHDL("files_map__location_file_line_to_offset")
-def Location_File_Line_To_Offset(Location: Location_Type, File: SourceFileEntry, Line: int) -> int:
+def Location_File_Line_To_Offset(
+ Location: Location_Type, File: SourceFileEntry, Line: int
+) -> int:
"""
Get the offset in :obj:`Line` of :obj:`Location`.
@@ -100,7 +102,9 @@ def Location_File_Line_To_Offset(Location: Location_Type, File: SourceFileEntry,
@export
@BindToLibGHDL("files_map__location_file_line_to_col")
-def Location_File_Line_To_Col(Location: Location_Type, File: SourceFileEntry, Line: int) -> int:
+def Location_File_Line_To_Col(
+ Location: Location_Type, File: SourceFileEntry, Line: int
+) -> int:
"""
Get logical column (with HT expanded) from :obj:`Location`, :obj:`File` and
:obj:`Line`.
@@ -219,7 +223,9 @@ def Read_Source_File(Directory: NameId, Name: NameId) -> SourceFileEntry:
@export
@BindToLibGHDL("files_map__reserve_source_file")
-def Reserve_Source_File(Directory: NameId, Name: NameId, Length: int) -> SourceFileEntry:
+def Reserve_Source_File(
+ Directory: NameId, Name: NameId, Length: int
+) -> SourceFileEntry:
"""
Reserve an entry, but do not read any file.