Normalize line endings.
authorJonathan Pobst <monkey@jpobst.com>
Tue, 7 Sep 2010 02:59:26 +0000 (21:59 -0500)
committerJonathan Pobst <monkey@jpobst.com>
Tue, 7 Sep 2010 02:59:26 +0000 (21:59 -0500)
mcs/errors/cs0133-2.cs
mcs/mcs/assign.cs
mcs/mcs/class.cs
mcs/mcs/pending.cs
mcs/tests/gtest-anon-63.cs
mcs/tests/gtest-iter-14.cs
mcs/tests/test-anon-95.cs

index 7b438bb9ac48cfa06a23ba7ce7d8eb074b41dddf..b7a37182d737cea238b6e7c7af0ba96570e04eab 100644 (file)
@@ -1,12 +1,12 @@
-// CS0133: The expression being assigned to `c' must be constant\r
-// Line: 10\r
-\r
-class C\r
-{\r
-       void Foo ()\r
-       {\r
-               int[] array;\r
-               int idx;\r
-               const int c = array [idx];\r
-       }\r
-}\r
+// CS0133: The expression being assigned to `c' must be constant
+// Line: 10
+
+class C
+{
+       void Foo ()
+       {
+               int[] array;
+               int idx;
+               const int c = array [idx];
+       }
+}
index bf01232b28ee1e0232062c967b8f6df2078d2dd2..4ca227e9bb35646ffc6fed649745ec584b7c0b5b 100644 (file)
@@ -571,8 +571,8 @@ namespace Mono.CSharp {
                                        "Cannot assign to `{0}' because it is a `{1}'",
                                        ((MethodGroupExpr)target).Name, target.ExprClassName);
                                return null;
-                       }\r
-\r
+                       }
+
                        var event_expr = target as EventExpr;
                        if (event_expr != null) {
                                source = Convert.ImplicitConversionRequired (ec, right, target.Type, loc);
@@ -587,11 +587,11 @@ namespace Mono.CSharp {
                                else
                                        rside = null;
 
-                               target = target.ResolveLValue (ec, rside);\r
-                               if (target == null)\r
-                                       return null;\r
-\r
-                               eclass = ExprClass.Value;\r
+                               target = target.ResolveLValue (ec, rside);
+                               if (target == null)
+                                       return null;
+
+                               eclass = ExprClass.Value;
                                type = event_expr.Operator.ReturnType;
                                return this;
                        }
index 80c1f46353972278d0337da4e42164749e4f6bd4..2a050242231ad44817f929459cbac1e3df6bad15 100644 (file)
@@ -166,8 +166,8 @@ namespace Mono.CSharp {
                List<MemberCore> operators;
 
                // Holds the compiler generated classes
-               List<CompilerGeneratedClass> compiler_generated;\r
-\r
+               List<CompilerGeneratedClass> compiler_generated;
+
                Dictionary<MethodSpec, Method> hoisted_base_call_proxies;
 
                //
index dac273f6ca935cf0765ba6ec78eba71886f68bbc..c82b60ccc3e4f79a1d6859a07e4d948b469d064f 100644 (file)
@@ -341,7 +341,7 @@ namespace Mono.CSharp {
                        }
 
                        int top = param.Count;
-                       var ec = new EmitContext (null, proxy.GetILGenerator (), null);\r
+                       var ec = new EmitContext (null, proxy.GetILGenerator (), null);
                        // TODO: GetAllParametersArguments
                        for (int i = 0; i <= top; i++)
                                ParameterReference.EmitLdArg (ec, i);
index d89e0e41b3aab350ed66f8989dbbdb120108295e..2d140b821670ae6bc72f08e644acacb5f3aef6e3 100644 (file)
@@ -1,30 +1,30 @@
-using System;\r
-\r
-class A\r
-{\r
-       public virtual void Foo<T> (T a, params string[] b) where T : struct\r
-       {\r
-       }\r
-}\r
-\r
-class B : A\r
-{\r
-       public void Test (int v)\r
-       {\r
-               Action a = () => base.Foo<int> (b: "n", a: v);\r
-               a ();\r
-       }\r
-\r
-       public void Test2<T> (T b) where T : struct\r
-       {\r
-               Action a2 = () => base.Foo<T> (b, "as", "asdfa");\r
-       }\r
-}\r
-\r
-class Test\r
-{\r
-       public static void Main ()\r
-       {\r
-               new B ().Test (1);\r
-       }\r
+using System;
+
+class A
+{
+       public virtual void Foo<T> (T a, params string[] b) where T : struct
+       {
+       }
+}
+
+class B : A
+{
+       public void Test (int v)
+       {
+               Action a = () => base.Foo<int> (b: "n", a: v);
+               a ();
+       }
+
+       public void Test2<T> (T b) where T : struct
+       {
+               Action a2 = () => base.Foo<T> (b, "as", "asdfa");
+       }
+}
+
+class Test
+{
+       public static void Main ()
+       {
+               new B ().Test (1);
+       }
 }
\ No newline at end of file
index a5deed277ffe8e75c0de0a785c970401aa1b1d0b..e5ef2e22499f470d8062d6706b6b080ca6d6ebf4 100644 (file)
@@ -1,58 +1,58 @@
-using System;\r
-using System.Collections.Generic;\r
-\r
-class A\r
-{\r
-       protected virtual int BaseM     {\r
-               get {\r
-                       return 2;\r
-               }\r
-               set\r
-               {\r
-                       throw new ApplicationException ("it should not be called");\r
-               }\r
-       }\r
-}\r
-\r
-class B : A\r
-{\r
-       protected override int BaseM {\r
-               set\r
-               {\r
-               }\r
-       }\r
-}\r
-\r
-struct S\r
-{\r
-       public IEnumerable<int> GetIt ()\r
-       {\r
-               yield return base.GetHashCode ();\r
-       }\r
-}\r
-\r
-class X : B\r
-{\r
-       protected override int BaseM {\r
-               set\r
-               {\r
-                       throw new ApplicationException ("it should not be called");\r
-               }\r
-       }\r
-\r
-       IEnumerable<int> GetIt ()\r
-       {\r
-               yield return base.BaseM++;\r
-       }\r
-\r
-       static int Main ()\r
-       {\r
-               foreach (var v in new X ().GetIt ())\r
-                       Console.WriteLine (v);\r
-\r
-               foreach (var v in new S ().GetIt ())\r
-                       Console.WriteLine (v);\r
-\r
-               return 0;\r
-       }\r
+using System;
+using System.Collections.Generic;
+
+class A
+{
+       protected virtual int BaseM     {
+               get {
+                       return 2;
+               }
+               set
+               {
+                       throw new ApplicationException ("it should not be called");
+               }
+       }
+}
+
+class B : A
+{
+       protected override int BaseM {
+               set
+               {
+               }
+       }
+}
+
+struct S
+{
+       public IEnumerable<int> GetIt ()
+       {
+               yield return base.GetHashCode ();
+       }
+}
+
+class X : B
+{
+       protected override int BaseM {
+               set
+               {
+                       throw new ApplicationException ("it should not be called");
+               }
+       }
+
+       IEnumerable<int> GetIt ()
+       {
+               yield return base.BaseM++;
+       }
+
+       static int Main ()
+       {
+               foreach (var v in new X ().GetIt ())
+                       Console.WriteLine (v);
+
+               foreach (var v in new S ().GetIt ())
+                       Console.WriteLine (v);
+
+               return 0;
+       }
 }
\ No newline at end of file
index 84bd6aceee044f821964be58478859841ac5d45f..83648e5ebe7c33735c803521b0834c4dcd605343 100644 (file)
@@ -1,36 +1,36 @@
-using System;\r
-\r
-public delegate int D ();\r
-\r
-public abstract class A\r
-{\r
-       protected abstract event D Event;\r
-}\r
-\r
-public class B : A\r
-{\r
-       protected override event D Event;\r
-\r
-       protected int Run ()\r
-       {\r
-               return Event ();\r
-       }\r
-}\r
-\r
-public class C : B\r
-{\r
-       int Test (int i)\r
-       {\r
-               Action a = () => base.Event += () => i;\r
-               a ();\r
-               return Run ();\r
-       }\r
-\r
-       public static int Main ()\r
-       {\r
-               if (new C ().Test (9) != 9)\r
-                       return 1;\r
-\r
-               return 0;\r
-       }\r
+using System;
+
+public delegate int D ();
+
+public abstract class A
+{
+       protected abstract event D Event;
+}
+
+public class B : A
+{
+       protected override event D Event;
+
+       protected int Run ()
+       {
+               return Event ();
+       }
+}
+
+public class C : B
+{
+       int Test (int i)
+       {
+               Action a = () => base.Event += () => i;
+               a ();
+               return Run ();
+       }
+
+       public static int Main ()
+       {
+               if (new C ().Test (9) != 9)
+                       return 1;
+
+               return 0;
+       }
 }
\ No newline at end of file