Copy a SuperNode
node
attr_reader begin_keyword_loc
: Location
?
attr_reader end_keyword_loc
: Location
?
attr_reader end_keyword_loc
: Location
attr_reader case_keyword_loc
: Location
attr_reader end_keyword_loc
: Location
attr_reader class_keyword_loc
: Location
attr_reader end_keyword_loc
: Location
attr_reader def_keyword_loc
: Location
attr_reader end_keyword_loc
: Location
?
attr_reader else_keyword_loc
: Location
attr_reader end_keyword_loc
: Location
?
attr_reader end_keyword_loc
: Location
attr_reader for_keyword_loc
: Location
attr_reader in_keyword_loc
: Location
attr_reader do_keyword_loc
: Location
?
attr_reader end_keyword_loc
: Location
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.
The location of the ‘then` keyword (if present) or the `?` in a ternary expression, `nil` otherwise.
if foo then bar end ^^^^ a ? b : c ^
The location of the ‘end` keyword if present, `nil` otherwise.
if foo bar end ^^^
attr_reader end_keyword_loc
: Location