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

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
 
Diagnosticoperator= (Diagnostic const &)=delete
 
 Diagnostic (Diagnostic &&)=default
 
Diagnosticoperator= (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...
 

Detailed Description

Constructor & Destructor Documentation

◆ Diagnostic() [1/4]

lib_ruby_parser::Diagnostic::Diagnostic ( )
delete

◆ Diagnostic() [2/4]

lib_ruby_parser::Diagnostic::Diagnostic ( ErrorLevel  level,
DiagnosticMessage  message,
Loc  loc 
)

◆ Diagnostic() [3/4]

lib_ruby_parser::Diagnostic::Diagnostic ( const Diagnostic )
delete

◆ Diagnostic() [4/4]

lib_ruby_parser::Diagnostic::Diagnostic ( Diagnostic &&  )
default

Member Function Documentation

◆ operator=() [1/2]

Diagnostic& lib_ruby_parser::Diagnostic::operator= ( Diagnostic &&  )
default

◆ operator=() [2/2]

Diagnostic& lib_ruby_parser::Diagnostic::operator= ( Diagnostic const &  )
delete

◆ render()

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.

Member Data Documentation

◆ level

ErrorLevel lib_ruby_parser::Diagnostic::level

Level of the diagnostic (error/warning)

◆ loc

Loc lib_ruby_parser::Diagnostic::loc

Location of the diagnostic.

◆ message

DiagnosticMessage lib_ruby_parser::Diagnostic::message

Message of the diagnsotic.


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