lib/solargraph.rb
require 'yard' require 'solargraph/version' require 'rubygems/package' require 'yard-solargraph' # The top-level namespace for the Solargraph code mapping, documentation, # static analysis, and language server libraries. # module Solargraph class InvalidOffsetError < RangeError; end class DiagnosticsError < RuntimeError; end class FileNotFoundError < RuntimeError; end class SourceNotAvailableError < StandardError; end class ComplexTypeError < StandardError; end class WorkspaceTooLargeError < RuntimeError; end autoload :Position, 'solargraph/position' autoload :Range, 'solargraph/range' autoload :Location, 'solargraph/location' autoload :Shell, 'solargraph/shell' autoload :Source, 'solargraph/source' autoload :SourceMap, 'solargraph/source_map' autoload :ApiMap, 'solargraph/api_map' autoload :YardMap, 'solargraph/yard_map' autoload :Pin, 'solargraph/pin' autoload :LiveMap, 'solargraph/live_map' autoload :ServerMethods, 'solargraph/server_methods' autoload :Plugin, 'solargraph/plugin' autoload :CoreFills, 'solargraph/core_fills' autoload :LanguageServer, 'solargraph/language_server' autoload :Workspace, 'solargraph/workspace' autoload :Page, 'solargraph/page' autoload :Library, 'solargraph/library' autoload :Diagnostics, 'solargraph/diagnostics' autoload :ComplexType, 'solargraph/complex_type' autoload :Bundle, 'solargraph/bundle' dir = File.dirname(__FILE__) YARDOC_PATH = File.realpath(File.join(dir, '..', 'yardoc')) YARD_EXTENSION_FILE = File.join(dir, 'yard-solargraph.rb') VIEWS_PATH = File.join(dir, 'solargraph', 'views') end Solargraph::YardMap::CoreDocs.require_minimum # Change YARD log IO to avoid sending unexpected messages to STDOUT YARD::Logger.instance.io = File.new(File::NULL, 'w')