Merge pull request #11461 from hvitved/ruby/unique-hash-splat-param

Ruby: At most one hash-splat `ParameterNode` per callable
This commit is contained in:
Tom Hvitved
2022-12-05 11:53:28 +01:00
committed by GitHub
7 changed files with 40 additions and 11 deletions

View File

@@ -520,7 +520,8 @@ module Private {
predicate summaryParameterNodeRange(SummarizedCallable c, ParameterPosition pos) {
parameterReadState(c, _, pos)
or
isParameterPostUpdate(_, c, pos)
// Same as `isParameterPostUpdate(_, c, pos)`, but can be used in a negative context
any(SummaryNodeState state).isOutputState(c, SummaryComponentStack::argument(pos))
}
private predicate callbackOutput(