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

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

[Dotgnu-pnet-commits] CVS: pnetlib/System/CodeDom/Compiler CSharpCodeCom


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/CodeDom/Compiler CSharpCodeCompiler.cs, 1.6, 1.7 VBCodeCompiler.cs, 1.3, 1.4
Date: Tue, 02 Sep 2003 21:30:04 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler
In directory subversions:/tmp/cvs-serv18974/System/CodeDom/Compiler

Modified Files:
        CSharpCodeCompiler.cs VBCodeCompiler.cs 
Log Message:


Implement the VB code generator for CodeDom; fix some minor bugs in
the C# generator.


Index: CSharpCodeCompiler.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/CSharpCodeCompiler.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** CSharpCodeCompiler.cs       2 Sep 2003 06:50:11 -0000       1.6
--- CSharpCodeCompiler.cs       3 Sep 2003 01:30:02 -0000       1.7
***************
*** 819,823 ****
                                        
OutputAttributeDeclarations(e.CustomAttributes);
                                        
OutputMemberAccessModifier(e.Attributes);
!                                       OutputMemberScopeModifier(e.Attributes);
                                        OutputTypeNamePair(e.Type, e.Name);
                                        if(e.InitExpression != null)
--- 819,823 ----
                                        
OutputAttributeDeclarations(e.CustomAttributes);
                                        
OutputMemberAccessModifier(e.Attributes);
!                                       OutputFieldScopeModifier(e.Attributes);
                                        OutputTypeNamePair(e.Type, e.Name);
                                        if(e.InitExpression != null)
***************
*** 941,945 ****
                                        Output.Write("this[");
                                        OutputParameters(e.Parameters);
!                                       Output.Write(")");
                                }
  
--- 941,945 ----
                                        Output.Write("this[");
                                        OutputParameters(e.Parameters);
!                                       Output.Write("]");
                                }
  

Index: VBCodeCompiler.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/VBCodeCompiler.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** VBCodeCompiler.cs   2 Sep 2003 06:50:11 -0000       1.3
--- VBCodeCompiler.cs   3 Sep 2003 01:30:02 -0000       1.4
***************
*** 158,179 ****
        private String NormalizeTypeName(String type)
                        {
!                               // TODO: VB arrays use "()", not "[]".
!                               switch(type)
                                {
!                                       case "System.Boolean":  type = 
"Boolean"; break;
!                                       case "System.Char":             type = 
"Char"; break;
!                                       case "System.Byte":             type = 
"Byte"; break;
!                                       case "System.Int16":    type = "Short"; 
break;
!                                       case "System.Int32":    type = 
"Integer"; break;
[...1344 lines suppressed...]
+                                               Output.Write("Class ");
+                                       }
+                               }
+                       }
+ 
+       // Output a type name pair.
+       protected override void OutputTypeNamePair
+                               (CodeTypeReference typeRef, String name)
+                       {
+                               OutputIdentifier(name);
+                               Output.Write(" As ");
+                               OutputType(typeRef);
+                       }
+ 
        // Quote a snippet string.
        protected override String QuoteSnippetString(String value)
                        {
!                               return "\"" + value.Replace("\"", "\"\"") + 
"\"";
                        }
  





reply via email to

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