Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
CodeQL library for Ruby
codeql/ruby-all 4.1.6 (changelog, source)

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)