Skip to content

Commit f1b8af1

Browse files
committed
Ruby: rename PostUpdateNode::Range to PostUpdateNodeImpl
1 parent c02670a commit f1b8af1

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -820,15 +820,13 @@ string ppReprType(DataFlowType t) { result = t.toString() }
820820
pragma[inline]
821821
predicate compatibleTypes(DataFlowType t1, DataFlowType t2) { any() }
822822

823-
module PostUpdateNode {
824-
abstract class Range extends Node {
825-
/** Gets the node before the state update. */
826-
abstract Node getPreUpdateNode();
827-
}
823+
abstract class PostUpdateNodeImpl extends Node {
824+
/** Gets the node before the state update. */
825+
abstract Node getPreUpdateNode();
828826
}
829827

830828
private module PostUpdateNodes {
831-
class ExprPostUpdateNode extends PostUpdateNode::Range, NodeImpl, TExprPostUpdateNode {
829+
class ExprPostUpdateNode extends PostUpdateNodeImpl, NodeImpl, TExprPostUpdateNode {
832830
private CfgNodes::ExprCfgNode e;
833831

834832
ExprPostUpdateNode() { this = TExprPostUpdateNode(e) }
@@ -842,7 +840,7 @@ private module PostUpdateNodes {
842840
override string toStringImpl() { result = "[post] " + e.toString() }
843841
}
844842

845-
private class SummaryPostUpdateNode extends SummaryNode, PostUpdateNode::Range {
843+
private class SummaryPostUpdateNode extends SummaryNode, PostUpdateNodeImpl {
846844
private Node pre;
847845

848846
SummaryPostUpdateNode() { FlowSummaryImpl::Private::summaryPostUpdateNode(this, pre) }

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPublic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class LocalSourceNode extends Node {
132132
* Nodes corresponding to AST elements, for example `ExprNode`, usually refer
133133
* to the value before the update.
134134
*/
135-
class PostUpdateNode extends Node instanceof PostUpdateNode::Range {
135+
class PostUpdateNode extends Node instanceof PostUpdateNodeImpl {
136136
/** Gets the node before the state update. */
137137
Node getPreUpdateNode() { result = super.getPreUpdateNode() }
138138
}

0 commit comments

Comments
 (0)