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

Represents a string with interpolation (i.e. "#{foo}") More...

#include <nodes.hpp>

Public Attributes

NodeList parts
 A list of string parts (static literals and interpolated expressions) More...
 
MaybeLoc begin_l
 
MaybeLoc end_l
 
Loc expression_l
 

Detailed Description

Represents a string with interpolation (i.e. "#{foo}")

Member Data Documentation

◆ begin_l

MaybeLoc lib_ruby_parser::Dstr::begin_l

Location of the string begin

"#{foo}"
^
%Q{#{foo}}
^^^

◆ end_l

MaybeLoc lib_ruby_parser::Dstr::end_l

Location of the string end

"#{foo}"
^
%Q{#{foo}}
^

◆ expression_l

Loc lib_ruby_parser::Dstr::expression_l

Location of the full expression

"#{foo}"
^^^^^^^^
%Q{#{foo}}
^^^^^^^^^^

◆ parts

NodeList lib_ruby_parser::Dstr::parts

A list of string parts (static literals and interpolated expressions)


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