lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
lib_ruby_parser::OpAsgn Class Reference

Represents an operation with assignment (e.g. a += 1) More...

#include <nodes.hpp>

Public Attributes

Noderecv
 Left hand statement of the assignment. More...
 
String operator_
 
Nodevalue
 Right hand statement of the assignment. More...
 
Loc operator_l
 
Loc expression_l
 

Detailed Description

Represents an operation with assignment (e.g. a += 1)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::OpAsgn::expression_l

Location of the operator

a.b <<= c
^^^^^^^^^

◆ operator_

String lib_ruby_parser::OpAsgn::operator_

Operator, can be one of:

  1. +=
  2. -=
  3. *=
  4. /=
  5. |=
  6. &=
  7. >>=
  8. <<=
  9. %=
  10. ^=
  11. **=

◆ operator_l

Loc lib_ruby_parser::OpAsgn::operator_l

Location of the operator

a.b <<= c
^^^

◆ recv

Node* lib_ruby_parser::OpAsgn::recv

Left hand statement of the assignment.

◆ value

Node* lib_ruby_parser::OpAsgn::value

Right hand statement of the assignment.


The documentation for this class was generated from the following file: