Skip to content

Commit 11af6ee

Browse files
committed
C#: Update the DB Scheme such that compound assignments can be considered operator calls.
1 parent 4ac1f11 commit 11af6ee

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

csharp/ql/lib/semmlecode.csharp.dbscheme

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,8 +1215,8 @@ case @expr.kind of
12151215
@literal_expr = @bool_literal_expr | @char_literal_expr | @integer_literal_expr | @real_literal_expr
12161216
| @string_literal_expr | @null_literal_expr;
12171217

1218-
@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;
1218+
@assign_expr = @simple_assign_expr | @assign_op_expr | @local_var_decl_expr | @assign_event_expr;
1219+
@assign_op_expr = @assign_arith_expr | @assign_bitwise_expr | @assign_coalesce_expr;
12201220
@assign_event_expr = @add_event_expr | @remove_event_expr;
12211221

12221222
@assign_arith_expr = @assign_add_expr | @assign_sub_expr | @assign_mul_expr | @assign_div_expr
@@ -1270,14 +1270,15 @@ case @expr.kind of
12701270

12711271
@anonymous_function_expr = @lambda_expr | @anonymous_method_expr;
12721272

1273-
@call = @method_invocation_expr | @constructor_init_expr | @operator_invocation_expr
1273+
@op_invoke_expr = @operator_invocation_expr | @assign_op_expr
1274+
@call = @method_invocation_expr | @constructor_init_expr | @op_invoke_expr
12741275
| @delegate_invocation_expr | @object_creation_expr | @call_access_expr
12751276
| @local_function_invocation_expr | @function_pointer_invocation_expr;
12761277

12771278
@call_access_expr = @property_access_expr | @event_access_expr | @indexer_access_expr;
12781279

12791280
@late_bindable_expr = @dynamic_element_access_expr | @dynamic_member_access_expr
1280-
| @object_creation_expr | @method_invocation_expr | @operator_invocation_expr;
1281+
| @object_creation_expr | @method_invocation_expr | @op_invoke_expr;
12811282

12821283
@throw_element = @throw_expr | @throw_stmt;
12831284

0 commit comments

Comments
 (0)