C#: Adress review comments.

This commit is contained in:
Michael Nebel
2026-03-23 14:55:24 +01:00
parent 3d2d09d0bc
commit a900fe8657
2 changed files with 8 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ class AssignExpr extends Assignment, @simple_assign_expr {
/**
* An assignment operation. Either an arithmetic assignment operation
* (`AssignArithmeticOperation`), a bitwise assignment operation or
* (`AssignArithmeticOperation`), a bitwise assignment operation
* (`AssignBitwiseOperation`), an event assignment (`AddOrRemoveEventExpr`), or
* a null-coalescing assignment (`AssignCoalesceExpr`).
*/
@@ -81,10 +81,14 @@ class AssignOperation extends Assignment, @assign_op_expr {
}
/**
* An assignment operation that corresponds to an operator call, for example `x += y` corresponds to `x = x + y`.
* A compound assignment operation that implicitly invokes an operator.
* For example, `x += y` assigns the result of `x + y` to `x`.
*
* Either an arithmetic assignment operation (`AssignArithmeticOperation`) or a bitwise
* assignment operation (`AssignBitwiseOperation`).
*/
class AssignCallOperation extends AssignOperation, OperatorCall, @assign_op_call_expr {
override string toString() { result = "... " + this.getOperator() + " ..." }
override string toString() { result = AssignOperation.super.toString() }
}
/**

View File

@@ -478,7 +478,7 @@ class ConstructorInitializer extends Call, @constructor_init_expr {
}
/**
* A call to a user-defined operator, for example `this + other`
* A call to an operator, for example `this + other`
* on line 7 in
*
* ```csharp