* ILParser.jay: Resolve other modules global 'type'.
authorJackson Harper <jackson@novell.com>
Sat, 19 Jun 2004 16:43:00 +0000 (16:43 -0000)
committerJackson Harper <jackson@novell.com>
Sat, 19 Jun 2004 16:43:00 +0000 (16:43 -0000)
svn path=/trunk/mcs/; revision=29949

mcs/ilasm/parser/ChangeLog
mcs/ilasm/parser/ILParser.jay

index a1e4ee6ef736adfeba163ae9bcab751638e5ca6d..b1b55cce46cc9d217ab98f519ed482f17a02c5df 100644 (file)
@@ -1,3 +1,7 @@
+2004-06-19  Jackson Harper  <jackson@ximian.com>
+
+       * ILParser.jay: Resolve other modules global 'type'.
+       
 2004-06-14  Jackson Harper  <jackson@ximian.com>
 
        * ILParser.jay: Add file refs.
index 80f9babb1ad1dc46deea2ee1d59ce71ae76043b0..7da546323d355c1d0440f5aabe120a8e7a6b2212 100644 (file)
@@ -1768,6 +1768,13 @@ type_spec                : class_ref
                           }\r
                        | OPEN_BRACKET D_MODULE slashed_name CLOSE_BRACKET\r
                           {\r
+                                string module = (string) $3;\r
+\r
+                                if (codegen.IsThisModule (module)) {\r
+                                    // This is not handled yet.\r
+                                } else {\r
+                                    $$ = codegen.ExternTable.GetModuleTypeRef ((string) $3, "<Module>", false);\r
+                                }\r
 \r
                           }\r
                        | type\r