Skip to content
instance method

Prism::IfNode#if_keyword_loc

if_keyword_loc

The location of the if keyword if present.

bar if foo
    ^^

The if_keyword_loc field will be nil when the IfNode represents a ternary expression.