class RuboCop::AST::Node

def loop_keyword?

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