lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
#include <nodes.hpp>
Public Attributes | |
NodeList | parts |
A list of string parts (static literals and interpolated expressions) More... | |
Loc | heredoc_body_l |
Loc | heredoc_end_l |
Loc | expression_l |
Represents a executable here-document literal (both with and without interpolation)
It's similar to Xstr
in terms of abstract syntax tree, but has different source maps.
Loc lib_ruby_parser::XHeredoc::expression_l |
Location of the executable here-document identifier
Note: This is the only node (with Heredoc
) that has expression_l
smaller that all other sub-locations merged. The reason for that is that it's possible to add more code after here-document ID:
Loc lib_ruby_parser::XHeredoc::heredoc_body_l |
Location of the executable here-document body
Loc lib_ruby_parser::XHeredoc::heredoc_end_l |
Location of the executable here-document end
NodeList lib_ruby_parser::XHeredoc::parts |
A list of string parts (static literals and interpolated expressions)