aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compilador/astree/decl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/compilador/astree/decl.py b/compilador/astree/decl.py
index 8a316cd..058d2b3 100644
--- a/compilador/astree/decl.py
+++ b/compilador/astree/decl.py
@@ -40,6 +40,9 @@ class DeclGlobal(Graphable):
name_ident = uuid.uuid1().hex
dot.node(name_ident, self.ident)
dot.edge(name, name_ident, label = 'ident')
+ name_type = uuid.uuid1().hex
+ dot.node(name_type, self._type.value.value)
+ dot.edge(name, name_type, label = 'type')
if isinstance(self.init, Graphable):
self.init.graph(dot, name, 'init')