struct LSP::Data::Diagnostic
- LSP::Data::Diagnostic
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
lsp/data/diagnostic.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
-
#code : Int64 | String | Nil
The diagnostic's code, which might appear in the user interface.
-
#code=(code : Int64 | String | Nil)
The diagnostic's code, which might appear in the user interface.
-
#message : String
The diagnostic's message.
-
#message=(message : String)
The diagnostic's message.
-
#range : Range
The range at which the message applies.
-
#range=(range : Range)
The range at which the message applies.
- #related_information : Array(RelatedInformation)
- #related_information=(related_information : Array(RelatedInformation))
- #severity : Severity | Nil
- #severity=(severity : Severity | Nil)
-
#source : String | Nil
A human-readable string describing the source of this diagnostic, e.g.
-
#source=(source : String | Nil)
A human-readable string describing the source of this diagnostic, e.g.
Constructor Detail
Instance Method Detail
def code=(code : Int64 | String | Nil)
#
The diagnostic's code, which might appear in the user interface.
def source : String | Nil
#
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
def source=(source : String | Nil)
#
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.