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

Represents foo && bar (or foo and bar) statement. More...

#include <nodes.hpp>

Public Attributes

Nodelhs
 
Noderhs
 
Loc operator_l
 
Loc expression_l
 

Detailed Description

Represents foo && bar (or foo and bar) statement.

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::And::expression_l

Location of the full expression

a && b
^^^^^^

◆ lhs

Node* lib_ruby_parser::And::lhs

Left hand statament of the && operation.

Lvar("foo") node for foo && bar

◆ operator_l

Loc lib_ruby_parser::And::operator_l

Location of the && (or and) operator

a && b
^^

◆ rhs

Node* lib_ruby_parser::And::rhs

Right hand statement of the && operation.

Lvar("bar") node for foo && bar


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