class Spoom::LSP::Diagnostic
Public Class Methods
from_json(json)
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 156 def self.from_json(json) Diagnostic.new( range: Range.from_json(json['range']), code: json['code'].to_i, message: json['message'], informations: json['relatedInformation'] ) end
Public Instance Methods
accept_printer(printer)
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 166 def accept_printer(printer) printer.print(to_s) end
to_s()
click to toggle source
# File lib/spoom/sorbet/lsp/structures.rb, line 170 def to_s "Error: #{message} (#{code})." end