lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
parser_result.hpp
Go to the documentation of this file.
1 #ifndef LIB_RUBY_PARSER_PARSER_RESULT_HPP
2 #define LIB_RUBY_PARSER_PARSER_RESULT_HPP
3 
4 #include "nodes.hpp"
5 #include "token.hpp"
6 #include "diagnostic.hpp"
7 #include "comment.hpp"
8 #include "magic_comment.hpp"
9 #include "decoded_input.hpp"
10 
11 namespace lib_ruby_parser
12 {
15  {
16  public:
19 
22 
25 
28 
31 
43 
44  ~ParserResult();
45 
46  ParserResult(const ParserResult &) = delete;
47  ParserResult &operator=(ParserResult const &) = delete;
48 
49  ParserResult(ParserResult &&) = default;
50  ParserResult &operator=(ParserResult &&) = default;
51  };
52 } // namespace lib_ruby_parser
53 
54 #endif // LIB_RUBY_PARSER_PARSER_RESULT_HPP
lib_ruby_parser::ParserResult::comments
CommentList comments
List of comments.
Definition: parser_result.hpp:27
diagnostic.hpp
lib_ruby_parser::TokenList
Equivalent of Vec<lib_ruby_parser::Token>
Definition: token.hpp:40
lib_ruby_parser::ParserResult::magic_comments
MagicCommentList magic_comments
List of magic comments.
Definition: parser_result.hpp:30
lib_ruby_parser::ParserResult
Equivalent of lib_ruby_parser::ParserResult
Definition: parser_result.hpp:14
decoded_input.hpp
token.hpp
comment.hpp
lib_ruby_parser::ParserResult::ParserResult
ParserResult(const ParserResult &)=delete
lib_ruby_parser::ParserResult::diagnostics
DiagnosticList diagnostics
List of diagnostics (errors/warnings)
Definition: parser_result.hpp:24
lib_ruby_parser::ParserResult::input
DecodedInput input
Definition: parser_result.hpp:42
magic_comment.hpp
nodes.hpp
lib_ruby_parser::ParserResult::ast
Node * ast
Final AST, nullable.
Definition: parser_result.hpp:18
lib_ruby_parser::DecodedInput
Equivalent of lib_ruby_parser::source::DecodedInput
Definition: decoded_input.hpp:11
lib_ruby_parser::Node
Definition: nodes.hpp:4238
lib_ruby_parser::ParserResult::operator=
ParserResult & operator=(ParserResult const &)=delete
lib_ruby_parser
Definition: api.hpp:7
lib_ruby_parser::MagicCommentList
Equivalent of Vec<lib_ruby_parser::source::MagicComment>
Definition: magic_comment.hpp:37
lib_ruby_parser::CommentList
Equivalent of Vec<lib_ruby_parser::source::Comment>
Definition: comment.hpp:38
lib_ruby_parser::DiagnosticList
Equivalent of Vec<lib_ruby_parser::Diagnostic
Definition: diagnostic.hpp:47
lib_ruby_parser::ParserResult::tokens
TokenList tokens
List of tokens, empty if parser_options.record_tokens was set to false.
Definition: parser_result.hpp:21
lib_ruby_parser::ParserResult::~ParserResult
~ParserResult()