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

Member predicate DestructuredLhsExpr::getRestIndex

Gets the index of the element with the * marker on it, if it exists. In the example below the index is 2.

a, b, *rest, c, d = value
int getRestIndex()