mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
C#: Address review comments. Introduce Member::isEffectivelyPublic() because isEffectivelyPrivate and isEffectivelyInternal are almost always used together.
This commit is contained in:
@@ -55,8 +55,11 @@ predicate alwaysDefaultToString(ValueOrRefType t) {
|
||||
overriding.getAMethod() instanceof ToStringMethod and
|
||||
overriding.getABaseType+() = t
|
||||
) and
|
||||
not t.isAbstract() and
|
||||
not t instanceof Interface
|
||||
(
|
||||
(t.isAbstract() or t instanceof Interface)
|
||||
implies
|
||||
not t.isEffectivelyPublic()
|
||||
)
|
||||
}
|
||||
|
||||
newtype TDefaultToStringType = TDefaultToStringType0(ValueOrRefType t) { alwaysDefaultToString(t) }
|
||||
|
||||
Reference in New Issue
Block a user