23 lines
529 B
C++
23 lines
529 B
C++
|
|
#ifndef PORYGONLANG_DIAGNOSTIC_HPP
|
|
#define PORYGONLANG_DIAGNOSTIC_HPP
|
|
|
|
#include "DiagnosticSeverity.hpp"
|
|
#include "DiagnosticCode.hpp"
|
|
|
|
class Diagnostic{
|
|
DiagnosticSeverity _severity;
|
|
DiagnosticCode _code;
|
|
unsigned int _start;
|
|
unsigned int _length;
|
|
public:
|
|
Diagnostic(DiagnosticSeverity severity, DiagnosticCode code, unsigned int start, unsigned int length){
|
|
_severity = severity;
|
|
_code = code;
|
|
_start = start;
|
|
_length = length;
|
|
}
|
|
};
|
|
|
|
#endif //PORYGONLANG_DIAGNOSTIC_HPP
|