Author: marek
Date: 2005-11-04 10:06:29 -0500 (Fri, 04 Nov 2005)
New Revision: 52577

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/statement.cs
Log:
2005-11-04  Marek Safar  <[EMAIL PROTECTED]>

    * statement.cs (Block.variables): Uses ListDictionary.

Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2005-11-04 14:14:45 UTC (rev 52576)
+++ trunk/mcs/mcs/ChangeLog     2005-11-04 15:06:29 UTC (rev 52577)
@@ -1,3 +1,7 @@
+2005-11-04  Marek Safar  <[EMAIL PROTECTED]>
+
+    * statement.cs (Block.variables): Uses ListDictionary.
+
 2005-11-03  Marek Safar  <[EMAIL PROTECTED]>
 
        Fix #75969.

Modified: trunk/mcs/mcs/statement.cs
===================================================================
--- trunk/mcs/mcs/statement.cs  2005-11-04 14:14:45 UTC (rev 52576)
+++ trunk/mcs/mcs/statement.cs  2005-11-04 15:06:29 UTC (rev 52577)
@@ -1239,7 +1239,7 @@
                //
                // Keeps track of (name, type) pairs
                //
-               Hashtable variables;
+               IDictionary variables;
 
                //
                // Keeps track of constants
@@ -1309,10 +1309,10 @@
                        get { return this_id; }
                }
 
-               protected Hashtable Variables {
+               protected IDictionary Variables {
                        get {
                                if (variables == null)
-                                       variables = new Hashtable ();
+                                       variables = new ListDictionary ();
                                return variables;
                        }
                }
@@ -1615,15 +1615,6 @@
                        return null;
                }
                
-               /// <summary>
-               ///   True if the variable named @name is a constant
-               ///  </summary>
-               public bool IsConstant (string name)
-               {
-                       Expression e = GetConstantExpression (name);
-                       return e != null;
-               }
-
                public void AddStatement (Statement s)
                {
                        statements.Add (s);

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

Reply via email to