Skip to content

Commit

Permalink
Ruby: Fix doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hmac authored and hvitved committed Sep 17, 2023
1 parent 432bf85 commit a09f1de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ private module Cached {
} or
TSynthSplatArgumentNode(CfgNodes::ExprNodes::CallCfgNode c) or
TSynthSplatArgumentElementNode(CfgNodes::ExprNodes::CallCfgNode c, int n) {
// we use -1 to represent data at an unknown index
n in [-1 .. 10] and
exists(Argument arg, ArgumentPosition pos |
pos.isSplat(any(int p | p > 0)) and arg.isArgumentOf(c, pos)
Expand Down Expand Up @@ -1546,7 +1547,7 @@ predicate storeStepCommon(Node node1, ContentSet c, Node node2) {
}

/**
* A store step from a `SynthSplatArgumentElementNode` into a `SynthSplatArgumentNode`.
* Holds if data can flow from a `SynthSplatArgumentElementNode` into a `SynthSplatArgumentNode` via a store step.
* For example in
*
* ```rb
Expand Down Expand Up @@ -1627,7 +1628,7 @@ predicate readStepCommon(Node node1, ContentSet c, Node node2) {
}

/**
* A read step from a splat argument to a `SynthSplatArgumentElementNode`.
* Holds if data can flow from a splat argument to a `SynthSplatArgumentElementNode` via a read step.
* For example in
* ```rb
* foo(x, y, *[1, 2])
Expand Down

0 comments on commit a09f1de

Please sign in to comment.