aboutsummaryrefslogtreecommitdiffstats
path: root/disp_tree.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2014-07-17 20:34:57 +0200
committerTristan Gingold <tgingold@free.fr>2014-07-17 20:34:57 +0200
commitcaba1d1b21d9756ede50f40d53fbc816d3b84320 (patch)
treeee0b8459472a8e7aba4ab7465bc46c74be56cd33 /disp_tree.adb
parent1bc00453a725214de4964add2b7f8423d1a5d2da (diff)
downloadghdl-caba1d1b21d9756ede50f40d53fbc816d3b84320.tar.gz
ghdl-caba1d1b21d9756ede50f40d53fbc816d3b84320.tar.bz2
ghdl-caba1d1b21d9756ede50f40d53fbc816d3b84320.zip
vhdl 2008: visibility, more implicit subprograms, alias...
Use Type_Definition in type_declarator.
Diffstat (limited to 'disp_tree.adb')
-rw-r--r--disp_tree.adb15
1 files changed, 11 insertions, 4 deletions
diff --git a/disp_tree.adb b/disp_tree.adb
index a14030bf7..c02951977 100644
--- a/disp_tree.adb
+++ b/disp_tree.adb
@@ -1009,21 +1009,28 @@ package body Disp_Tree is
Disp_Tree (Get_File_Open_Kind (Tree), Ntab);
Header ("attribute_value_chain:");
Disp_Tree_Flat_Chain (Get_Attribute_Value_Chain (Tree), Ntab);
- when Iir_Kind_Type_Declaration
- | Iir_Kind_Subtype_Declaration =>
+ when Iir_Kind_Type_Declaration =>
if Flat_Decl then
return;
end if;
Header ("type (definition):");
- Disp_Tree (Get_Type (Tree), Ntab);
+ Disp_Tree (Get_Type_Definition (Tree), Ntab);
Header ("attribute_value_chain:");
Disp_Tree_Flat_Chain (Get_Attribute_Value_Chain (Tree), Ntab);
when Iir_Kind_Anonymous_Type_Declaration =>
if Flat_Decl then
return;
end if;
- Header ("type (definition):");
+ Header ("type definition:");
+ Disp_Tree (Get_Type_Definition (Tree), Ntab);
+ when Iir_Kind_Subtype_Declaration =>
+ if Flat_Decl then
+ return;
+ end if;
+ Header ("subtype indication:");
Disp_Tree (Get_Type (Tree), Ntab);
+ Header ("attribute_value_chain:");
+ Disp_Tree_Flat_Chain (Get_Attribute_Value_Chain (Tree), Ntab);
when Iir_Kind_Nature_Declaration
| Iir_Kind_Subnature_Declaration =>
if Flat_Decl then