| |
LCS-2016-015b |
| |
1 {21-Feb-2017} 2 {22-Feb-2017} 3 {14-Mar-2017} |
| |
14-Mar-2017 |
| |
Voting |
| |
Patrick Lehmann |
| |
Main.PatrickLehmann |
| |
- - - - |
| |
Get source code positions of named entities. |
package pkg is
function foo return boolean is
end package;
package body pkg is
function foo return boolean is
begin
report "foo: " & INTEGER'image(foo'LINE_NUMBER);
end function;
end package body;
This returns "foo: 6". But not report or and an expression can be used: INTEGER'image(foo'LINE_NUMBER + 2).
Version 2: FILE_NAME to FILE_PATH (full name)
FILE_NAME for the simple file name
| E'FILE_NAME | Kind: | Value |
| Prefix: | Any prefix E that denotes a named entity. | |
| Result type: | STRING. | |
| Result: | The name of the design file without the file path in which E was fully defined. | |
| E'FILE_PATH | Kind: | Value |
| Prefix: | Any prefix E that denotes a named entity. | |
| Result type: | STRING. | |
| Result: | The fully resolved absolute path without the file name of the design file in which E was fully defined. | |
| E'FILE_LINE | Kind: | Value |
| Prefix: | Any prefix E that denotes a named entity. | |
| Result type: | POSITIVE. | |
| Result: | The line number in the design file where the first lexical element of E appeared and E was fully defined. | |
E'LINE_NUMBER for an architecture declaration? Is it the end?
-- E'LINE_NUMBER for an architecture declaration? architecture appears. I fixed the text in version 2.
--