rucoa 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +11 -2
- data/README.md +36 -5
- data/data/definitions_ruby_3_1 +0 -0
- data/images/diagnostics.gif +0 -0
- data/images/document-formatting.gif +0 -0
- data/images/document-symbol.gif +0 -0
- data/images/selection-ranges.gif +0 -0
- data/lib/rucoa/configuration.rb +58 -32
- data/lib/rucoa/definition_archiver.rb +29 -0
- data/lib/rucoa/definition_builders/rbs_constant_definition_builder.rb +44 -0
- data/lib/rucoa/definition_builders/rbs_method_definition_builder.rb +106 -0
- data/lib/rucoa/definition_builders/yard_method_definition_builder.rb +191 -0
- data/lib/rucoa/definition_builders.rb +9 -0
- data/lib/rucoa/definition_store.rb +63 -0
- data/lib/rucoa/definitions/base.rb +12 -0
- data/lib/rucoa/definitions/constant_definition.rb +51 -0
- data/lib/rucoa/definitions/method_definition.rb +126 -0
- data/lib/rucoa/definitions/method_parameter_definition.rb +30 -0
- data/lib/rucoa/definitions.rb +9 -0
- data/lib/rucoa/handlers/base.rb +8 -0
- data/lib/rucoa/handlers/exit_handler.rb +11 -0
- data/lib/rucoa/handlers/initialize_handler.rb +6 -0
- data/lib/rucoa/handlers/initialized_handler.rb +10 -0
- data/lib/rucoa/handlers/shutdown_handler.rb +12 -0
- data/lib/rucoa/handlers/text_document_did_change_handler.rb +1 -20
- data/lib/rucoa/handlers/text_document_did_open_handler.rb +11 -4
- data/lib/rucoa/handlers/text_document_document_symbol_handler.rb +1 -1
- data/lib/rucoa/handlers/text_document_range_formatting_handler.rb +1 -1
- data/lib/rucoa/handlers/text_document_signature_help_handler.rb +68 -0
- data/lib/rucoa/handlers.rb +3 -0
- data/lib/rucoa/node_inspector.rb +109 -0
- data/lib/rucoa/nodes/base.rb +30 -0
- data/lib/rucoa/nodes/def_node.rb +59 -0
- data/lib/rucoa/nodes/lvar_node.rb +25 -0
- data/lib/rucoa/nodes/send_node.rb +43 -0
- data/lib/rucoa/nodes.rb +1 -0
- data/lib/rucoa/parser_builder.rb +1 -0
- data/lib/rucoa/range.rb +64 -14
- data/lib/rucoa/rbs_document_loader.rb +43 -0
- data/lib/rucoa/rubocop_autocorrector.rb +1 -1
- data/lib/rucoa/rubocop_investigator.rb +1 -1
- data/lib/rucoa/server.rb +19 -1
- data/lib/rucoa/source.rb +54 -4
- data/lib/rucoa/source_store.rb +6 -10
- data/lib/rucoa/types/method_type.rb +23 -0
- data/lib/rucoa/types.rb +7 -0
- data/lib/rucoa/version.rb +1 -1
- data/lib/rucoa/yard_glob_document_loader.rb +47 -0
- data/lib/rucoa/yard_string_document_loader.rb +70 -0
- data/lib/rucoa.rb +9 -0
- data/rucoa.gemspec +1 -0
- metadata +42 -2
data/lib/rucoa.rb
CHANGED
@@ -5,21 +5,30 @@ require_relative 'rucoa/version'
|
|
5
5
|
module Rucoa
|
6
6
|
autoload :Cli, 'rucoa/cli'
|
7
7
|
autoload :Configuration, 'rucoa/configuration'
|
8
|
+
autoload :DefinitionArchiver, 'rucoa/definition_archiver'
|
9
|
+
autoload :DefinitionBuilders, 'rucoa/definition_builders'
|
10
|
+
autoload :Definitions, 'rucoa/definitions'
|
11
|
+
autoload :DefinitionStore, 'rucoa/definition_store'
|
8
12
|
autoload :Errors, 'rucoa/errors'
|
9
13
|
autoload :HandlerConcerns, 'rucoa/handler_concerns'
|
10
14
|
autoload :Handlers, 'rucoa/handlers'
|
11
15
|
autoload :MessageReader, 'rucoa/message_reader'
|
12
16
|
autoload :MessageWriter, 'rucoa/message_writer'
|
13
17
|
autoload :NodeConcerns, 'rucoa/node_concerns'
|
18
|
+
autoload :NodeInspector, 'rucoa/node_inspector'
|
14
19
|
autoload :Nodes, 'rucoa/nodes'
|
15
20
|
autoload :Parser, 'rucoa/parser'
|
16
21
|
autoload :ParserBuilder, 'rucoa/parser_builder'
|
17
22
|
autoload :Position, 'rucoa/position'
|
18
23
|
autoload :Range, 'rucoa/range'
|
24
|
+
autoload :RbsDocumentLoader, 'rucoa/rbs_document_loader'
|
19
25
|
autoload :RubocopAutocorrector, 'rucoa/rubocop_autocorrector'
|
20
26
|
autoload :RubocopConfigurationChecker, 'rucoa/rubocop_configuration_checker'
|
21
27
|
autoload :RubocopInvestigator, 'rucoa/rubocop_investigator'
|
22
28
|
autoload :Server, 'rucoa/server'
|
23
29
|
autoload :Source, 'rucoa/source'
|
24
30
|
autoload :SourceStore, 'rucoa/source_store'
|
31
|
+
autoload :Types, 'rucoa/types'
|
32
|
+
autoload :YardGlobDocumentLoader, 'rucoa/yard_glob_document_loader'
|
33
|
+
autoload :YardStringDocumentLoader, 'rucoa/yard_string_document_loader'
|
25
34
|
end
|
data/rucoa.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rucoa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rbs
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rubocop
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,18 +68,36 @@ files:
|
|
54
68
|
- LICENSE.txt
|
55
69
|
- README.md
|
56
70
|
- Rakefile
|
71
|
+
- data/definitions_ruby_3_1
|
57
72
|
- exe/rucoa
|
73
|
+
- images/diagnostics.gif
|
74
|
+
- images/document-formatting.gif
|
75
|
+
- images/document-symbol.gif
|
76
|
+
- images/selection-ranges.gif
|
58
77
|
- lib/rucoa.rb
|
59
78
|
- lib/rucoa/cli.rb
|
60
79
|
- lib/rucoa/configuration.rb
|
80
|
+
- lib/rucoa/definition_archiver.rb
|
81
|
+
- lib/rucoa/definition_builders.rb
|
82
|
+
- lib/rucoa/definition_builders/rbs_constant_definition_builder.rb
|
83
|
+
- lib/rucoa/definition_builders/rbs_method_definition_builder.rb
|
84
|
+
- lib/rucoa/definition_builders/yard_method_definition_builder.rb
|
85
|
+
- lib/rucoa/definition_store.rb
|
86
|
+
- lib/rucoa/definitions.rb
|
87
|
+
- lib/rucoa/definitions/base.rb
|
88
|
+
- lib/rucoa/definitions/constant_definition.rb
|
89
|
+
- lib/rucoa/definitions/method_definition.rb
|
90
|
+
- lib/rucoa/definitions/method_parameter_definition.rb
|
61
91
|
- lib/rucoa/errors.rb
|
62
92
|
- lib/rucoa/handler_concerns.rb
|
63
93
|
- lib/rucoa/handler_concerns/configuration_requestable.rb
|
64
94
|
- lib/rucoa/handler_concerns/diagnostics_publishable.rb
|
65
95
|
- lib/rucoa/handlers.rb
|
66
96
|
- lib/rucoa/handlers/base.rb
|
97
|
+
- lib/rucoa/handlers/exit_handler.rb
|
67
98
|
- lib/rucoa/handlers/initialize_handler.rb
|
68
99
|
- lib/rucoa/handlers/initialized_handler.rb
|
100
|
+
- lib/rucoa/handlers/shutdown_handler.rb
|
69
101
|
- lib/rucoa/handlers/text_document_code_action_handler.rb
|
70
102
|
- lib/rucoa/handlers/text_document_did_change_handler.rb
|
71
103
|
- lib/rucoa/handlers/text_document_did_open_handler.rb
|
@@ -73,11 +105,13 @@ files:
|
|
73
105
|
- lib/rucoa/handlers/text_document_formatting_handler.rb
|
74
106
|
- lib/rucoa/handlers/text_document_range_formatting_handler.rb
|
75
107
|
- lib/rucoa/handlers/text_document_selection_range_handler.rb
|
108
|
+
- lib/rucoa/handlers/text_document_signature_help_handler.rb
|
76
109
|
- lib/rucoa/handlers/workspace_did_change_configuration_handler.rb
|
77
110
|
- lib/rucoa/message_reader.rb
|
78
111
|
- lib/rucoa/message_writer.rb
|
79
112
|
- lib/rucoa/node_concerns.rb
|
80
113
|
- lib/rucoa/node_concerns/name_full_qualifiable.rb
|
114
|
+
- lib/rucoa/node_inspector.rb
|
81
115
|
- lib/rucoa/nodes.rb
|
82
116
|
- lib/rucoa/nodes/base.rb
|
83
117
|
- lib/rucoa/nodes/casgn_node.rb
|
@@ -85,6 +119,7 @@ files:
|
|
85
119
|
- lib/rucoa/nodes/const_node.rb
|
86
120
|
- lib/rucoa/nodes/def_node.rb
|
87
121
|
- lib/rucoa/nodes/defs_node.rb
|
122
|
+
- lib/rucoa/nodes/lvar_node.rb
|
88
123
|
- lib/rucoa/nodes/module_node.rb
|
89
124
|
- lib/rucoa/nodes/sclass_node.rb
|
90
125
|
- lib/rucoa/nodes/send_node.rb
|
@@ -94,13 +129,18 @@ files:
|
|
94
129
|
- lib/rucoa/parser_builder.rb
|
95
130
|
- lib/rucoa/position.rb
|
96
131
|
- lib/rucoa/range.rb
|
132
|
+
- lib/rucoa/rbs_document_loader.rb
|
97
133
|
- lib/rucoa/rubocop_autocorrector.rb
|
98
134
|
- lib/rucoa/rubocop_configuration_checker.rb
|
99
135
|
- lib/rucoa/rubocop_investigator.rb
|
100
136
|
- lib/rucoa/server.rb
|
101
137
|
- lib/rucoa/source.rb
|
102
138
|
- lib/rucoa/source_store.rb
|
139
|
+
- lib/rucoa/types.rb
|
140
|
+
- lib/rucoa/types/method_type.rb
|
103
141
|
- lib/rucoa/version.rb
|
142
|
+
- lib/rucoa/yard_glob_document_loader.rb
|
143
|
+
- lib/rucoa/yard_string_document_loader.rb
|
104
144
|
- rucoa.gemspec
|
105
145
|
homepage: https://github.com/r7kamura/rucoa
|
106
146
|
licenses:
|