mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
C#: Filter out explicit and implicit conversion operators, when creating summaries.
This commit is contained in:
@@ -21,6 +21,7 @@ class Type = CS::Type;
|
||||
*/
|
||||
private predicate isRelevantForModels(CS::Callable api) {
|
||||
[api.(CS::Modifiable), api.(CS::Accessor).getDeclaration()].isEffectivelyPublic() and
|
||||
not api instanceof CS::ConversionOperator and
|
||||
not api instanceof Util::MainMethod
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user