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

Represents regex literal (e.g. /foo/) More...

#include <nodes.hpp>

Public Attributes

NodeList parts
 A list of static and dynamic regex parts. More...
 
Nodeoptions
 
Loc begin_l
 
Loc end_l
 
Loc expression_l
 

Detailed Description

Represents regex literal (e.g. /foo/)

Member Data Documentation

◆ begin_l

Loc lib_ruby_parser::Regexp::begin_l

Location of the regex begin

/foo/
^
%r{foo}
^^

◆ end_l

Loc lib_ruby_parser::Regexp::end_l

Location of the regex end

/foo/
^
%r{foo}
^

◆ expression_l

Loc lib_ruby_parser::Regexp::expression_l

Location of the full expression

/foo/mix
^^^^^^^^

◆ options

Node* lib_ruby_parser::Regexp::options

Regex options.

None if regex has no explicit flags

◆ parts

NodeList lib_ruby_parser::Regexp::parts

A list of static and dynamic regex parts.


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