Skip to content

Commit 04960fc

Browse files
committed
C#: Filter out explicit and implicit conversion operators, when creating summaries.
1 parent 8b08ddf commit 04960fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csharp/ql/src/utils/model-generator/internal/CaptureModelsSpecific.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Type = CS::Type;
2121
*/
2222
private predicate isRelevantForModels(CS::Callable api) {
2323
[api.(CS::Modifiable), api.(CS::Accessor).getDeclaration()].isEffectivelyPublic() and
24+
not api instanceof CS::ConversionOperator and
2425
not api instanceof Util::MainMethod
2526
}
2627

0 commit comments

Comments
 (0)