struct LSP::Protocol::Diagnostic

Overview

Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource. See: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#diagnostic

Defined in:

lsp/protocol/diagnostic.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(file : String, line : Int32 | Nil, column : Int32 | Nil, size : Int32 | Nil, message : String, source : String) #

[View source]
def self.new(__temp_102 : JSON::PullParser) #

[View source]

Instance Method Detail

def message : String #

[View source]
def message=(_message : String) #

[View source]
def range : Range #

[View source]
def range=(_range : Range) #

[View source]
def severity : Int32 #

[View source]
def severity=(_severity : Int32) #

[View source]
def source : String #

[View source]
def source=(_source : String) #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def uri #

#uri and @filename aren't part of Diagnostic interface of LSP, however They're useful to group failures by file.


[View source]