dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_grammar.y,1.36,1.37


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_grammar.y,1.36,1.37
Date: Sat, 16 Nov 2002 04:44:16 -0500

Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv9797/cscc/csharp

Modified Files:
        cs_grammar.y 
Log Message:
Fix a minor bug my "using" code


Index: cs_grammar.y
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_grammar.y,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -r1.36 -r1.37
*** cs_grammar.y        15 Nov 2002 20:26:27 -0000      1.36
--- cs_grammar.y        16 Nov 2002 09:44:14 -0000      1.37
***************
*** 1042,1045 ****
--- 1042,1046 ----
        : OptAttributes NAMESPACE NamespaceIdentifier {
                                int posn, len;
+                               ILScope *oldLocalScope;
                                posn = 0;
                                while(posn < $3.len)
***************
*** 1074,1080 ****
--- 1075,1089 ----
                                        /* Create the namespace node */
                                        InitGlobalNamespace();
+                                       
+                                       oldLocalScope=LocalScope();
+                                       
                                        CurrNamespaceNode = (ILNode_Namespace *)
                                                
ILNode_Namespace_create(CurrNamespace.string,
                                                                                
                CurrNamespaceNode);
+ 
+                                       /* Preserve compilation unit specific 
local scopes 
+                                        * or maybe I need to create a new 
scope as child of
+                                        * this scope (fix when I find a test 
case) */
+                                       
CurrNamespaceNode->localScope=oldLocalScope;
  
                                        /* Declare the namespace within the 
global scope */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]