mirror of
https://github.com/github/codeql.git
synced 2026-08-05 09:53:29 +02:00
15 lines
547 B
Plaintext
15 lines
547 B
Plaintext
class RubyBlockParameters extends @ruby_block_parameters {
|
|
string toString() { none() }
|
|
}
|
|
|
|
class RubyBlockParameter extends @ruby_block_parameters_child_type {
|
|
string toString() { none() }
|
|
}
|
|
|
|
from RubyBlockParameters ruby_block_parameters, int index, RubyBlockParameter param
|
|
where
|
|
ruby_block_parameters_child(ruby_block_parameters, index, param) or
|
|
ruby_block_parameters_locals(ruby_block_parameters,
|
|
index - 1 - max(int i | ruby_block_parameters_child(ruby_block_parameters, i, _)), param)
|
|
select ruby_block_parameters, index, param
|