Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a5e5a57

Browse files
committed
Use FlowSummaryImpl::Private::summaryParameterNodeRange
1 parent 4ea4e0d commit a5e5a57

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

go/ql/lib/semmle/go/dataflow/internal/DataFlowNodes.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ private newtype TNode =
1111
MkSsaNode(SsaDefinition ssa) or
1212
MkGlobalFunctionNode(Function f) or
1313
MkSummarizedParameterNode(SummarizedCallable c, int i) {
14-
i in [0 .. c.getType().getNumParameter() - 1]
15-
or
16-
c.asFunction() instanceof Method and i = -1
14+
FlowSummaryImpl::Private::summaryParameterNodeRange(c, i)
1715
} or
1816
MkSummaryInternalNode(SummarizedCallable c, FlowSummaryImpl::Private::SummaryNodeState state) {
1917
FlowSummaryImpl::Private::summaryNodeRange(c, state)

0 commit comments

Comments
 (0)