class Solargraph::Diagnostics::Base

The base class for diagnostics reporters.

Attributes

args[R]

@return [Array<String>]

Public Class Methods

new(*args) click to toggle source
# File lib/solargraph/diagnostics/base.rb, line 11
def initialize *args
  @args = args
end

Public Instance Methods

diagnose(source, api_map) click to toggle source

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.

@param source [Solargraph::Source] @param api_map [Solargraph::ApiMap] @return [Array<Hash>]

# File lib/solargraph/diagnostics/base.rb, line 24
def diagnose source, api_map
  []
end