mirror of
https://github.com/github/codeql.git
synced 2026-04-20 06:24:03 +02:00
11 lines
347 B
Plaintext
11 lines
347 B
Plaintext
import cil
|
|
import semmle.code.csharp.commons.Disposal
|
|
import semmle.code.csharp.commons.QualifiedName
|
|
|
|
from CIL::Field field, string qualifier, string name
|
|
where
|
|
mayBeDisposed(field) and
|
|
field.getDeclaringType().hasQualifiedName("DisposalTests", "Class1") and
|
|
field.hasQualifiedName(qualifier, name)
|
|
select getQualifiedName(qualifier, name)
|