mirror of
https://github.com/github/codeql.git
synced 2026-03-30 12:18:18 +02:00
12 lines
305 B
Plaintext
12 lines
305 B
Plaintext
import csharp
|
|
import semmle.code.csharp.dataflow.internal.BaseSSA
|
|
|
|
from AssignableRead ar, AssignableDefinition def, LocalScopeVariable v
|
|
where
|
|
ar = BaseSsa::getARead(def, v) and
|
|
not exists(Ssa::ExplicitDefinition edef |
|
|
edef.getADefinition() = def and
|
|
edef.getARead() = ar
|
|
)
|
|
select ar, def
|