Ver Fonte

More commutable attributes

Brian Fiete há 4 anos atrás
pai
commit
5096e65fc7
3 ficheiros alterados com 3 adições e 0 exclusões
  1. 1 0
      IDE/src/Commands.bf
  2. 1 0
      IDE/src/ui/ClassViewPanel.bf
  3. 1 0
      IDE/src/util/SourceHash.bf

+ 1 - 0
IDE/src/Commands.bf

@@ -15,6 +15,7 @@ namespace IDE
 			return (int)mKeyCode | (int)mKeyFlags << 16;
 		}
 
+		[Commutable]
 		public static bool operator==(KeyState val1, KeyState val2)
 		{
 			return (val1.mKeyCode == val2.mKeyCode) &&

+ 1 - 0
IDE/src/ui/ClassViewPanel.bf

@@ -231,6 +231,7 @@ namespace IDE.ui
 				return this == other;
 			}
 
+			[Commutable]
 			public static bool operator==(PendingEntry val1, PendingEntry val2)
 			{
 				if (((Object)val1 == null) || ((Object)val2 == null))

+ 1 - 0
IDE/src/util/SourceHash.bf

@@ -72,6 +72,7 @@ namespace IDE.util
 			}
 		}
 
+		[Commutable]
 		public static bool operator==(SourceHash lhs, SourceHash rhs)
 		{
 			switch (lhs)