!ASIS Issue #060 !topic Text/String images for labels !reference ASIS 95-15.2, 20.22, 3.11.3 !from Sergey Rybin !keywords A_Defining_Identifier, label, Defining_Name_Image,Element_Image !discussion In ASIS, statement labels are represented by Elements of A_Defining_Identifier kind. The question is - what would be better to return for A_Defining_Identifier Element representing a label as a String/Text image of such an Element - Label_Identifier or <>? I think, in the current ASIS definition the documentation of the queries Asis.Declarations.Defining_Name_Image and Asis.Text.Element_Image does not give the direct answer, and some clarification comments should be added for the case of labels. I would say, that now the ASIS definition gives more justification for choosing the first alternative (that is, without "<< >>", but another question is which alternative is better for applications? The second one gives the possibility to make the difference between <> and << Label_Identifier >> or even << -- some crazy comment Label_Identifier -- another crazy comment >> Note, that the current ASIS definition does not give any ability to get the location of "<<" and ">>" for labels. (More accurate, "<<" can be located as the span beginning of labeled statement, but this is true for the first statement only). !resolution Accepted. !date 97-03-26 !Notes To the commentary of Subclause 15.2, Defining_Name_Image, the following commentary has been added: -- The Defining_Name_Image of a label_statement_identifier does not include -- the enclosing "<<" and ">>" that form the label syntax. Similarly, the -- Defining_Name_Image of an identifier for a loop_statement or block_statement -- does not include the trailing colon that forms the loop name syntax. -- Use Asis.Text.Element_Image or Asis.Text.Lines queries to obtain these -- syntactic constructs and any comments associated with them. Changes were made to ASIS version 2.0.M.