From 036d53c3e1da558a91567fadcabe1c468515bfdd Mon Sep 17 00:00:00 2001
From: pycsham <shampuiyanchloe@gmail.com>
Date: Fri, 6 Mar 2020 23:54:33 -0500
Subject: [PATCH] Added a type linking from string literals to the string
 object

---
 UnitNodes.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/UnitNodes.py b/UnitNodes.py
index 7742cff..5a19d39 100644
--- a/UnitNodes.py
+++ b/UnitNodes.py
@@ -34,6 +34,11 @@ class LiteralNode(ASTNode):
                 self.value = False
             else:
                 self.value = True
+    
+    def linkType(self):
+        if self.name == "java.lang.String":
+            node = self.env.getNode(self.name, "type")
+            self.myType = TypeStruct(self.name, node)
 
 ##################################################################################
 # param type ID
-- 
GitLab