More tweaks for nullable binary operation
[mono.git] / mcs / mcs / doc.cs
index 79e915b3f1db1cb74cb7ad67d3ff2c7812e40277..8d7afc74a6ebcc125a85053aeea26acbca0d8638 100644 (file)
@@ -321,6 +321,17 @@ namespace Mono.CSharp {
                        int index = identifier.LastIndexOf ('.');
                        if (index < 0)
                                return null;
+
+                       var nsName = identifier.Substring (0, index);
+                       var typeName = identifier.Substring (index + 1);
+                       Namespace ns = ds.NamespaceEntry.NS.GetNamespace (nsName, false);
+                       ns = ns ?? mc.Compiler.GlobalRootNamespace.GetNamespace(nsName, false);
+                       if (ns != null) {
+                               var te = ns.LookupType(mc.Compiler, typeName, 0, true, mc.Location);
+                               if(te != null)
+                                       return te.Type;
+                       }
+
                        int warn;
                        TypeSpec parent = FindDocumentedType (mc, identifier.Substring (0, index), ds, cref, r);
                        if (parent == null)