Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
hvitved committed Sep 18, 2023
1 parent aa3bafe commit ad1d9a3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ predicate expectsContent(Node n, ContentSet c) {
private newtype TDataFlowType =
TLambdaDataFlowType(Callable c) { c = any(LambdaSelfReferenceNode n).getCallable() } or
// TSynthHashSplatArgumentType(SynthHashSplatArgumentNode n) or
// TSynthSplatArgumentType(SynthSplatArgumentNode n) or
TSynthSplatArgumentType(SynthSplatArgumentNode n) or
TUnknownDataFlowType()

class DataFlowType extends TDataFlowType {
Expand Down Expand Up @@ -1772,14 +1772,15 @@ DataFlowType getNodeType(Node n) {
result = TLambdaDataFlowType(c)
)
or
// or
// result = TSynthHashSplatArgumentType(n)
// or
// result = TSynthSplatArgumentType(n)
result = TSynthSplatArgumentType(n)
or
not n instanceof LambdaSelfReferenceNode and
not mustHaveLambdaType(n, _) and
// not n instanceof SynthHashSplatArgumentNode and
// not n instanceof SynthSplatArgumentNode and
// not exists(TSynthSplatArgumentType(n)) and
not n instanceof SynthSplatArgumentNode and
result = TUnknownDataFlowType()
}

Expand Down

0 comments on commit ad1d9a3

Please sign in to comment.