lib/spoom/sorbet/lsp/structures.rb in spoom-1.1.12 vs lib/spoom/sorbet/lsp/structures.rb in spoom-1.1.13

- old
+ new

@@ -28,11 +28,11 @@ sig { params(json: T::Hash[T.untyped, T.untyped]).returns(Hover) } def from_json(json) Hover.new( contents: json["contents"]["value"], - range: json["range"] ? Range.from_json(json["range"]) : nil + range: json["range"] ? Range.from_json(json["range"]) : nil, ) end end sig { override.params(printer: SymbolPrinter).void } @@ -59,11 +59,11 @@ sig { params(json: T::Hash[T.untyped, T.untyped]).returns(Position) } def from_json(json) Position.new( line: json["line"].to_i, - char: json["character"].to_i + char: json["character"].to_i, ) end end sig { override.params(printer: SymbolPrinter).void } @@ -89,11 +89,11 @@ sig { params(json: T::Hash[T.untyped, T.untyped]).returns(Range) } def from_json(json) Range.new( start: Position.from_json(json["start"]), - end: Position.from_json(json["end"]) + end: Position.from_json(json["end"]), ) end end sig { override.params(printer: SymbolPrinter).void } @@ -121,11 +121,11 @@ sig { params(json: T::Hash[T.untyped, T.untyped]).returns(Location) } def from_json(json) Location.new( uri: json["uri"], - range: Range.from_json(json["range"]) + range: Range.from_json(json["range"]), ) end end sig { override.params(printer: SymbolPrinter).void } @@ -191,11 +191,11 @@ def from_json(json) Diagnostic.new( range: Range.from_json(json["range"]), code: json["code"].to_i, message: json["message"], - informations: json["relatedInformation"] + informations: json["relatedInformation"], ) end end sig { override.params(printer: SymbolPrinter).void } @@ -315,10 +315,10 @@ sig do params( out: T.any(IO, StringIO), colors: T::Boolean, indent_level: Integer, - prefix: T.nilable(String) + prefix: T.nilable(String), ).void end def initialize(out: $stdout, colors: true, indent_level: 0, prefix: nil) super(out: out, colors: colors, indent_level: indent_level) @seen = T.let(Set.new, T::Set[Integer])