From fb9e4a8c40158fb8142eb51fcc686a30c71f9b25 Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Fri, 29 May 2026 15:11:34 +0200 Subject: [PATCH] C#: Move logical operation class from Operation.qll to LogicalOperation.qll. --- csharp/ql/lib/semmle/code/csharp/exprs/LogicalOperation.qll | 5 +++++ csharp/ql/lib/semmle/code/csharp/exprs/Operation.qll | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/csharp/ql/lib/semmle/code/csharp/exprs/LogicalOperation.qll b/csharp/ql/lib/semmle/code/csharp/exprs/LogicalOperation.qll index 63235281130..d16dd0446ae 100644 --- a/csharp/ql/lib/semmle/code/csharp/exprs/LogicalOperation.qll +++ b/csharp/ql/lib/semmle/code/csharp/exprs/LogicalOperation.qll @@ -56,6 +56,11 @@ class LogicalOrExpr extends BinaryLogicalOperation, @log_or_expr { override string getAPrimaryQlClass() { result = "LogicalOrExpr" } } +/** + * A null-coalescing operation, either `x ?? y` or `x ??= y`. + */ +class NullCoalescingOperation extends BinaryLogicalOperation, @null_coalescing_operation { } + /** * A null-coalescing expression, for example `s ?? ""` on line 2 in * diff --git a/csharp/ql/lib/semmle/code/csharp/exprs/Operation.qll b/csharp/ql/lib/semmle/code/csharp/exprs/Operation.qll index 43ad205b88c..9e43afc856c 100644 --- a/csharp/ql/lib/semmle/code/csharp/exprs/Operation.qll +++ b/csharp/ql/lib/semmle/code/csharp/exprs/Operation.qll @@ -3,8 +3,3 @@ */ import Expr - -/** - * A null-coalescing operation, either `x ?? y` or `x ??= y`. - */ -class NullCoalescingOperation extends BinaryLogicalOperation, @null_coalescing_operation { }