Skip to content

Commit

Permalink
Small doc for node_keyword [ci skip] [doc]
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Jun 26, 2020
1 parent 61eaaf7 commit 3e212a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rubocop/ast/node.rb
Expand Up @@ -432,6 +432,7 @@ def post_condition_loop?
POST_CONDITION_LOOP_TYPES.include?(type)
end

# Note: `loop { }` is a normal method call and thus not a loop keyword.
def loop_keyword?
LOOP_TYPES.include?(type)
end
Expand Down

0 comments on commit 3e212a2

Please sign in to comment.