Compile a RescueModifierNode
node
Dispatch enter and leave events for MatchRequiredNode
nodes and continue walking the tree.
Dispatch enter and leave events for RequiredParameterNode
nodes and continue walking the tree.
Dispatch enter and leave events for RescueModifierNode
nodes and continue walking the tree.
Inspect a MatchRequiredNode
node.
Inspect a RescueModifierNode
node.
Save the module_keyword_loc
location using the given saved source so that it can be retrieved later.
Shows surrounding kw/end pairs
The purpose of showing these extra pairs is due to cases of ambiguity when only one visible line is matched.
For example:
1 class Dog 2 def bark 4 def eat 5 end 6 end
In this case either line 2 could be missing an ‘end` or line 4 was an extra line added by mistake (it happens).
When we detect the above problem it shows the issue as only being on line 2
2 def bark
Showing “neighbor” keyword pairs gives extra context:
2 def bark 4 def eat 5 end
Create a new RequiredKeywordParameterNode
node.
Clear recorded tracing information.
Waits up to the continue timeout for a response from the server provided we’re speaking HTTP 1.1 and are expecting a 100-continue response.
Delegates to the start_character_column
of the associated location object.
Returns the column number in code units for the given encoding for the given byte offset.
Specialized version of ‘code_units_column` that does not depend on `code_units_offset`, which is a more expensive operation. This is essentially the same as `Prism::Source#column`.
The column number in characters where this location ends from the start of the line.
in “” in “foo”