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

Represents pattern matching using one of the given patterns (i.e. foo in 1 | 2) More...

#include <nodes.hpp>

Public Attributes

Nodelhs
 Left pattern. More...
 
Noderhs
 Right pattern. More...
 
Loc operator_l
 
Loc expression_l
 

Detailed Description

Represents pattern matching using one of the given patterns (i.e. foo in 1 | 2)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::MatchAlt::expression_l

Location of the full expression

foo in 1 | 2
^^^^^

◆ lhs

Node* lib_ruby_parser::MatchAlt::lhs

Left pattern.

◆ operator_l

Loc lib_ruby_parser::MatchAlt::operator_l

Location of the | operator

foo in 1 | 2
^

◆ rhs

Node* lib_ruby_parser::MatchAlt::rhs

Right pattern.


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