Files
codeql/csharp/ql/test/library-tests/overrides/Overrides22.ql
Tom Hvitved a9c438924e C#: Introduce class Overridable
The class `Overridable` generalizes the existing class `Virtualizable` by also
including accessors. This allows for quite a bit of code to be simplified.
2021-12-14 10:52:13 +01:00

13 lines
308 B
Plaintext

import csharp
from Overridable v1, Overridable v2, string kind
where
(
v1.getOverridee() = v2 and kind = "overrides"
or
v1.getImplementee() = v2 and kind = "implements"
) and
v1.fromSource() and
v2.fromSource()
select v1.getQualifiedNameWithTypes(), v2.getQualifiedNameWithTypes(), kind