CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Member predicate ArrayPattern::getPrefixElement

Gets the nth element of this list pattern’s prefix, i.e. the elements 1, ^two, 3 in the following examples:

in [ 1, ^two, 3 ]
in [ 1, ^two, 3, ]
in [ 1, ^two, 3, *, 4 , 5]
in [ 1, ^two, 3, *more]
CasePattern getPrefixElement(int n)