mirror of
https://github.com/github/codeql.git
synced 2026-04-19 14:04:09 +02:00
11 lines
357 B
Plaintext
11 lines
357 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().hasFullyQualifiedName("DisposalTests", "Class1") and
|
|
field.hasFullyQualifiedName(qualifier, name)
|
|
select getQualifiedName(qualifier, name)
|