struct LSP::Data::Diagnostic

Included Modules

Defined in:

lsp/data/diagnostic.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(range : LSP::Data::Range = Range.new, severity : LSP::Data::Diagnostic::Severity | Nil = Severity::Error, code : Int64 | String | Nil = nil, source : Nil | String = nil, message : String = "", related_information : Array(LSP::Data::Diagnostic::RelatedInformation) = [] of RelatedInformation) #

[View source]

Instance Method Detail

def code : Int64 | String | Nil #

The diagnostic's code, which might appear in the user interface.


[View source]
def code=(code : Int64 | String | Nil) #

The diagnostic's code, which might appear in the user interface.


[View source]
def message : String #

The diagnostic's message.


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

The diagnostic's message.


[View source]
def range : Range #

The range at which the message applies.


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

The range at which the message applies.


[View source]
def related_information : Array(RelatedInformation) #

[View source]
def related_information=(related_information : Array(RelatedInformation)) #

[View source]
def severity : Severity | Nil #

[View source]
def severity=(severity : Severity | Nil) #

[View source]
def source : String | Nil #

A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.


[View source]
def source=(source : String | Nil) #

A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.


[View source]