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

Represents a one-line pattern matching that never throws but returns true/false (i.e. foo in pattern) More...

#include <nodes.hpp>

Public Attributes

Nodevalue
 Value that is used for matching. More...
 
Nodepattern
 Pattern that is used for matching. More...
 
Loc operator_l
 
Loc expression_l
 

Detailed Description

Represents a one-line pattern matching that never throws but returns true/false (i.e. foo in pattern)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::MatchPatternP::expression_l

Location of the full expression

foo in pattern
^^^^^^^^^^^^^^

◆ operator_l

Loc lib_ruby_parser::MatchPatternP::operator_l

Location of the in operator

foo in pattern
^^

◆ pattern

Node* lib_ruby_parser::MatchPatternP::pattern

Pattern that is used for matching.

◆ value

Node* lib_ruby_parser::MatchPatternP::value

Value that is used for matching.


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