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

Represents opening a singleton class (i.e. class << foo; ... end;) More...

#include <nodes.hpp>

Public Attributes

Nodeexpr
 
Nodebody
 Body of the block. More...
 
Loc keyword_l
 
Loc operator_l
 
Loc end_l
 
Loc expression_l
 

Detailed Description

Represents opening a singleton class (i.e. class << foo; ... end;)

Member Data Documentation

◆ body

Node* lib_ruby_parser::SClass::body

Body of the block.

◆ end_l

Loc lib_ruby_parser::SClass::end_l

Location of the end keyword

class << foo; end
^^^

◆ expr

Node* lib_ruby_parser::SClass::expr

Expression that is used to get a singleton class

Lvar("foo") for class << foo; end

◆ expression_l

Loc lib_ruby_parser::SClass::expression_l

Location of the full expression

class << foo; end
^^^^^^^^^^^^^^^^^

◆ keyword_l

Loc lib_ruby_parser::SClass::keyword_l

Location of the class keyword

class << foo; end
^^^^^

◆ operator_l

Loc lib_ruby_parser::SClass::operator_l

Location of the << operator

class << foo; end
^^

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