MLIR
20.0.0git
|
Represents a related message and source code location for a diagnostic. More...
#include "mlir/Tools/lsp-server-support/Protocol.h"
Public Member Functions | |
DiagnosticRelatedInformation ()=default | |
DiagnosticRelatedInformation (Location location, std::string message) | |
Public Attributes | |
Location | location |
The location of this related diagnostic information. More... | |
std::string | message |
The message of this related diagnostic information. More... | |
Represents a related message and source code location for a diagnostic.
This should be used to point to code locations that cause or related to a diagnostics, e.g. when duplicating a symbol in a scope.
Definition at line 647 of file Protocol.h.
|
default |
|
inline |
Definition at line 649 of file Protocol.h.
Location mlir::lsp::DiagnosticRelatedInformation::location |
The location of this related diagnostic information.
Definition at line 653 of file Protocol.h.
Referenced by mlir::lsp::fromJSON(), and mlir::lsp::toJSON().
std::string mlir::lsp::DiagnosticRelatedInformation::message |
The message of this related diagnostic information.
Definition at line 655 of file Protocol.h.
Referenced by mlir::lsp::fromJSON(), and mlir::lsp::toJSON().