mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Rust: Restructure classes representing calls
This commit is contained in:
@@ -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()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user