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

Represents a one-line pattern matching that can throw an error (i.e. foo => 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 can throw an error (i.e. foo => pattern)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::MatchPattern::expression_l

Location of the full expression

foo => pattern
^^^^^^^^^^^^^^

◆ operator_l

Loc lib_ruby_parser::MatchPattern::operator_l

Location of the => operator

foo => pattern
^^

◆ pattern

Node* lib_ruby_parser::MatchPattern::pattern

Pattern that is used for matching.

◆ value

Node* lib_ruby_parser::MatchPattern::value

Value that is used for matching.


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