Class: Solargraph::Diagnostics::Base
- Inherits:
-
Object
- Object
- Solargraph::Diagnostics::Base
- Defined in:
- lib/solargraph/diagnostics/base.rb
Overview
The base class for diagnostics reporters.
Direct Known Subclasses
Instance Method Summary collapse
-
#diagnose(source, api_map) ⇒ Array<Hash>
Perform a diagnosis on a Source within the context of an ApiMap.
Instance Method Details
#diagnose(source, api_map) ⇒ Array<Hash>
Perform a diagnosis on a Source within the context of an ApiMap. The result is an array of hash objects that conform to the LSP’s Diagnostic specification.
Subclasses should override this method.
15 16 17 |
# File 'lib/solargraph/diagnostics/base.rb', line 15 def diagnose source, api_map [] end |