Save the opening_loc
location using the given saved source so that it can be retrieved later.
Save the closing_loc
location using the given saved source so that it can be retrieved later.
Save the keyword_loc
location using the given saved source so that it can be retrieved later.
Save the message_loc
location using the given saved source so that it can be retrieved later.
Save the message_loc
location using the given saved source so that it can be retrieved later.
Save the opening_loc
location using the given saved source so that it can be retrieved later.
Save the closing_loc
location using the given saved source so that it can be retrieved later.
When a call node has the attribute_write flag set, it means that the call is using the attribute write syntax. This is either a method call to []= or a method call to a method that ends with =. Either way, the = sign is present in the source.
Prism
returns the message_loc
without the = sign attached, because there can be any amount of space between the message and the = sign. However, sometimes you want the location of the full message including the inner space and the = sign. This method provides that.
Save the message_loc
location using the given saved source so that it can be retrieved later.
Save the message_loc
location using the given saved source so that it can be retrieved later.
Save the message_loc
location using the given saved source so that it can be retrieved later.
Represents the location of the ‘case` keyword.
case true; in false; end ^^^^
Represents the location of the ‘end` keyword.
case true; in false; end ^^^
Represents the location of the ‘case` keyword.
case true; when false; end ^^^^
Represents the location of the ‘end` keyword.
case true; when false; end ^^^
attr_reader class_keyword_loc
: Location
attr_reader end_keyword_loc
: Location
Save the name_loc
location using the given saved source so that it can be retrieved later.
Save the delimiter_loc
location using the given saved source so that it can be retrieved later.
Save the name_loc
location using the given saved source so that it can be retrieved later.
Save the delimiter_loc
location using the given saved source so that it can be retrieved later.
Save the name_loc
location using the given saved source so that it can be retrieved later.
Save the name_loc
location using the given saved source so that it can be retrieved later.
Save the name_loc
location using the given saved source so that it can be retrieved later.
attr_reader def_keyword_loc
: Location