Class: PlatformosCheck::LanguageServer::CodeActionProvider
- Inherits:
-
Object
- Object
- PlatformosCheck::LanguageServer::CodeActionProvider
show all
- Defined in:
- lib/platformos_check/language_server/code_action_provider.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(storage, diagnostics_manager) ⇒ CodeActionProvider
Returns a new instance of CodeActionProvider.
23
24
25
26
|
# File 'lib/platformos_check/language_server/code_action_provider.rb', line 23
def initialize(storage, diagnostics_manager)
@storage = storage
@diagnostics_manager = diagnostics_manager
end
|
Instance Attribute Details
#diagnostics_manager ⇒ Object
Returns the value of attribute diagnostics_manager.
21
22
23
|
# File 'lib/platformos_check/language_server/code_action_provider.rb', line 21
def diagnostics_manager
@diagnostics_manager
end
|
#storage ⇒ Object
Returns the value of attribute storage.
21
22
23
|
# File 'lib/platformos_check/language_server/code_action_provider.rb', line 21
def storage
@storage
end
|
Class Method Details
.all ⇒ Object
7
8
9
|
# File 'lib/platformos_check/language_server/code_action_provider.rb', line 7
def all
@all ||= []
end
|
.inherited(subclass) ⇒ Object
11
12
13
|
# File 'lib/platformos_check/language_server/code_action_provider.rb', line 11
def inherited(subclass)
all << subclass
end
|
.kind(k = nil) ⇒ Object
15
16
17
18
|
# File 'lib/platformos_check/language_server/code_action_provider.rb', line 15
def kind(k = nil)
@kind = k unless k.nil?
@kind
end
|
Instance Method Details
#base_kind ⇒ Object
32
33
34
|
# File 'lib/platformos_check/language_server/code_action_provider.rb', line 32
def base_kind
kind.split('.')[0]
end
|
#code_actions(relative_path, range) ⇒ Object
36
37
38
|
# File 'lib/platformos_check/language_server/code_action_provider.rb', line 36
def code_actions(relative_path, range)
raise NotImplementedError
end
|
#kind ⇒ Object
28
29
30
|
# File 'lib/platformos_check/language_server/code_action_provider.rb', line 28
def kind
self.class.kind
end
|