tests: error_syntax errors on `? now
[nit.git] / contrib / neo_doxygen / src / model / type_entity.nit
index e1a6af5..d8ea8c0 100644 (file)
@@ -16,6 +16,7 @@
 module model::type_entity
 
 import graph
+import linked_text
 
 # Base class of all types and signatures.
 abstract class TypeEntity
@@ -40,6 +41,31 @@ class TypeParameter
        end
 end
 
+
+# A type described by a text.
+class RawType
+       super TypeEntity
+       super LinkedText
+
+       init do
+               super
+               self.labels.add("MRawType")
+       end
+
+       redef fun create_link(rank, refid) do return new TypeLink(graph, refid)
+end
+
+# A link in a `RawType`.
+class TypeLink
+       super Link
+
+       init do
+               super
+               self.labels.add("MTypePart")
+       end
+end
+
+
 # A signature of a method.
 class Signature
        super TypeEntity