lib/spoom/sorbet/lsp/structures.rb in spoom-1.1.15 vs lib/spoom/sorbet/lsp/structures.rb in spoom-1.1.16
- old
+ new
@@ -271,37 +271,40 @@
sig { returns(String) }
def kind_string
SYMBOL_KINDS[kind] || "<unknown:#{kind}>"
end
- SYMBOL_KINDS = T.let({
- 1 => "file",
- 2 => "module",
- 3 => "namespace",
- 4 => "package",
- 5 => "class",
- 6 => "def",
- 7 => "property",
- 8 => "field",
- 9 => "constructor",
- 10 => "enum",
- 11 => "interface",
- 12 => "function",
- 13 => "variable",
- 14 => "const",
- 15 => "string",
- 16 => "number",
- 17 => "boolean",
- 18 => "array",
- 19 => "object",
- 20 => "key",
- 21 => "null",
- 22 => "enum_member",
- 23 => "struct",
- 24 => "event",
- 25 => "operator",
- 26 => "type_parameter",
- }, T::Hash[Integer, String])
+ SYMBOL_KINDS = T.let(
+ {
+ 1 => "file",
+ 2 => "module",
+ 3 => "namespace",
+ 4 => "package",
+ 5 => "class",
+ 6 => "def",
+ 7 => "property",
+ 8 => "field",
+ 9 => "constructor",
+ 10 => "enum",
+ 11 => "interface",
+ 12 => "function",
+ 13 => "variable",
+ 14 => "const",
+ 15 => "string",
+ 16 => "number",
+ 17 => "boolean",
+ 18 => "array",
+ 19 => "object",
+ 20 => "key",
+ 21 => "null",
+ 22 => "enum_member",
+ 23 => "struct",
+ 24 => "event",
+ 25 => "operator",
+ 26 => "type_parameter",
+ },
+ T::Hash[Integer, String],
+ )
end
class SymbolPrinter < Printer
extend T::Sig