Method: JRuby::Lint::Checkers::NonAtomic#operator_op_assignment?
- Defined in:
- lib/jruby/lint/checkers/nonatomic.rb
#operator_op_assignment?(node, type) ⇒ Boolean
29 30 31 32 33 34 |
# File 'lib/jruby/lint/checkers/nonatomic.rb', line 29 def operator_op_assignment?(node, type) rhs = node.value_node rhs.kind_of?(org::jruby::ast::CallNode) && OPERATORS.include?(rhs.name) && rhs.receiver_node.kind_of?(type) end |