Skip to content

Commit

Permalink
action.rb doc fixes (#1008)
Browse files Browse the repository at this point in the history
Few sentence and formatting corrections
  • Loading branch information
baweaver committed Apr 21, 2024
1 parent 503cf61 commit 570e065
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/parser/source/tree_rewriter/action.rb
Expand Up @@ -6,9 +6,10 @@ module Source
# @api private
#
# Actions are arranged in a tree and get combined so that:
# children are strictly contained by their parent
# sibblings all disjoint from one another and ordered
# only actions with replacement==nil may have children
#
# * Children are strictly contained by their parent
# * Siblings are all disjointed from one another and ordered
# * Only actions with `replacement == nil` may have children
#
class TreeRewriter::Action
attr_reader :range, :replacement, :insert_before, :insert_after
Expand Down Expand Up @@ -60,7 +61,7 @@ def insertion?

##
# A root action has its range set to the whole source range, even
# though it typically do not act on that range.
# though it typically does not act on that range.
# This method returns the action as if it was a child action with
# its range contracted.
# @return [Action]
Expand Down

0 comments on commit 570e065

Please sign in to comment.