2004-09-09 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / mcs / gen-treedump.cs
index 531639ce65f8a9a69fc9b54d9b0c4f3c0ad4857a..a4dbf328ae9e54c6c4f9060128bc341fa0ad7ce2 100755 (executable)
@@ -81,22 +81,22 @@ namespace Generator {
                        int prec = 0;
                        
                        switch (u.Oper){
-                       case Unary.Operator.Add:
+                       case Unary.Operator.UnaryPlus:
                                prec = 10;
                                s = "+";
                                break;
                                
-                       case Unary.Operator.Subtract:
+                       case Unary.Operator.UnaryNegation:
                                prec = 10;
                                s = "-";
                                break;
                                
-                       case Unary.Operator.Negate:
+                       case Unary.Operator.LogicalNot:
                                s = "!";
                                prec = 10;
                                break;
                                
-                       case Unary.Operator.BitComplement:
+                       case Unary.Operator.OnesComplement:
                                prec = 10;
                                s = "~";
                                break;
@@ -263,7 +263,7 @@ namespace Generator {
                                for (int i = 0; i < top; i++){
                                        Argument arg = (Argument) args [i];
                                                
-                                       switch (arg.Type){
+                                       switch (arg.ArgType){
                                                case Argument.AType.Ref:
                                                        r += "ref "; break;
                                                case Argument.AType.Out:
@@ -448,12 +448,12 @@ namespace Generator {
                void GenerateFor (For s)
                {
                        output ("for (");
-                       if (! (s.InitStatement is EmptyStatement))
+                       if (! (s.InitStatement == EmptyStatement.Value))
                                GenerateStatement (s.InitStatement, true, true, true);
                        output ("; ");
                        output (GetExpression (s.Test, 0));
                        output ("; ");
-                       if (! (s.Increment is EmptyStatement))
+                       if (! (s.Increment == EmptyStatement.Value))
                                GenerateStatement (s.Increment, true, true, true);
                        output (") ");
                        GenerateStatement (s.Statement, true, true, false);
@@ -589,7 +589,7 @@ namespace Generator {
                                output_newline ("break;");
                        else if (s is Continue)
                                output_newline ("continue;");
-                       else if (s is EmptyStatement)
+                       else if (s == EmptyStatement.Value)
                                output_newline ("/* empty statement */;");
                        else if (s is Block)
                                GenerateBlock ((Block) s, doPlacement, embedded);
@@ -898,7 +898,7 @@ namespace Generator {
                string ClassName (string name)
                {
                        return name;
-                       //return name.Substring (1 + name.LastIndexOf ("."));
+                       //return name.Substring (1 + name.LastIndexOf ('.'));
                }
 
                string GenBases (ArrayList bases)