Files
codeql/python/ql/test/library-tests/ControlFlow/augassign/Kind.ql
2018-11-19 15:15:54 +00:00

21 lines
436 B
Plaintext

import python
string kind(ControlFlowNode f) {
if f.isAugLoad() then
result = "aug load"
else (
if f.isAugStore() then
result = "aug store"
else (
if f.isLoad() then
result = "load"
else (
f.isStore() and result = "store"
)
)
)
}
from ControlFlowNode cfg
select cfg.getLocation().getStartLine(), cfg, kind(cfg)