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

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2023-06-14 20:57:14 +02:00
committed by GitHub
parent 2ae5dae474
commit af72509ce6

View File

@@ -200,24 +200,18 @@ private module SummaryTypeTrackerInput implements SummaryTypeTracker::Input {
class SummaryComponentStack = FlowSummary::SummaryComponentStack; class SummaryComponentStack = FlowSummary::SummaryComponentStack;
SummaryComponentStack singleton(SummaryComponent component) { predicate singleton = FlowSummary::SummaryComponentStack::singleton/1;
result = FlowSummary::SummaryComponentStack::singleton(component)
}
SummaryComponentStack push(SummaryComponent component, SummaryComponentStack stack) { predicate push = FlowSummary::SummaryComponentStack::push/2;
result = FlowSummary::SummaryComponentStack::push(component, stack)
}
// Relating content to summaries // Relating content to summaries
SummaryComponent content(TypeTrackerContent contents) { predicate content = FlowSummary::SummaryComponent::content/1;
result = FlowSummary::SummaryComponent::content(contents)
}
SummaryComponent withoutContent(TypeTrackerContent contents) { none() } predicate withoutContent = FlowSummary::SummaryComponent::withoutContent/1;
SummaryComponent withContent(TypeTrackerContent contents) { none() } predicate withContent = FlowSummary::SummaryComponent::withContent/1;
SummaryComponent return() { result = FlowSummary::SummaryComponent::return() } predicate return = FlowSummary::SummaryComponent::return/0;
// Relating nodes to summaries // Relating nodes to summaries
Node argumentOf(Node call, SummaryComponent arg) { Node argumentOf(Node call, SummaryComponent arg) {