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

Represents an if guard used in pattern matching (i.e. case foo; in pattern if guard; end) More...

#include <nodes.hpp>

Public Attributes

Nodecond
 Condition of the guard, Lvar("foo") in in pattern if guard More...
 
Loc keyword_l
 
Loc expression_l
 

Detailed Description

Represents an if guard used in pattern matching (i.e. case foo; in pattern if guard; end)

Member Data Documentation

◆ cond

Node* lib_ruby_parser::IfGuard::cond

Condition of the guard, Lvar("foo") in in pattern if guard

◆ expression_l

Loc lib_ruby_parser::IfGuard::expression_l

Location of the full expression

case foo; in pattern if cond; end
^^^^^^^

◆ keyword_l

Loc lib_ruby_parser::IfGuard::keyword_l

Location of the if keyword

case foo; in pattern if cond; end
^^

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