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

Member predicate Pair::getKey

Gets the key expression of this pair. For example, the SymbolLiteral representing the keyword foo in the following example:

bar(foo: 123)

Or the StringLiteral for 'foo' in the following hash pair:

{ 'foo' => 123 }
Expr getKey()