Skip to content

Commit 7f0f2d3

Browse files
committed
Rename interpretSummary to summaryElement
1 parent 961b09d commit 7f0f2d3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

go/ql/lib/semmle/go/dataflow/ExternalFlow.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ predicate sourceNode(DataFlow::Node node, string kind) { sourceNode(node, kind,
415415
*/
416416
predicate sinkNode(DataFlow::Node node, string kind) { sinkNode(node, kind, _) }
417417

418-
private predicate interpretSummary(
418+
private predicate summaryElement(
419419
Callable c, string input, string output, string kind, string provenance, string model
420420
) {
421421
exists(
@@ -431,13 +431,13 @@ private predicate interpretSummary(
431431

432432
// adapter class for converting Mad summaries to `SummarizedCallable`s
433433
private class SummarizedCallableAdapter extends SummarizedCallable {
434-
SummarizedCallableAdapter() { interpretSummary(this, _, _, _, _, _) }
434+
SummarizedCallableAdapter() { summaryElement(this, _, _, _, _, _) }
435435

436436
private predicate relevantSummaryElementManual(
437437
string input, string output, string kind, string model
438438
) {
439439
exists(Provenance provenance |
440-
interpretSummary(this, input, output, kind, provenance, model) and
440+
summaryElement(this, input, output, kind, provenance, model) and
441441
provenance.isManual()
442442
)
443443
}
@@ -446,7 +446,7 @@ private class SummarizedCallableAdapter extends SummarizedCallable {
446446
string input, string output, string kind, string model
447447
) {
448448
exists(Provenance provenance |
449-
interpretSummary(this, input, output, kind, provenance, model) and
449+
summaryElement(this, input, output, kind, provenance, model) and
450450
provenance.isGenerated()
451451
)
452452
}
@@ -465,7 +465,7 @@ private class SummarizedCallableAdapter extends SummarizedCallable {
465465
}
466466

467467
override predicate hasProvenance(Provenance provenance) {
468-
interpretSummary(this, _, _, _, provenance, _)
468+
summaryElement(this, _, _, _, provenance, _)
469469
}
470470
}
471471

0 commit comments

Comments
 (0)