Class: Yoda::Evaluation::CodeCompletion::BaseProvider Abstract
- Inherits:
-
Object
- Object
- Yoda::Evaluation::CodeCompletion::BaseProvider
- Defined in:
- lib/yoda/evaluation/code_completion/base_provider.rb
Overview
This class is abstract.
Base class of completion candidates providers for code completion. This class bridges analysis features such as syntastic analysis #analyzer and symbolic execiton #evaluator.
Direct Known Subclasses
Instance Attribute Summary collapse
- #registry ⇒ Store::Registry readonly
- #source_analyzer ⇒ Parsing::SourceAnalyzer readonly
Instance Method Summary collapse
- #candidates ⇒ Array<Model::CompletionItem> abstract
-
#initialize(registry, source_analyzer) ⇒ BaseProvider
constructor
A new instance of BaseProvider.
- #providable? ⇒ true, false abstract
Constructor Details
#initialize(registry, source_analyzer) ⇒ BaseProvider
Returns a new instance of BaseProvider.
16 17 18 19 |
# File 'lib/yoda/evaluation/code_completion/base_provider.rb', line 16 def initialize(registry, source_analyzer) @registry = registry @source_analyzer = source_analyzer end |
Instance Attribute Details
#registry ⇒ Store::Registry (readonly)
9 10 11 |
# File 'lib/yoda/evaluation/code_completion/base_provider.rb', line 9 def registry @registry end |
#source_analyzer ⇒ Parsing::SourceAnalyzer (readonly)
12 13 14 |
# File 'lib/yoda/evaluation/code_completion/base_provider.rb', line 12 def source_analyzer @source_analyzer end |
Instance Method Details
#candidates ⇒ Array<Model::CompletionItem>
This method is abstract.
29 30 31 |
# File 'lib/yoda/evaluation/code_completion/base_provider.rb', line 29 def candidates fail NotImplementedError end |
#providable? ⇒ true, false
This method is abstract.
23 24 25 |
# File 'lib/yoda/evaluation/code_completion/base_provider.rb', line 23 def providable? fail NotImplementedError end |