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

Represents a pattern based on a "pinned" variable (e.g. ^foo) More...

#include <nodes.hpp>

Public Attributes

Nodevar
 Variable that is pinned. More...
 
Loc selector_l
 
Loc expression_l
 

Detailed Description

Represents a pattern based on a "pinned" variable (e.g. ^foo)

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::Pin::expression_l

Location of the full expression

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

◆ selector_l

Loc lib_ruby_parser::Pin::selector_l

Location of the ^ operator

case foo; in ^bar; end
^

◆ var

Node* lib_ruby_parser::Pin::var

Variable that is pinned.


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