Files
codeql/csharp/ql/test/library-tests/csharp10/global/globalUsing.ql
2022-01-14 10:10:22 +01:00

11 lines
305 B
Plaintext

import csharp
query predicate globalUsing(UsingDirective und) { und.isGlobal() }
query predicate localUsing(UsingDirective ud) { not ud.isGlobal() }
query predicate globalUsingNamespace(UsingNamespaceDirective und, Namespace namespace) {
und.isGlobal() and
namespace = und.getImportedNamespace()
}