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

#include <nodes.hpp>

Public Attributes

Loc expression_l
 

Detailed Description

Represents a special empty else that is a part of the pattern matching.

Usually empty else (e.g. part of the if statement) doesn't mean anything, however in pattern matching it prevents raising a NoPatternError.

Throwing away this else may affect your code.

Member Data Documentation

◆ expression_l

Loc lib_ruby_parser::EmptyElse::expression_l

Location of the else keyword

case foo; in 1; else; end
^^^^

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