Author: manjula
Date: 2005-04-13 06:37:15 -0400 (Wed, 13 Apr 2005)
New Revision: 42899

Modified:
   trunk/mcs/mbas/ChangeLog
   trunk/mcs/mbas/expression.cs
Log:
To support  'Or' argument of AttributeTargets in AttributeUsage


Modified: trunk/mcs/mbas/ChangeLog
===================================================================
--- trunk/mcs/mbas/ChangeLog    2005-04-13 10:21:45 UTC (rev 42898)
+++ trunk/mcs/mbas/ChangeLog    2005-04-13 10:37:15 UTC (rev 42899)
@@ -1,3 +1,5 @@
+2005-04-13 Manjula GHM <[EMAIL PROTECTED]>
+       * expression.cs : To support  'Or' argument of AttributeTargets in 
AttributeUsage
 2005-04-12 Satya Sudha K <[EMAIL PROTECTED]>
        * statement.cs :
                Introduced a class 'StatementSequence', to translate a 
late-binding call to a block of statements

Modified: trunk/mcs/mbas/expression.cs
===================================================================
--- trunk/mcs/mbas/expression.cs        2005-04-13 10:21:45 UTC (rev 42898)
+++ trunk/mcs/mbas/expression.cs        2005-04-13 10:37:15 UTC (rev 42899)
@@ -2628,12 +2628,14 @@
                                        right + ") at Line: "+ loc.Row);
 
                        eclass = ExprClass.Value;
+                       
+                       // To support  'Or' argument of AttributeTargets in 
AttributeUsage
 
-                       if (left is EnumConstant) {
+                       if (left is EnumConstant && oper != Operator.BitwiseOr) 
{
                                left = ((EnumConstant) 
left).WidenToCompilerConstant();
                        }
 
-                       if (right is EnumConstant) {
+                       if (right is EnumConstant && oper != 
Operator.BitwiseOr) {
                                right = ((EnumConstant) 
right).WidenToCompilerConstant();
                        }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to