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

Represents an unless guard used in pattern matching (i.e. in pattern unless guard) More...

#include <nodes.hpp>

Public Attributes

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

Detailed Description

Represents an unless guard used in pattern matching (i.e. in pattern unless guard)

Member Data Documentation

◆ cond

Node* lib_ruby_parser::UnlessGuard::cond

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

◆ expression_l

Loc lib_ruby_parser::UnlessGuard::expression_l

Location of the full expression

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

◆ keyword_l

Loc lib_ruby_parser::UnlessGuard::keyword_l

Location of the unless keyword

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

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