Skip to content

Commit af72509

Browse files
yoffRasmusWL
andauthored
Update python/ql/lib/semmle/python/dataflow/new/internal/TypeTrackerSpecific.qll
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 2ae5dae commit af72509

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/TypeTrackerSpecific.qll

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -200,24 +200,18 @@ private module SummaryTypeTrackerInput implements SummaryTypeTracker::Input {
200200

201201
class SummaryComponentStack = FlowSummary::SummaryComponentStack;
202202

203-
SummaryComponentStack singleton(SummaryComponent component) {
204-
result = FlowSummary::SummaryComponentStack::singleton(component)
205-
}
203+
predicate singleton = FlowSummary::SummaryComponentStack::singleton/1;
206204

207-
SummaryComponentStack push(SummaryComponent component, SummaryComponentStack stack) {
208-
result = FlowSummary::SummaryComponentStack::push(component, stack)
209-
}
205+
predicate push = FlowSummary::SummaryComponentStack::push/2;
210206

211207
// Relating content to summaries
212-
SummaryComponent content(TypeTrackerContent contents) {
213-
result = FlowSummary::SummaryComponent::content(contents)
214-
}
208+
predicate content = FlowSummary::SummaryComponent::content/1;
215209

216-
SummaryComponent withoutContent(TypeTrackerContent contents) { none() }
210+
predicate withoutContent = FlowSummary::SummaryComponent::withoutContent/1;
217211

218-
SummaryComponent withContent(TypeTrackerContent contents) { none() }
212+
predicate withContent = FlowSummary::SummaryComponent::withContent/1;
219213

220-
SummaryComponent return() { result = FlowSummary::SummaryComponent::return() }
214+
predicate return = FlowSummary::SummaryComponent::return/0;
221215

222216
// Relating nodes to summaries
223217
Node argumentOf(Node call, SummaryComponent arg) {

0 commit comments

Comments
 (0)