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 CodeDomProvi


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/CodeDom/Compiler CodeDomProvider.cs,1.1,1.2 CodeGenerator.cs,1.2,1.3 CompilerParameters.cs,1.1,1.2 CompilerResults.cs,1.1,1.2 Executor.cs,1.1,1.2 GeneratorSupport.cs,1.1,1.2 IndentedTextWriter.cs,1.1,1.2 Makefile,1.1,1.2 TempFileCollection.cs,1.1,1.2
Date: Fri, 23 May 2003 00:46:18 -0400

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

Modified Files:
        CodeDomProvider.cs CodeGenerator.cs CompilerParameters.cs 
        CompilerResults.cs Executor.cs GeneratorSupport.cs 
        IndentedTextWriter.cs Makefile TempFileCollection.cs 
Log Message:


Improve signature-compatibility of the System.CodeDom namespace.


Index: CodeDomProvider.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/CodeDomProvider.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** CodeDomProvider.cs  16 Nov 2002 07:17:17 -0000      1.1
--- CodeDomProvider.cs  23 May 2003 04:46:15 -0000      1.2
***************
*** 3,7 ****
   *            System.CodeDom.Compiler.CodeDomProvider class.
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
--- 3,7 ----
   *            System.CodeDom.Compiler.CodeDomProvider class.
   *
!  * Copyright (C) 2002, 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 28,33 ****
  using System.ComponentModel;
  
! /*[ToolboxItem(true)] -- TODO */
! public abstract class CodeDomProvider /* : Component -- TODO */
  {
  
--- 28,33 ----
  using System.ComponentModel;
  
! [ToolboxItem(false)]
! public abstract class CodeDomProvider : Component
  {
  
***************
*** 71,74 ****
--- 71,80 ----
                        {
                                return null;
+                       }
+ 
+       // Get a type converter.
+       public virtual TypeConverter GetConverter(Type type)
+                       {
+                               return TypeDescriptor.GetConverter(type);
                        }
  

Index: CodeGenerator.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/CodeGenerator.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** CodeGenerator.cs    16 Nov 2002 07:17:17 -0000      1.2
--- CodeGenerator.cs    23 May 2003 04:46:15 -0000      1.3
***************
*** 3,7 ****
   *            System.CodeDom.Compiler.CodeGenerator class.
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
--- 3,7 ----
   *            System.CodeDom.Compiler.CodeGenerator class.
   *
!  * Copyright (C) 2002, 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 243,248 ****
        protected abstract void GenerateObjectCreateExpression
                                (CodeObjectCreateExpression e);
-       protected abstract void GenerateParameterDeclarationExpression
-                               (CodeParameterDeclarationExpression e);
        protected abstract void GeneratePropertyReferenceExpression
                                (CodePropertyReferenceExpression e);
--- 243,246 ----
***************
*** 545,548 ****
--- 543,559 ----
                        }
  
+       // Generate a parameter declaration expression.
+       protected virtual void GenerateParameterDeclarationExpression
+                               (CodeParameterDeclarationExpression e)
+                       {
+                               if(e.CustomAttributes.Count != 0)
+                               {
+                                       
OutputAttributeDeclarations(e.CustomAttributes);
+                                       Output.Write(" ");
+                               }
+                               OutputDirection(e.Direction);
+                               OutputTypeNamePair(e.Type, e.Name);
+                       }
+ 
        // Hex characters for encoding "char" constants.
        private static readonly String hexchars = "0123456789abcdef";
***************
*** 907,911 ****
  
        // Generate a particular type declaration.
!       protected void GenerateType(CodeTypeDeclaration e)
                        {
                                currentType = e;
--- 918,922 ----
  
        // Generate a particular type declaration.
!       private void GenerateType(CodeTypeDeclaration e)
                        {
                                currentType = e;
***************
*** 1286,1289 ****
--- 1297,1307 ----
                                        throw new 
ArgumentException(S._("Arg_InvalidIdentifier"));
                                }
+                       }
+ 
+       // Validate all identifiers in a CodeDom tree.
+       [TODO]
+       public static void ValidateIdentifiers(CodeObject e)
+                       {
+                               // TODO
                        }
  

Index: CompilerParameters.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/CompilerParameters.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** CompilerParameters.cs       15 Nov 2002 07:46:56 -0000      1.1
--- CompilerParameters.cs       23 May 2003 04:46:16 -0000      1.2
***************
*** 3,7 ****
   *            System.CodeDom.Compiler.CompilerParameters class.
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
--- 3,7 ----
   *            System.CodeDom.Compiler.CompilerParameters class.
   *
!  * Copyright (C) 2002, 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 27,32 ****
  using System.Collections.Specialized;
  using System.Runtime.InteropServices;
  
! [ComVisible(true)]
  public class CompilerParameters
  {
--- 27,33 ----
  using System.Collections.Specialized;
  using System.Runtime.InteropServices;
+ using System.Security.Policy;
  
! [ComVisible(false)]
  public class CompilerParameters
  {
***************
*** 36,39 ****
--- 37,41 ----
        private bool includeDebugInformation;
        private String compilerOptions;
+       private Evidence evidence;
        private bool generateExecutable;
        private bool generateInMemory;
***************
*** 83,86 ****
--- 85,99 ----
                                {
                                        compilerOptions = value;
+                               }
+                       }
+       public Evidence Evidence
+                       {
+                               get
+                               {
+                                       return evidence;
+                               }
+                               set
+                               {
+                                       evidence = value;
                                }
                        }

Index: CompilerResults.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/CompilerResults.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** CompilerResults.cs  15 Nov 2002 07:46:56 -0000      1.1
--- CompilerResults.cs  23 May 2003 04:46:16 -0000      1.2
***************
*** 27,30 ****
--- 27,31 ----
  using System.Collections.Specialized;
  using System.Reflection;
+ using System.Security.Policy;
  
  public class CompilerResults
***************
*** 34,37 ****
--- 35,39 ----
        private Assembly compiledAssembly;
        private CompilerErrorCollection errors;
+       private Evidence evidence;
        private int nativeCompilerReturnValue;
        private StringCollection output;
***************
*** 65,68 ****
--- 67,81 ----
                                        }
                                        return errors;
+                               }
+                       }
+       public Evidence Evidence
+                       {
+                               get
+                               {
+                                       return evidence;
+                               }
+                               set
+                               {
+                                       evidence = value;
                                }
                        }

Index: Executor.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/Executor.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Executor.cs 15 Nov 2002 07:46:56 -0000      1.1
--- Executor.cs 23 May 2003 04:46:16 -0000      1.2
***************
*** 3,7 ****
   *            System.CodeDom.Compiler.Executor class.
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
--- 3,7 ----
   *            System.CodeDom.Compiler.Executor class.
   *
!  * Copyright (C) 2002, 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 27,30 ****
--- 27,32 ----
  public sealed class Executor
  {
+       // Cannot instantiate this class.
+       private Executor() {}
  
        // Execute the compiler and wait for it to return.

Index: GeneratorSupport.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/GeneratorSupport.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** GeneratorSupport.cs 15 Nov 2002 07:46:56 -0000      1.1
--- GeneratorSupport.cs 23 May 2003 04:46:16 -0000      1.2
***************
*** 31,36 ****
        EntryPointMethod            = 0x00000002,
        GotoStatements              = 0x00000004,
-       [Obsolete("Use GotoStatements instead")]
-       GotoStatments               = 0x00000004,
        MultidimensionalArrays      = 0x00000008,
        StaticConstructors          = 0x00000010,
--- 31,34 ----

Index: IndentedTextWriter.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/IndentedTextWriter.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** IndentedTextWriter.cs       15 Nov 2002 07:46:56 -0000      1.1
--- IndentedTextWriter.cs       23 May 2003 04:46:16 -0000      1.2
***************
*** 117,121 ****
  
        // Output tabs at the start of a line if necessary.
!       protected void OutputTabs()
                        {
                                if(atLineStart)
--- 117,121 ----
  
        // Output tabs at the start of a line if necessary.
!       protected virtual void OutputTabs()
                        {
                                if(atLineStart)
***************
*** 187,196 ****
                                writer.Write(value, arg0, arg1);
                        }
-       public override void Write(String value, Object arg0, Object arg1,
-                                                          Object arg2)
-                       {
-                               OutputTabs();
-                               writer.Write(value, arg0, arg1, arg2);
-                       }
        public override void Write(String value, params Object[] args)
                        {
--- 187,190 ----
***************
*** 203,223 ****
                                writer.Write(value, index, count);
                        }
-       public override void Write(Decimal value)
-                       {
-                               OutputTabs();
-                               writer.Write(value);
-                       }
-       [CLSCompliant(false)]
-       public override void Write(uint value)
-                       {
-                               OutputTabs();
-                               writer.Write(value);
-                       }
-       [CLSCompliant(false)]
-       public override void Write(ulong value)
-                       {
-                               OutputTabs();
-                               writer.Write(value);
-                       }
  
        // Write values of various types followed by a newline.
--- 197,200 ----
***************
*** 294,304 ****
                                atLineStart = true;
                        }
-       public override void WriteLine(String value, Object arg0, Object arg1,
-                                                                  Object arg2)
-                       {
-                               OutputTabs();
-                               writer.WriteLine(value, arg0, arg1, arg2);
-                               atLineStart = true;
-                       }
        public override void WriteLine(String value, params Object[] args)
                        {
--- 271,274 ----
***************
*** 313,331 ****
                                atLineStart = true;
                        }
-       public override void WriteLine(Decimal value)
-                       {
-                               OutputTabs();
-                               writer.WriteLine(value);
-                               atLineStart = true;
-                       }
        [CLSCompliant(false)]
        public override void WriteLine(uint value)
-                       {
-                               OutputTabs();
-                               writer.WriteLine(value);
-                               atLineStart = true;
-                       }
-       [CLSCompliant(false)]
-       public override void WriteLine(ulong value)
                        {
                                OutputTabs();
--- 283,288 ----

Index: Makefile
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Makefile    15 Nov 2002 07:46:56 -0000      1.1
--- Makefile    23 May 2003 04:46:16 -0000      1.2
***************
*** 2,3 ****
--- 2,4 ----
  all:
        (cd ../..;make)
+       (cd ../..;make phase-two)

Index: TempFileCollection.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Compiler/TempFileCollection.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** TempFileCollection.cs       15 Nov 2002 07:46:56 -0000      1.1
--- TempFileCollection.cs       23 May 2003 04:46:16 -0000      1.2
***************
*** 50,53 ****
--- 50,59 ----
                        }
  
+       // Get an enumerator for this collection.
+       public IEnumerator GetEnumerator()
+                       {
+                               return files.Keys.GetEnumerator();
+                       }
+ 
        // Properties.
        [TODO]
***************
*** 60,63 ****
--- 66,76 ----
                                }
                        }
+       public int Count
+                       {
+                               get
+                               {
+                                       return files.Count;
+                               }
+                       }
        public bool KeepFiles
                        {
***************
*** 87,91 ****
  
        // Implement the ICollection interface.
!       public int Count
                        {
                                get
--- 100,104 ----
  
        // Implement the ICollection interface.
!       int ICollection.Count
                        {
                                get
***************
*** 114,118 ****
  
        // Implement the IEnumerable interface.
!       public IEnumerator GetEnumerator()
                        {
                                return files.Keys.GetEnumerator();
--- 127,131 ----
  
        // Implement the IEnumerable interface.
!       IEnumerator IEnumerable.GetEnumerator()
                        {
                                return files.Keys.GetEnumerator();





reply via email to

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