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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d4a99b2a2a2899b7,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!newsread.com!newsstand.newsread.com!POSTED.monger.newsread.com!not-for-mail Newsgroups: comp.lang.ada Subject: ASIS Question: Looking up procedure names. From: "Peter C. Chapin" Message-ID: User-Agent: Xnews/5.04.25 Date: Sat, 07 May 2005 20:10:46 GMT NNTP-Posting-Host: 216.114.165.7 X-Complaints-To: Abuse Role , We Care X-Trace: monger.newsread.com 1115496646 216.114.165.7 (Sat, 07 May 2005 16:10:46 EDT) NNTP-Posting-Date: Sat, 07 May 2005 16:10:46 EDT Organization: SoVerNet (sover.net) Xref: g2news1.google.com comp.lang.ada:10947 Date: 2005-05-07T20:10:46+00:00 List-Id: Hi! I'm writing an ASIS program and I've encountered a problem that I'm having trouble figuring out. I have an element that I know is a procedure call statement. What I'm looking for is the full name of the procedure, including package membership. So for example with Ada.Text_IO; use Ada.Text_IO; procedure Hello is begin Put_Line("Hello, World"); end Hello; When looking at the Put_Line procedure call statement, I want to get the name "Ada.Text_IO.Put_Line." Is this possible? Starting with the procedure call statement, I can use Corresponding_Called_Entity to get the procedure declaration. I can then use Names to get a list of defining names for that declaration (wouldn't there always be only one such name for procedure declarations?). I can then convert the first name on this list to program text using Defining_Name_Image. However, the name returned in this case is just 'Put_Line' and not 'Ada.Text_IO.Put_Line' as desired. I see in Asis.Declarations the function Defining_Prefix that takes A_Defining_Expanded_Name and returns the prefix. So that tells me what I need is a way to get A_Defining_Expanded_Name from my procedure call statement. This is where I'm stuck. TIA Peter