Commit bb83ec2f by Ed Schonberg Committed by Arnaud Charlet

sem_prag.adb: (Analyze_Pragma...

2008-08-20  Ed Schonberg  <schonberg@adacore.com>

	* sem_prag.adb:
	(Analyze_Pragma, case Obsolescent): Add entity information on the pragma
	argument for ASIS and navigation use.

From-SVN: r139301
parent d42ec90c
......@@ -9063,9 +9063,11 @@ package body Sem_Prag is
if Present (Ename) then
-- If entity name matches, we are fine
-- Save entity in pragma argument, for ASIS use.
if Chars (Ename) = Chars (Ent) then
null;
Set_Entity (Ename, Ent);
Generate_Reference (Ent, Ename);
-- If entity name does not match, only possibility is an
-- enumeration literal from an enumeration type declaration.
......@@ -9083,6 +9085,8 @@ package body Sem_Prag is
"enumeration literal");
elsif Chars (Ent) = Chars (Ename) then
Set_Entity (Ename, Ent);
Generate_Reference (Ent, Ename);
exit;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment