Skip to content
instance method

Prism::IfNode#then_keyword_loc

then_keyword_loc

The location of the then keyword (if present) or the ? in a ternary expression, nil otherwise.

if foo then bar end
       ^^^^

a ? b : c
  ^