Files
codeql/ruby/ql/lib/upgrades/31a238d080f3dd563d7225fc0458254617d1e5ba/ruby_tokeninfo.ql
2021-10-15 11:47:28 +02:00

15 lines
401 B
Plaintext

private class RubyToken extends @ruby_token {
string toString() { none() }
}
private class Location extends @location {
string toString() { none() }
}
bindingset[kind]
private int newKind(int kind) { if kind >= 10 then result = kind + 2 else result = kind }
from RubyToken id, int kind, string value, Location loc
where ruby_tokeninfo(id, kind, value, loc)
select id, newKind(kind), value, loc