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

Represents a defined?(foo) expression. More...

#include <nodes.hpp>

Public Attributes

Nodevalue
 Value given to defined? More...
 
Loc keyword_l
 
MaybeLoc begin_l
 
MaybeLoc end_l
 
Loc expression_l
 

Detailed Description

Represents a defined?(foo) expression.

Member Data Documentation

◆ begin_l

MaybeLoc lib_ruby_parser::Defined::begin_l

Location of the open parenthesis

defined?(foo)
^

None if there are no parentheses

◆ end_l

MaybeLoc lib_ruby_parser::Defined::end_l

Location of the closing parenthesis

defined?(foo)
^

None if there are no parentheses

◆ expression_l

Loc lib_ruby_parser::Defined::expression_l

Location of the full expression

defined?(foo)
^^^^^^^^^^^^^

◆ keyword_l

Loc lib_ruby_parser::Defined::keyword_l

Location of the defined? keyword

defined?(foo)
^^^^^^^^

◆ value

Node* lib_ruby_parser::Defined::value

Value given to defined?


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