mirror of
https://github.com/github/codeql.git
synced 2026-02-23 02:13:41 +01:00
14 lines
318 B
Plaintext
14 lines
318 B
Plaintext
/**
|
|
* @name Test for destructors
|
|
*/
|
|
|
|
import csharp
|
|
import semmle.code.csharp.commons.QualifiedName
|
|
|
|
from Destructor c, string qualifier, string name
|
|
where
|
|
c.getDeclaringType().hasQualifiedName(qualifier, name) and
|
|
qualifier = "Constructors" and
|
|
name = "Class"
|
|
select c, c.getDeclaringType().getQualifiedName()
|