lib/opal/rewriters/explicit_writer_return.rb
# Multiple assignment is handled by Opal::Nodes::MassAssignNode
#
# For example, "self.a, self.b = 1, 2" parses to:
# s(:masgn,
#   s(:mlhs,
#     s(:send,
#       s(:self), :a=),
#     s(:send,
#       s(:self), :b=)),
#   s(:array,
#     s(:int, 1),
#     s(:int, 2)))
#
# And this AST rewriter skips this node.


And this AST rewriter skips this node.
And this AST rewriter skips this node .
def on_masgn(node)
        @in_masgn = true
        result = super
        @in_masgn = false
        result
      end
def on_masgn ( node ) @in_masgn = true result = super @in_masgn = false result end
Multiple assignment is handled by Opal::Nodes::MassAssignNode
For example, "self.a, self.b = 1, 2" parses to:
s(:masgn,
s(:mlhs,
s(:send,
s(:self), :a=),
s(:send,
s(:self), :b=)),
s(:array,
s(:int, 1),
s(:int, 2)))
Multiple assignment is handled by Opal :: Nodes :: MassAssignNode For example " self . a self . b = 1 2 " parses to : s ( : masgn s ( : mlhs s ( : send s ( : self ) : a = ) s ( : send s ( : self ) : b = )) s ( : array s ( : int 1 ) s ( : int 2 )))
node
<not_specific>