mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Python: move SynthCapturePostUpdateNode
next to `SynthCaptureNode`
This commit is contained in:
@@ -1626,17 +1626,6 @@ private class SummaryPostUpdateNode extends FlowSummaryNode, PostUpdateNodeImpl
|
||||
override Node getPreUpdateNode() { result = pre }
|
||||
}
|
||||
|
||||
private class SynthCapturePostUpdateNode extends PostUpdateNodeImpl, SynthCaptureNode {
|
||||
private SynthCaptureNode pre;
|
||||
|
||||
SynthCapturePostUpdateNode() {
|
||||
VariableCapture::Flow::capturePostUpdateNode(this.getSynthesizedCaptureNode(),
|
||||
pre.getSynthesizedCaptureNode())
|
||||
}
|
||||
|
||||
override Node getPreUpdateNode() { result = pre }
|
||||
}
|
||||
|
||||
/**
|
||||
* The value of a closure itself being passed to the funciton, viewed as a node in a data
|
||||
* flow graph.
|
||||
|
||||
@@ -498,6 +498,17 @@ class SynthCaptureNode extends Node, TSynthCaptureNode {
|
||||
override string toString() { result = cn.toString() }
|
||||
}
|
||||
|
||||
private class SynthCapturePostUpdateNode extends PostUpdateNodeImpl, SynthCaptureNode {
|
||||
private SynthCaptureNode pre;
|
||||
|
||||
SynthCapturePostUpdateNode() {
|
||||
VariableCapture::Flow::capturePostUpdateNode(this.getSynthesizedCaptureNode(),
|
||||
pre.getSynthesizedCaptureNode())
|
||||
}
|
||||
|
||||
override Node getPreUpdateNode() { result = pre }
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a node that controls whether other nodes are evaluated.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user