mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
15 lines
239 B
Plaintext
15 lines
239 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
|