mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
C#/Java: Exclude summaries using callbacks in fields, properties and synthetic fields.
This commit is contained in:
@@ -318,6 +318,10 @@ module ModelGeneratorInput implements ModelGeneratorInputSig<Location, CsharpDat
|
||||
c.isField(_) or c.isSyntheticField(_) or c.isProperty(_)
|
||||
}
|
||||
|
||||
predicate isCallback(DataFlow::ContentSet c) {
|
||||
c.isDelegateCallArgument(_) or c.isDelegateCallReturn()
|
||||
}
|
||||
|
||||
string getSyntheticName(DataFlow::ContentSet c) {
|
||||
exists(CS::Field f |
|
||||
not f.isEffectivelyPublic() and
|
||||
|
||||
Reference in New Issue
Block a user