spoom 1.7.13 → 1.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/spoom/sorbet/lsp/structures.rb +29 -29
- data/lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb +1 -1
- data/lib/spoom/version.rb +1 -1
- data/rbi/spoom.rbi +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7e36809d27f631413357c7b2287d7c51de3b8ed7d17ed7da03d4943bed071b23
|
|
4
|
+
data.tar.gz: b299e3da2929b3a80b1466566e22b207ddceeab71f8ee98ccbc85d259f39fcf8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c39b635f9e3b26ca6bfa42ae4d89758d83e7f5c06bc4b7e263dae5f6b3b3debd7845e6cf90fdf54b854b1a8019957bc662dc36a05f2e560f6bb7e65a0dc224ba
|
|
7
|
+
data.tar.gz: f1ec06e214fc1f98ceb3915d659fe745951515e2edbd16219ebe1f77cb4d3ab79a28409b352dc35f92f9c9dbe85dcf176e696d7b1d48eae7bd665f21f12f997e
|
|
@@ -13,35 +13,6 @@ module Spoom
|
|
|
13
13
|
def accept_printer(printer) = raise NotImplementedError, "Abstract method called"
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
class Hover < T::Struct
|
|
17
|
-
include PrintableSymbol
|
|
18
|
-
|
|
19
|
-
const :contents, String
|
|
20
|
-
const :range, T.nilable(Range)
|
|
21
|
-
|
|
22
|
-
class << self
|
|
23
|
-
#: (Hash[untyped, untyped] json) -> Hover
|
|
24
|
-
def from_json(json)
|
|
25
|
-
Hover.new(
|
|
26
|
-
contents: json["contents"]["value"],
|
|
27
|
-
range: json["range"] ? Range.from_json(json["range"]) : nil,
|
|
28
|
-
)
|
|
29
|
-
end
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# @override
|
|
33
|
-
#: (SymbolPrinter printer) -> void
|
|
34
|
-
def accept_printer(printer)
|
|
35
|
-
printer.print("#{contents}\n")
|
|
36
|
-
printer.print_object(range) if range
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
#: -> String
|
|
40
|
-
def to_s
|
|
41
|
-
"#{contents} (#{range})."
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
|
|
45
16
|
class Position < T::Struct
|
|
46
17
|
include PrintableSymbol
|
|
47
18
|
|
|
@@ -100,6 +71,35 @@ module Spoom
|
|
|
100
71
|
end
|
|
101
72
|
end
|
|
102
73
|
|
|
74
|
+
class Hover < T::Struct
|
|
75
|
+
include PrintableSymbol
|
|
76
|
+
|
|
77
|
+
const :contents, String
|
|
78
|
+
const :range, T.nilable(Range)
|
|
79
|
+
|
|
80
|
+
class << self
|
|
81
|
+
#: (Hash[untyped, untyped] json) -> Hover
|
|
82
|
+
def from_json(json)
|
|
83
|
+
Hover.new(
|
|
84
|
+
contents: json["contents"]["value"],
|
|
85
|
+
range: json["range"] ? Range.from_json(json["range"]) : nil,
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# @override
|
|
91
|
+
#: (SymbolPrinter printer) -> void
|
|
92
|
+
def accept_printer(printer)
|
|
93
|
+
printer.print("#{contents}\n")
|
|
94
|
+
printer.print_object(range) if range
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
#: -> String
|
|
98
|
+
def to_s
|
|
99
|
+
"#{contents} (#{range})."
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
103
|
class Location < T::Struct
|
|
104
104
|
include PrintableSymbol
|
|
105
105
|
|
data/lib/spoom/version.rb
CHANGED
data/rbi/spoom.rbi
CHANGED
|
@@ -1836,7 +1836,7 @@ class Spoom::LSP::Hover < ::T::Struct
|
|
|
1836
1836
|
include ::Spoom::LSP::PrintableSymbol
|
|
1837
1837
|
|
|
1838
1838
|
const :contents, ::String
|
|
1839
|
-
const :range, T.nilable(
|
|
1839
|
+
const :range, T.nilable(::Spoom::LSP::Range)
|
|
1840
1840
|
|
|
1841
1841
|
sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void }
|
|
1842
1842
|
def accept_printer(printer); end
|