From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e9fdaae478ceaa2e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-26 07:30:12 PST Path: newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!titan03.ksc.nasa.gov!niven.ksc.nasa.gov!usenet From: "Samuel T. Harris" Newsgroups: comp.lang.ada Subject: Re: BTW:ASIS (Looking for Ada source browser Date: Thu, 26 Apr 2001 09:26:34 -0500 Organization: Raytheon Aerospace Engineering Services Message-ID: <3AE8301A.AC7F7532@gsde.hou.us.ray.com> References: <3ADFF58E.285042FF@esa.int> <9c8o2g$a5k$1@infosun2.rus.uni-stuttgart.de> <873davoimt.fsf@deneb.enyo.de> Reply-To: samuel_t_harris@raytheon.com NNTP-Posting-Host: sstf-fw.jsc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (X11; U; IRIX64 6.2 IP19) X-Accept-Language: en Xref: newsfeed.google.com comp.lang.ada:6957 Date: 2001-04-26T09:26:34-05:00 List-Id: Florian Weimer wrote: > > Peter Hermann 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!"