MLIR  16.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::lsp::DiagnosticRelatedInformation Struct Reference

Represents a related message and source code location for a diagnostic. More...

#include "Tools/lsp-server-support/Protocol.h"

+ Collaboration diagram for mlir::lsp::DiagnosticRelatedInformation:

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...
 

Detailed Description

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 620 of file Protocol.h.

Constructor & Destructor Documentation

◆ DiagnosticRelatedInformation() [1/2]

mlir::lsp::DiagnosticRelatedInformation::DiagnosticRelatedInformation ( )
default

◆ DiagnosticRelatedInformation() [2/2]

mlir::lsp::DiagnosticRelatedInformation::DiagnosticRelatedInformation ( Location  location,
std::string  message 
)
inline

Definition at line 622 of file Protocol.h.

Member Data Documentation

◆ location

Location mlir::lsp::DiagnosticRelatedInformation::location

The location of this related diagnostic information.

Definition at line 626 of file Protocol.h.

Referenced by mlir::lsp::fromJSON(), and mlir::lsp::toJSON().

◆ message

std::string mlir::lsp::DiagnosticRelatedInformation::message

The message of this related diagnostic information.

Definition at line 628 of file Protocol.h.

Referenced by mlir::lsp::fromJSON(), and mlir::lsp::toJSON().


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