In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
[mono.git] / mcs / class / System / System.CodeDom / CodeTypeReferenceExpression.cs
index 4e6f38b8a264b4df49c37db27598f53d91486bc5..ea71c9d75dbfc1f065b82afbb230cf0321cd1429 100644 (file)
@@ -45,7 +45,6 @@ namespace System.CodeDom
                //
                public CodeTypeReferenceExpression ()
                {
-                       type = new CodeTypeReference ("System.Void");
                }
 
                public CodeTypeReferenceExpression (CodeTypeReference type)
@@ -68,11 +67,22 @@ namespace System.CodeDom
                //
                public CodeTypeReference Type {
                        get {
+                               if (type == null) {
+                                       return new CodeTypeReference (string.Empty);
+                               }
                                return type;
                        }
                        set {
                                type = value;
                        }
                }
+
+               //
+               // ICodeDomVisitor method
+               //
+               internal override void Accept (ICodeDomVisitor visitor)
+               {
+                       visitor.Visit (this);
+               }
        }
 }