Skip to content

Commit b426c6f

Browse files
committed
C#: Update the DB scheme to reflect that assign arithmetic- and bitwise operations are operator calls.
1 parent c8169f5 commit b426c6f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

csharp/ql/lib/semmlecode.csharp.dbscheme

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,8 @@ case @expr.kind of
12161216
| @string_literal_expr | @null_literal_expr;
12171217

12181218
@assign_expr = @simple_assign_expr | @assign_op_expr | @local_var_decl_expr;
1219-
@assign_op_expr = @assign_arith_expr | @assign_bitwise_expr | @assign_event_expr | @assign_coalesce_expr;
1219+
@assign_op_call_expr = @assign_arith_expr | @assign_bitwise_expr
1220+
@assign_op_expr = @assign_op_call_expr | @assign_event_expr | @assign_coalesce_expr;
12201221
@assign_event_expr = @add_event_expr | @remove_event_expr;
12211222

12221223
@assign_arith_expr = @assign_add_expr | @assign_sub_expr | @assign_mul_expr | @assign_div_expr
@@ -1270,14 +1271,15 @@ case @expr.kind of
12701271

12711272
@anonymous_function_expr = @lambda_expr | @anonymous_method_expr;
12721273

1273-
@call = @method_invocation_expr | @constructor_init_expr | @operator_invocation_expr
1274+
@op_invoke_expr = @operator_invocation_expr | @assign_op_call_expr
1275+
@call = @method_invocation_expr | @constructor_init_expr | @op_invoke_expr
12741276
| @delegate_invocation_expr | @object_creation_expr | @call_access_expr
12751277
| @local_function_invocation_expr | @function_pointer_invocation_expr;
12761278

12771279
@call_access_expr = @property_access_expr | @event_access_expr | @indexer_access_expr;
12781280

12791281
@late_bindable_expr = @dynamic_element_access_expr | @dynamic_member_access_expr
1280-
| @object_creation_expr | @method_invocation_expr | @operator_invocation_expr;
1282+
| @object_creation_expr | @method_invocation_expr | @op_invoke_expr;
12811283

12821284
@throw_element = @throw_expr | @throw_stmt;
12831285

0 commit comments

Comments
 (0)