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

Represents a wildcard pattern used in pattern matching (i.e. in *foo) More...

#include <nodes.hpp>

Public Attributes

Nodename
 
Loc operator_l
 
Loc expression_l
 

Detailed Description

Represents a wildcard pattern used in pattern matching (i.e. in *foo)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::MatchRest::expression_l

Location of the * operator

case foo; in *bar; end
^^^^

◆ name

Node* lib_ruby_parser::MatchRest::name

Name of the variable name

None if there's no name (i.e. in *)

◆ operator_l

Loc lib_ruby_parser::MatchRest::operator_l

Location of the * operator

case foo; in *bar; end
^

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