From 5096e65fc74e315b766cfdb216cf0b33d4ed3840 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 4 Dec 2020 14:10:42 -0800 Subject: [PATCH] More commutable attributes --- IDE/src/Commands.bf | 1 + IDE/src/ui/ClassViewPanel.bf | 1 + IDE/src/util/SourceHash.bf | 1 + 3 files changed, 3 insertions(+) diff --git a/IDE/src/Commands.bf b/IDE/src/Commands.bf index a7c6ee0d..80e6faf2 100644 --- a/IDE/src/Commands.bf +++ b/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) && diff --git a/IDE/src/ui/ClassViewPanel.bf b/IDE/src/ui/ClassViewPanel.bf index 8a96b19f..c664e109 100644 --- a/IDE/src/ui/ClassViewPanel.bf +++ b/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)) diff --git a/IDE/src/util/SourceHash.bf b/IDE/src/util/SourceHash.bf index 062ccf49..777541e2 100644 --- a/IDE/src/util/SourceHash.bf +++ b/IDE/src/util/SourceHash.bf @@ -72,6 +72,7 @@ namespace IDE.util } } + [Commutable] public static bool operator==(SourceHash lhs, SourceHash rhs) { switch (lhs)