Rust: Restructure classes representing calls

This commit is contained in:
Tom Hvitved
2025-11-24 09:45:00 +01:00
parent 3e5ea5664c
commit 7378fbc567
48 changed files with 716 additions and 548 deletions

View File

@@ -134,7 +134,7 @@ private module SummaryModelGeneratorInput implements SummaryModelGeneratorInputS
predicate isCallback(DataFlow::ContentSet cs) {
exists(Content c | c = cs.(SingletonContentSet).getContent() |
c instanceof FunctionCallReturnContent or
c instanceof FunctionCallArgumentContent
c instanceof ClosureCallArgumentContent
)
}
@@ -145,7 +145,7 @@ private module SummaryModelGeneratorInput implements SummaryModelGeneratorInputS
or
exists(Content c | cs = DataFlowImpl::TSingletonContentSet(c) |
exists(int pos |
pos = c.(FunctionCallArgumentContent).getPosition() and
pos = c.(ClosureCallArgumentContent).getPosition() and
result = "Parameter" and
arg = pos.toString()
)