mirror of
https://github.com/github/codeql.git
synced 2026-02-13 05:31:22 +01:00
8 lines
288 B
Plaintext
8 lines
288 B
Plaintext
import javascript
|
|
|
|
from ClassDefinition class_, FieldDefinition field
|
|
where class_.getAField() = field
|
|
and field.isStatic()
|
|
and field.getInit().getFirstControlFlowNode().getAPredecessor*() = class_.(ControlFlowNode)
|
|
select field, "Field initializer occurs after its class is created"
|