Skip to content

Commit 57f6894

Browse files
committed
Ruby: SplatExprCfgNode extends UnaryOperationCfgNode
1 parent 376d4e0 commit 57f6894

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ruby/ql/lib/codeql/ruby/controlflow/CfgNodes.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -900,20 +900,17 @@ module ExprNodes {
900900
final override RelationalOperation getExpr() { result = super.getExpr() }
901901
}
902902

903-
private class SplatExprChildMapping extends ExprChildMapping, SplatExpr {
903+
private class SplatExprChildMapping extends OperationExprChildMapping, SplatExpr {
904904
override predicate relevantChild(AstNode n) { n = this.getOperand() }
905905
}
906906

907907
/** A control-flow node that wraps a `SplatExpr` AST expression. */
908-
class SplatExprCfgNode extends ExprCfgNode {
908+
class SplatExprCfgNode extends UnaryOperationCfgNode {
909909
override string getAPrimaryQlClass() { result = "SplatExprCfgNode" }
910910

911911
override SplatExprChildMapping e;
912912

913913
final override SplatExpr getExpr() { result = super.getExpr() }
914-
915-
/** Gets the operand of this splat expression. */
916-
final ExprCfgNode getOperand() { e.hasCfgChild(e.getOperand(), this, result) }
917914
}
918915

919916
/** A control-flow node that wraps an `ElementReference` AST expression. */

0 commit comments

Comments
 (0)