From: "Samuel T. Harris" <u61783@gsde.hou.us.ray.com>
Subject: Re: BTW:ASIS (Looking for Ada source browser
Date: Thu, 26 Apr 2001 09:26:34 -0500
Date: 2001-04-26T09:26:34-05:00 [thread overview]
Message-ID: <3AE8301A.AC7F7532@gsde.hou.us.ray.com> (raw)
In-Reply-To: 873davoimt.fsf@deneb.enyo.de
Florian Weimer wrote:
>
> Peter Hermann <ica2ph@iris16.csv.ica.uni-stuttgart.de> writes:
>
> > How far does ASIS support references to source code lines
> > and their original preservation?
>
> ASIS provides interfaces to retrieve the source code for a given
> element, but I think their implementation is optional. Whether
> comments are included is implementation-depend as well, I think.
>
> In any case, the source code has been converted to Unicode from the
> original representation.
Yes. You will need to query the asis.environment as to the support.
Specifically ...
function Is_Line_Number_Supported return Boolean;
------------------------------------------------------------------------------
-- Returns True if the implementation can return valid line numbers for
-- Elements.
--
-- An implementation may choose to ignore line number values in which case
-- this function returns False.
------------------------------------------------------------------------------
function Is_Span_Column_Position_Supported return Boolean;
------------------------------------------------------------------------------
-- Returns True if the implementation can return valid character positions for
-- elements.
--
-- An implementation may choose to ignore column character position values
-- within spans in which case this function returns False. This function will
-- be False if Is_Line_Number_Supported = False.
------------------------------------------------------------------------------
... Note that Is_Span_Column_Position_Supported is false if
Is_Line_Number_Supported is false so Is_Span_Column_Position_Supported
may be the only one you need to check if you need text spans.
As far as comments are concerned, you will also need to check ...
function Is_Commentary_Supported return Boolean;
------------------------------------------------------------------------------
-- Returns True if the implementation can return comments.
--
-- An implementation may choose to ignore comments in the text in which case
-- the function Is_Commentary_Supported returns False.
------------------------------------------------------------------------------
... in order to get the full functionality of a code browser.
--
Samuel T. Harris, Principal Engineer
Raytheon, Aerospace Engineering Services
"If you can make it, We can fake it!"
next prev parent reply other threads:[~2001-04-26 14:26 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-20 8:38 Looking for Ada source browser Joe Wheadon
2001-04-20 11:41 ` Larry Kilgallen
2001-04-20 12:54 ` Marc A. Criley
2001-04-20 17:32 ` Larry Kilgallen
2001-04-20 13:07 ` Jacob Sparre Andersen
2001-04-20 13:48 ` Ted Dennison
2001-04-20 14:26 ` Britt Snodgrass
2001-04-20 23:39 ` DuckE
2001-04-21 11:33 ` Simon Wright
2001-04-26 9:00 ` BTW:ASIS (Looking " Peter Hermann
2001-04-26 12:39 ` Marc A. Criley
2001-04-26 14:47 ` Peter Hermann
2001-04-27 14:59 ` Ira D. Baxter
2001-04-26 14:11 ` Florian Weimer
2001-04-26 14:26 ` Samuel T. Harris [this message]
2001-04-26 6:37 ` Looking " Pierre Dissaux
2001-05-01 16:57 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox