Permalink
Browse files

- Code Cleanup

  • Loading branch information...
tgiphil committed Dec 26, 2014
1 parent 5293da0 commit ac4e17c271fc45d99cccd160d4f9ea07207f5366
Showing with 821 additions and 839 deletions.
  1. +7 −0 .gitattributes
  2. +19 −19 Source/Korlib/System/Array.cs
  3. +4 −5 Source/Mosa.Compiler.Common/Properties/AssemblyInfo.cs
  4. BIN Source/Mosa.Compiler.Framework/GlobalSuppressions.cs
  5. +4 −5 Source/Mosa.Compiler.Linker/Properties/AssemblyInfo.cs
  6. +4 −5 Source/Mosa.Compiler.LinkerFormat/Properties/AssemblyInfo.cs
  7. +4 −5 Source/Mosa.Compiler.MosaTypeSystem/Properties/AssemblyInfo.cs
  8. +4 −5 Source/Mosa.Compiler.Pdb/Properties/AssemblyInfo.cs
  9. +3 −3 Source/Mosa.Compiler.Trace/BuiltIn/ConsoleEventListener.cs
  10. +4 −5 Source/Mosa.Compiler.Trace/Properties/AssemblyInfo.cs
  11. +0 −3 Source/Mosa.Platform.Internal.x86/Builders/RuntimeCustomAttributeData.cs
  12. +1 −3 Source/Mosa.Platform.Internal.x86/Internals/InternalsForArray.cs
  13. +4 −5 Source/Mosa.Platform.x64/Properties/AssemblyInfo.cs
  14. +4 −5 Source/Mosa.Platform.x86/Properties/AssemblyInfo.cs
  15. +4 −5 Source/Mosa.TinyCPUSimulator.Adaptor/Properties/AssemblyInfo.cs
  16. +4 −5 Source/Mosa.TinyCPUSimulator.Debug/Properties/AssemblyInfo.cs
  17. +4 −5 Source/Mosa.TinyCPUSimulator.TestSystem/Properties/AssemblyInfo.cs
  18. +4 −5 Source/Mosa.TinyCPUSimulator.x86.Adaptor/Properties/AssemblyInfo.cs
  19. +4 −5 Source/Mosa.TinyCPUSimulator.x86/Properties/AssemblyInfo.cs
  20. +4 −5 Source/Mosa.TinyCPUSimulator/Properties/AssemblyInfo.cs
  21. +4 −5 Source/Mosa.Tool.Compiler/Properties/AssemblyInfo.cs
  22. +4 −5 Source/Mosa.Tool.CreateBootImage/Properties/AssemblyInfo.cs
  23. +704 −703 Source/Mosa.Tool.Explorer/Main.cs
  24. +5 −6 Source/Mosa.Tool.Explorer/Properties/AssemblyInfo.cs
  25. +2 −2 Source/Mosa.Tool.TinySimulator/MainForm.cs
  26. +4 −5 Source/Mosa.Utility.AOT/Properties/AssemblyInfo.cs
  27. +4 −5 Source/Mosa.Utility.BootImage/Properties/AssemblyInfo.cs
  28. +4 −5 Source/Mosa.Utility.CodeDomCompiler/Properties/AssemblyInfo.cs
  29. +4 −5 Source/Mosa.Utility.Launcher/Properties/AssemblyInfo.cs
View
@@ -3,3 +3,10 @@
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
# Image files are treated as binary by default.
#*.jpg binary
#*.png binary
#*.gif binary
@@ -192,9 +192,9 @@ public IEnumerator GetEnumerator()
[Serializable]
private sealed class SZArrayEnumerator : IEnumerator, IDisposable
{
Array array;
int currentPosition;
int length;
private Array array;
private int currentPosition;
private int length;
public SZArrayEnumerator(Array array)
{
@@ -286,7 +286,7 @@ private IEnumerator<T> GetEnumerator<T>()
// -----------------------------------------------------------
// ------- Implement ICollection<T> interface methods --------
// -----------------------------------------------------------
void CopyTo<T>(T[] array, int index)
private void CopyTo<T>(T[] array, int index)
{
if (array != null && array.Rank != 1)
throw new ArgumentException("Multidimensional arrays are not supported");
@@ -295,7 +295,7 @@ void CopyTo<T>(T[] array, int index)
Array.Copy(_this, 0, array, index, _this.Length);
}
int get_Count<T>()
private int get_Count<T>()
{
T[] @this = RuntimeHelpers.UnsafeCast<T[]>(this);
return @this.Length;
@@ -304,7 +304,7 @@ int get_Count<T>()
// -----------------------------------------------------------
// ---------- Implement IList<T> interface methods -----------
// -----------------------------------------------------------
T get_Item<T>(int index)
private T get_Item<T>(int index)
{
T[] @this = RuntimeHelpers.UnsafeCast<T[]>(this);
if ((uint)index >= (uint)@this.Length)
@@ -313,7 +313,7 @@ T get_Item<T>(int index)
return @this[index];
}
void set_Item<T>(int index, T value)
private void set_Item<T>(int index, T value)
{
T[] @this = RuntimeHelpers.UnsafeCast<T[]>(this);
if ((uint)index >= (uint)@this.Length)
@@ -322,48 +322,48 @@ void set_Item<T>(int index, T value)
@this[index] = value;
}
void Add<T>(T value)
private void Add<T>(T value)
{
// NOT SUPPORTED
throw new NotSupportedException();
}
bool Contains<T>(T value)
private bool Contains<T>(T value)
{
T[] @this = RuntimeHelpers.UnsafeCast<T[]>(this);
return Array.IndexOf(@this, value) != -1;
}
bool get_IsReadOnly<T>()
private bool get_IsReadOnly<T>()
{
return true;
}
void Clear<T>()
private void Clear<T>()
{
// NOT SUPPORTED
throw new NotSupportedException();
}
int IndexOf<T>(T value)
private int IndexOf<T>(T value)
{
T[] @this = RuntimeHelpers.UnsafeCast<T[]>(this);
return Array.IndexOf(@this, value);
}
void Insert<T>(int index, T value)
private void Insert<T>(int index, T value)
{
// NOT SUPPORTED
throw new NotSupportedException();
}
bool Remove<T>(T value)
private bool Remove<T>(T value)
{
// NOT SUPPORTED
throw new NotSupportedException();
}
void RemoveAt<T>(int index)
private void RemoveAt<T>(int index)
{
// NOT SUPPORTED
throw new NotSupportedException();
@@ -374,9 +374,9 @@ void RemoveAt<T>(int index)
[Serializable]
private sealed class SZGenericArrayEnumerator<T> : IEnumerator<T>, IDisposable
{
T[] array;
int currentPosition;
int length;
private T[] array;
private int currentPosition;
private int length;
public SZGenericArrayEnumerator(T[] array)
{
@@ -430,4 +430,4 @@ void IEnumerator.Reset()
}
}
}
}
}
@@ -1,8 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mosa.Compiler.Common.Properties")]
@@ -14,8 +13,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +24,7 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
Binary file not shown.
@@ -1,8 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mosa.Compiler.Linker.Properties")]
@@ -14,8 +13,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +24,7 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
@@ -1,8 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mosa.Compiler.LinkerFormat.Properties")]
@@ -14,8 +13,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +24,7 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
@@ -1,8 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mosa.Compiler.MosaTypeSystem.Properties")]
@@ -14,8 +13,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +24,7 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
@@ -1,8 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mosa.Compiler.Pdb")]
@@ -14,8 +13,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +24,7 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
@@ -17,7 +17,7 @@ public sealed class ConsoleEventListener : ITraceListener
private string supressed = null;
private void DisplayCompilingMethod(string info)
private void DisplayCompilingMethod(string info)
{
if (string.IsNullOrEmpty(info))
return;
@@ -28,7 +28,7 @@ private void DisplayCompilingMethod(string info)
Console.WriteLine(info);
}
private void TraceEvent(CompilerEvent compilerStage, string info)
private void TraceEvent(CompilerEvent compilerStage, string info)
{
switch (compilerStage)
{
@@ -135,4 +135,4 @@ void ITraceListener.OnNewTraceLog(TraceLog traceLog)
{
}
}
}
}
@@ -1,8 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mosa.Compiler.Trace.Properties")]
@@ -14,8 +13,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +24,7 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
@@ -7,10 +7,7 @@
* Stefan Andres Charsley (charsleysa) <charsleysa@gmail.com>
*/
using Mosa.Platform.Internal.x86;
using System.Collections.Generic;
using System.Reflection;
using x86Runtime = Mosa.Platform.Internal.x86.Runtime;
namespace System
{
@@ -7,8 +7,6 @@
* Stefan Andres Charsley (charsleysa) <charsleysa@gmail.com>
*/
using System;
namespace Mosa.Platform.Internal.x86
{
// TODO: Implement properly for SZ arrays and multi dimensional arrays
@@ -24,4 +22,4 @@ public static int GetLowerBound(void* o, int dimension)
return 0;
}
}
}
}
@@ -1,8 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Mosa.Platform.x64")]
@@ -14,8 +13,8 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -25,7 +24,7 @@
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Minor Version
// Build Number
// Revision
//
Oops, something went wrong.

0 comments on commit ac4e17c

Please sign in to comment.