Skip to content

Commit a1f952f

Browse files
Copilotdadhi
andauthored
refactor: rename flat constant comparison helper
Agent-Logs-Url: https://github.com/dadhi/FastExpressionCompiler/sessions/340a2774-3537-47bb-b6cb-038b55aec114 Co-authored-by: dadhi <39516+dadhi@users.noreply.github.com>
1 parent 50deedb commit a1f952f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/FastExpressionCompiler.LightExpression/FlatExpression.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ public bool Eq(ref ExprTree xTree, ref ExprTree yTree)
16971697
break;
16981698

16991699
case ExpressionType.Constant:
1700-
if (!ConstantEquals(ref xTree, ref x, ref yTree, ref y))
1700+
if (!AreConstantsEqual(ref xTree, ref x, ref yTree, ref y))
17011701
return false;
17021702
break;
17031703

@@ -1987,7 +1987,7 @@ private static int GetConstantHashCode(ref ExprTree tree, ref ExprNode node)
19871987
return GetStoredConstantValue(ref tree, ref node)?.GetHashCode() ?? 0;
19881988
}
19891989

1990-
private static bool ConstantEquals(ref ExprTree xTree, ref ExprNode x, ref ExprTree yTree, ref ExprNode y)
1990+
private static bool AreConstantsEqual(ref ExprTree xTree, ref ExprNode x, ref ExprTree yTree, ref ExprNode y)
19911991
{
19921992
var xObj = GetStoredConstantValue(ref xTree, ref x);
19931993
var yObj = GetStoredConstantValue(ref yTree, ref y);

0 commit comments

Comments
 (0)