mirror of
https://github.com/github/codeql.git
synced 2026-02-26 20:03:51 +01:00
14 lines
237 B
Plaintext
14 lines
237 B
Plaintext
/**
|
|
* @name Test for namespaces
|
|
*/
|
|
import csharp
|
|
|
|
from Namespace n, Namespace p
|
|
where n.hasQualifiedName("Q1.Q2")
|
|
and n.hasName("Q2")
|
|
and p = n.getParentNamespace()
|
|
and p.hasName("Q1")
|
|
and p.hasQualifiedName("Q1")
|
|
select p, n
|
|
|