In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
[mono.git] / mcs / class / System / System.CodeDom / CodeGotoStatement.cs
index 789b76ef7270a7a46a6861072bcb589a3ac5d415..b46e624d777f923d7909c6f77d2cd8831dd3a565 100644 (file)
@@ -5,8 +5,7 @@
 //   Daniel Stodden (stodden@in.tum.de)
 //
 // (C) 2002 Ximian, Inc.
-//
-
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -43,7 +42,12 @@ namespace System.CodeDom
                //
                // Constructors
                //
-               public CodeGotoStatement( string label )
+#if NET_2_0
+               public CodeGotoStatement ()
+               {
+               }
+#endif
+               public CodeGotoStatement (string label)
                {
                        Label = label;
                }
@@ -56,8 +60,21 @@ namespace System.CodeDom
                                return label;
                        }
                        set {
+#if NET_2_0
+                               if (value == null || value.Length == 0) {
+                                       throw new ArgumentNullException ("value");
+                               }
+#endif
                                label = value;
                        }
                }
+
+               //
+               // ICodeDomVisitor method
+               //
+               internal override void Accept (ICodeDomVisitor visitor)
+               {
+                       visitor.Visit (this);
+               }
        }
 }