New tests.
[mono.git] / mcs / class / System / System.CodeDom / CodeMemberMethod.cs
old mode 100755 (executable)
new mode 100644 (file)
index 8010d9c..9ef0707
@@ -41,11 +41,13 @@ namespace System.CodeDom
        {
                private CodeTypeReferenceCollection implementationTypes;
                private CodeParameterDeclarationExpressionCollection parameters;
-               private CodeTypeReference privateImplementationType;
+               private CodeTypeReference privateImplements;
                private CodeTypeReference returnType;
                private CodeStatementCollection statements;
-               private CodeAttributeDeclarationCollection returnTypeCustomAttributes;
+               private CodeAttributeDeclarationCollection returnAttributes;
+               //int populated;
 
+               CodeTypeParameterCollection typeParameters;
                //
                // Constructors
                //
@@ -80,17 +82,17 @@ namespace System.CodeDom
 
                public CodeTypeReference PrivateImplementationType {
                        get {
-                               return privateImplementationType;
+                               return privateImplements;
                        }
                        set {
-                               privateImplementationType = value;
+                               privateImplements = value;
                        }
                }
 
                public CodeTypeReference ReturnType {
                        get {
                                if ( returnType == null )
-                                       return new CodeTypeReference( typeof(void) );
+                                       return new CodeTypeReference (typeof (void));
                                return returnType;
                        }
                        set {
@@ -111,10 +113,19 @@ namespace System.CodeDom
 
                public CodeAttributeDeclarationCollection ReturnTypeCustomAttributes {
                        get {
-                               if ( returnTypeCustomAttributes == null )
-                                       returnTypeCustomAttributes = new CodeAttributeDeclarationCollection();
+                               if ( returnAttributes == null )
+                                       returnAttributes = new CodeAttributeDeclarationCollection();
                                
-                               return returnTypeCustomAttributes;
+                               return returnAttributes;
+                       }
+               }
+
+               [ComVisible (false)]
+               public CodeTypeParameterCollection TypeParameters {
+                       get {
+                               if (typeParameters == null)
+                                       typeParameters = new CodeTypeParameterCollection ();
+                               return typeParameters;
                        }
                }
 
@@ -126,5 +137,13 @@ namespace System.CodeDom
                public event EventHandler PopulateParameters;
 
                public event EventHandler PopulateStatements;
+
+               //
+               // ICodeDomVisitor method
+               //
+               internal override void Accept (ICodeDomVisitor visitor)
+               {
+                       visitor.Visit (this);
+               }
        }
 }