1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

fix up indentation, its not perfect but its close and consistent

This commit is contained in:
Kevin Glynn 2011-02-21 16:40:42 +01:00
parent b6d57d4bd2
commit f1db436236

View File

@ -18,7 +18,7 @@ using Twiglet.CS2J.Translator.Utils;
// We have overloaded Equals to test value equality for these template objects. For now its only // We have overloaded Equals to test value equality for these template objects. For now its only
// used by unit tests (to check that the object survives xml serialization / deserialization // used by unit tests (to check that the object survives xml serialization / deserialization
// unscathed). But it might be useful down the road. // unscathed). But it might be useful down the road.
// By overloading Equals, we also have to overload GetHashcode (well, its highly reccomended)... // By overloading Equals, we also have to overload GetHashCode (well, its highly reccomended)...
namespace Twiglet.CS2J.Translator.TypeRep namespace Twiglet.CS2J.Translator.TypeRep
{ {
@ -1406,8 +1406,6 @@ namespace Twiglet.CS2J.Translator.TypeRep
} }
// Base Template for classes, interfaces, enums, etc. // Base Template for classes, interfaces, enums, etc.
[Serializable] [Serializable]
public abstract class TypeRepTemplate : TranslationBase, IEquatable<TypeRepTemplate> public abstract class TypeRepTemplate : TranslationBase, IEquatable<TypeRepTemplate>
@ -1582,6 +1580,7 @@ namespace Twiglet.CS2J.Translator.TypeRep
{ {
Casts.Add(new CastRepTemplate(c)); Casts.Add(new CastRepTemplate(c));
} }
if (copyFrom.Inherits != null) if (copyFrom.Inherits != null)
{ {
len = copyFrom.Inherits.Length; len = copyFrom.Inherits.Length;
@ -2786,7 +2785,6 @@ namespace Twiglet.CS2J.Translator.TypeRep
return hashCode; return hashCode;
} }
#endregion #endregion
} }
[XmlType("Class")] [XmlType("Class")]
@ -3075,12 +3073,8 @@ namespace Twiglet.CS2J.Translator.TypeRep
} }
#endregion #endregion
} }
[XmlType("Struct")] [XmlType("Struct")]
public class StructRepTemplate : ClassRepTemplate, IEquatable<StructRepTemplate> public class StructRepTemplate : ClassRepTemplate, IEquatable<StructRepTemplate>
{ {
@ -3146,9 +3140,6 @@ namespace Twiglet.CS2J.Translator.TypeRep
return base.GetHashCode (); return base.GetHashCode ();
} }
#endregion #endregion
} }
[XmlType("UnknownType")] [XmlType("UnknownType")]