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_oper.tc,1.38,1.39 cs_loo


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_oper.tc,1.38,1.39 cs_lookup.c,1.25,1.26
Date: Wed, 07 May 2003 01:58:24 -0400

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

Modified Files:
        cs_oper.tc cs_lookup.c 
Log Message:
CSResolveSimpleName does not look for Members inside atribute args


Index: cs_oper.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_oper.tc,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -r1.38 -r1.39
*** cs_oper.tc  9 Mar 2003 08:23:20 -0000       1.38
--- cs_oper.tc  7 May 2003 05:58:21 -0000       1.39
***************
*** 1385,1388 ****
--- 1385,1390 ----
        ILNode_TypeOf *typeofNode;
  
+       info->inAttrArg=1;
+ 
        /* Special case: types can be used as attribute constants */
        if(yyisa(node->expr, ILNode_TypeOf))
***************
*** 1439,1442 ****
--- 1441,1446 ----
                }
        }
+ 
+       info->inAttrArg=0;
  
        /* Return the semantic information to the caller */

Index: cs_lookup.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_lookup.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** cs_lookup.c 1 May 2003 22:57:17 -0000       1.25
--- cs_lookup.c 7 May 2003 05:58:21 -0000       1.26
***************
*** 1218,1222 ****
  
        /* Scan the start type and its nested parents */
!       while(startType != 0)
        {
                /* Resolve cross-image references */
--- 1218,1224 ----
  
        /* Scan the start type and its nested parents */
!       /* Note: do not lookup class members while resolving the simple names
!        * inside an attribute argument */
!       while(startType != 0 && !genInfo->inAttrArg)
        {
                /* Resolve cross-image references */





reply via email to

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