mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
9 lines
290 B
Plaintext
9 lines
290 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"
|