Expand description
Code for applying replacement templates for matches that have previously been found.
StructsΒ§
- Replacement
Renderer π
FunctionsΒ§
- matches_
to_ πedit - Returns a text edit that will replace each match in
matcheswith its corresponding replacement template. Placeholders in the template will have been substituted with whatever they matched to in the original code. - matches_
to_ πedit_ at_ offset - parse_
as_ πkind - render_
replace π - token_
is_ πmethod_ call_ receiver - Returns whether token is the receiver of a method call. Note, being within the receiver of a
method call doesnβt count. e.g. if the token is
$a, then$a.foo()will return true, while($a + $b).foo()orx.foo($a)will return false.