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

Represents matching with renaming into specified local variable (i.e. case 1; in Integer => a; end) More...

#include <nodes.hpp>

Public Attributes

Nodevalue
 Pattern that is used for matching. More...
 
Nodeas
 Variable that is assigned if matched (see MatchVar node) More...
 
Loc operator_l
 
Loc expression_l
 

Detailed Description

Represents matching with renaming into specified local variable (i.e. case 1; in Integer => a; end)

Member Data Documentation

◆ as

Node* lib_ruby_parser::MatchAs::as

Variable that is assigned if matched (see MatchVar node)

◆ expression_l

Loc lib_ruby_parser::MatchAs::expression_l

Location of the full expression

case 1; in Integer => a; end
^^^^^^^^^^^^

◆ operator_l

Loc lib_ruby_parser::MatchAs::operator_l

Location of the => operator

case 1; in Integer => a; end
^^

◆ value

Node* lib_ruby_parser::MatchAs::value

Pattern that is used for matching.


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