mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
C#: Address more review comments.
This commit is contained in:
@@ -1803,10 +1803,10 @@ class FlowSummaryNode extends NodeImpl, TFlowSummaryNode {
|
||||
* public void SetParam(object value) => o = value; // (2)
|
||||
* }
|
||||
* ```
|
||||
* the first access to o (1) is modeled as this.o_backing_field and
|
||||
* the second access to o (2) is modeled as this.o_backing_field = value.
|
||||
* the first access to o (1) is modeled as `this.o_backing_field` and
|
||||
* the second access to o (2) is modeled as `this.o_backing_field = value`.
|
||||
* Both models need a pre-update this node, and the latter need an additional post-update this access,
|
||||
* all of which are represented by an InstanceParameterAccessNode node.
|
||||
* all of which are represented by an `InstanceParameterAccessNode` node.
|
||||
*/
|
||||
class InstanceParameterAccessNode extends NodeImpl, TInstanceParameterAccessNode {
|
||||
private ControlFlow::Node cfn;
|
||||
@@ -1853,11 +1853,11 @@ class InstanceParameterAccessNode extends NodeImpl, TInstanceParameterAccessNode
|
||||
* ```csharp
|
||||
* public class C(object o) { }
|
||||
* ```
|
||||
* we synthesize the primary constructor for C as
|
||||
* we synthesize the primary constructor for `C` as
|
||||
* ```csharp
|
||||
* public C(object o) => this.o_backing_field = o;
|
||||
* ```
|
||||
* The synthesized (pre/post-update) this access is represented an PrimaryConstructorThisAccessNode node.
|
||||
* The synthesized (pre/post-update) this access is represented an `PrimaryConstructorThisAccessNode` node.
|
||||
*/
|
||||
class PrimaryConstructorThisAccessNode extends NodeImpl, TPrimaryConstructorThisAccessNode {
|
||||
private Parameter p;
|
||||
|
||||
Reference in New Issue
Block a user