lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
Equivalent of lib_ruby_parser::Diagnostic
More...
#include <diagnostic.hpp>
Public Member Functions | |
Diagnostic ()=delete | |
Diagnostic (ErrorLevel level, DiagnosticMessage message, Loc loc) | |
Diagnostic (const Diagnostic &)=delete | |
Diagnostic & | operator= (Diagnostic const &)=delete |
Diagnostic (Diagnostic &&)=default | |
Diagnostic & | operator= (Diagnostic &&)=default |
std::string | render (const DecodedInput &input) const |
Public Attributes | |
ErrorLevel | level |
Level of the diagnostic (error/warning) More... | |
DiagnosticMessage | message |
Message of the diagnsotic. More... | |
Loc | loc |
Location of the diagnostic. More... | |
Equivalent of lib_ruby_parser::Diagnostic
|
delete |
lib_ruby_parser::Diagnostic::Diagnostic | ( | ErrorLevel | level, |
DiagnosticMessage | message, | ||
Loc | loc | ||
) |
|
delete |
|
default |
|
default |
|
delete |
std::string lib_ruby_parser::Diagnostic::render | ( | const DecodedInput & | input | ) | const |
Render given diagnsostic on a given source input. Equivalent of lib_ruby_parser::Diagnostic::render. Return owned NULL-terminated string.
ErrorLevel lib_ruby_parser::Diagnostic::level |
Level of the diagnostic (error/warning)
Loc lib_ruby_parser::Diagnostic::loc |
Location of the diagnostic.
DiagnosticMessage lib_ruby_parser::Diagnostic::message |
Message of the diagnsotic.