mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
263 B
Plaintext
17 lines
263 B
Plaintext
/**
|
|
* @name Test for namespaces
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Namespace n, Class a, Class b
|
|
where
|
|
n.hasQualifiedName("M1.M2") and
|
|
a = n.getAClass() and
|
|
a.hasName("A") and
|
|
a.isPublic() and
|
|
b = n.getAClass() and
|
|
b.hasName("B") and
|
|
b.isInternal()
|
|
select n
|