lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
source_line.hpp
Go to the documentation of this file.
1 #ifndef LIB_RUBY_PARSER_SOURCE_LINE_HPP
2 #define LIB_RUBY_PARSER_SOURCE_LINE_HPP
3 
4 #include <cstddef>
5 #include <cstdbool>
6 
7 namespace lib_ruby_parser
8 {
10  class SourceLine
11  {
12  public:
13  size_t start;
14  size_t end;
16 
17  SourceLine(size_t start, size_t end, size_t ends_with_eof);
18  };
19 
22  {
23  public:
25  size_t capacity;
26  size_t len;
27 
28  SourceLineList() = delete;
29  SourceLineList(SourceLine *ptr, size_t len, size_t capacity);
31 
32  SourceLineList(const SourceLineList &) = delete;
33  SourceLineList &operator=(SourceLineList const &) = delete;
34 
37  };
38 } // namespace lib_ruby_parser
39 
40 #endif // LIB_RUBY_PARSER_SOURCE_LINE_HPP
lib_ruby_parser::SourceLineList::~SourceLineList
~SourceLineList()
lib_ruby_parser::SourceLineList::operator=
SourceLineList & operator=(SourceLineList const &)=delete
lib_ruby_parser::SourceLine::SourceLine
SourceLine(size_t start, size_t end, size_t ends_with_eof)
lib_ruby_parser::SourceLineList::capacity
size_t capacity
Definition: source_line.hpp:25
lib_ruby_parser::SourceLine
SourceLine struct from lib-ruby-parser
Definition: source_line.hpp:10
lib_ruby_parser::SourceLineList::ptr
SourceLine * ptr
Definition: source_line.hpp:24
lib_ruby_parser::SourceLineList::SourceLineList
SourceLineList()=delete
lib_ruby_parser::SourceLine::start
size_t start
Definition: source_line.hpp:13
lib_ruby_parser::SourceLineList
Equivalent of Vec<SourceLine>
Definition: source_line.hpp:21
lib_ruby_parser::SourceLine::ends_with_eof
bool ends_with_eof
Definition: source_line.hpp:15
lib_ruby_parser
Definition: api.hpp:7
lib_ruby_parser::SourceLineList::len
size_t len
Definition: source_line.hpp:26
lib_ruby_parser::SourceLine::end
size_t end
Definition: source_line.hpp:14