From dd137d9b6983077cee65352105b902f03b7d56cd Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Wed, 11 Nov 2020 16:52:35 -0500 Subject: [PATCH] Remove `:rasgn` and `:mrasgn` types. See https://github.com/whitequark/parser/pull/739 --- docs/modules/ROOT/pages/node_types.adoc | 2 -- lib/rubocop/ast/node.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/modules/ROOT/pages/node_types.adoc b/docs/modules/ROOT/pages/node_types.adoc index 2dee1a72b..fa4507c0e 100644 --- a/docs/modules/ROOT/pages/node_types.adoc +++ b/docs/modules/ROOT/pages/node_types.adoc @@ -176,8 +176,6 @@ The following fields are given when relevant to nodes in the source code: |pair|One entry in a hash. |Two children, the key and value nodes.|1 => 2|https://rubydoc.info/github/rubocop-hq/rubocop-ast/RuboCop/AST/PairNode[PairNode] -|rasgn|Right-hand assignment|Two children, the node representing the value to assign and the assignment node.|1 => a | - |rational|Rational literal|One child, the Rational value|2.0r|N/A |redo|Redo command|None|redo|N/A diff --git a/lib/rubocop/ast/node.rb b/lib/rubocop/ast/node.rb index ac33f8848..6c5acb4f7 100644 --- a/lib/rubocop/ast/node.rb +++ b/lib/rubocop/ast/node.rb @@ -48,7 +48,7 @@ class Node < Parser::AST::Node # rubocop:disable Metrics/ClassLength # @api private EQUALS_ASSIGNMENTS = %i[lvasgn ivasgn cvasgn gvasgn - casgn masgn rasgn mrasgn].to_set.freeze + casgn masgn].to_set.freeze # @api private SHORTHAND_ASSIGNMENTS = %i[op_asgn or_asgn and_asgn].to_set.freeze # @api private