mirror of
https://github.com/github/codeql.git
synced 2026-02-26 20:03:51 +01:00
16 lines
261 B
Plaintext
16 lines
261 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
|
|
|