aboutsummaryrefslogtreecommitdiffstats
path: root/src/files_map.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2018-12-12 18:23:58 +0100
committerTristan Gingold <tgingold@free.fr>2018-12-12 18:23:58 +0100
commitccf8b3bf2854641388619e68325998b9ddd229de (patch)
treea45395387f2a9ac26e542c91c6ea51fa57eff50a /src/files_map.ads
parent85c222d979afd8077568b0c2de4eb922bf34efd2 (diff)
downloadghdl-ccf8b3bf2854641388619e68325998b9ddd229de.tar.gz
ghdl-ccf8b3bf2854641388619e68325998b9ddd229de.tar.bz2
ghdl-ccf8b3bf2854641388619e68325998b9ddd229de.zip
Add Location_File_Line_To_Offset.
Diffstat (limited to 'src/files_map.ads')
-rw-r--r--src/files_map.ads5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/files_map.ads b/src/files_map.ads
index d2f2a0a4d..17b1d033c 100644
--- a/src/files_map.ads
+++ b/src/files_map.ads
@@ -156,6 +156,11 @@ package Files_Map is
function Location_File_To_Line
(Location : Location_Type; File : Source_File_Entry) return Positive;
+ -- Get the offset in the line LINE of LOC.
+ function Location_File_Line_To_Offset
+ (Loc : Location_Type; File : Source_File_Entry; Line : Positive)
+ return Natural;
+
-- Get logical column (with HT expanded) from LOC, FILE and LINE.
function Location_File_Line_To_Col
(Loc : Location_Type; File : Source_File_Entry; Line : Positive)