mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
13 lines
372 B
Plaintext
13 lines
372 B
Plaintext
import csharp
|
|
|
|
query predicate fileScopedNamespace(Namespace n, Member m) {
|
|
n.hasQualifiedName("MyFileScopedNamespace") and
|
|
exists(Class c |
|
|
c.getNamespace() = n and
|
|
c.hasMember(m) and
|
|
m.getLocation().toString().matches("%FileScopedNamespace.cs%")
|
|
)
|
|
}
|
|
|
|
query predicate namespaceDeclaration(NamespaceDeclaration nd, Namespace n) { n = nd.getNamespace() }
|