2008-11-05 Miguel de Icaza <miguel@novell.com>
[mono.git] / mcs / mcs / generic-mcs.cs
index 449677a13a7d4694da09c926bbe411ac3b450d42..2505cba9993fa190bd090ce08e0bc6c8a91f449f 100644 (file)
@@ -4,7 +4,7 @@
 // Author:
 //   Raja R Harinath <rharinath@novell.com>
 //
-// (C) 2006 Novell, Inc.
+// Copyright 2006 Novell, Inc.
 //
 using System;
 using System.Reflection;
@@ -22,6 +22,12 @@ namespace Mono.CSharp
        
        public abstract class GenericConstraints
        {
+               public bool HasValueTypeConstraint {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+                       
                public abstract string TypeParameter {
                        get;
                }
@@ -41,7 +47,7 @@ namespace Mono.CSharp
                {
                        throw new NotImplementedException ();
                }
-
+               
                public Location Location {
                        get { return Location.Null; } 
                }
@@ -134,7 +140,7 @@ namespace Mono.CSharp
                // IMemberContainer
                //
 
-               Type IMemberContainer.Type {
+               public Type Type {
                        get { throw new NotImplementedException (); }
                }
 
@@ -169,14 +175,6 @@ namespace Mono.CSharp
 
        public class TypeParameterExpr : TypeExpr
        {
-               public override string Name {
-                       get { throw new NotImplementedException (); }
-               }
-
-               public override string FullName {
-                       get { throw new NotImplementedException (); }
-               }
-
                public TypeParameterExpr (TypeParameter type_parameter, Location loc)
                {
                        throw new NotImplementedException ();
@@ -186,6 +184,12 @@ namespace Mono.CSharp
                {
                        return null;
                }
+
+               public TypeParameter TypeParameter {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
        }
 
        public class TypeParameterName : SimpleName
@@ -222,14 +226,6 @@ namespace Mono.CSharp
                        throw new NotImplementedException ();
                }
 
-               public override string Name {
-                       get { throw new NotImplementedException (); }
-               }
-
-               public override string FullName {
-                       get { throw new NotImplementedException (); }
-               }
-
                protected override TypeExpr DoResolveAsTypeStep (IResolveContext ec)
                {
                        throw new NotImplementedException ();
@@ -271,11 +267,6 @@ namespace Mono.CSharp
                        throw new NotImplementedException ();
                }
 
-               public override bool DefineMembers ()
-               {
-                       throw new NotImplementedException ();
-               }
-               
                internal static void Error_ParameterNameCollision (Location loc, string name, string collisionWith)
                {
                }
@@ -385,32 +376,4 @@ namespace Mono.CSharp
                        throw new NotImplementedException ();           
                }
        }
-       
-       public class Nullable
-       {
-               public class NullCoalescingOperator : Expression
-               {
-                       public NullCoalescingOperator (Expression left, Expression right, Location loc)
-                       {
-                       }
-                       
-                       public override Expression DoResolve (EmitContext ec)
-                       {
-                               throw new NotImplementedException ();
-                       }
-                       
-                       public override void Emit (EmitContext ec)
-                       {
-                               throw new NotImplementedException ();
-                       }
-               }
-               
-               public class HasValue
-               {
-                       public static Expression Create (Expression expr, EmitContext ec)
-                       {
-                               throw new NotImplementedException ();
-                       }
-               }
-       }
 }