mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
9 lines
259 B
Plaintext
9 lines
259 B
Plaintext
import semmle.code.cil.Method
|
|
import semmle.code.csharp.Location
|
|
|
|
private string getType(Setter s) { if s.isInitOnly() then result = "init" else result = "set" }
|
|
|
|
from Setter s
|
|
where s.getLocation().(Assembly).getName() = "cil-init-prop"
|
|
select s, getType(s)
|