Class: Solargraph::Diagnostics::TypeNotDefined
- Defined in:
- lib/solargraph/diagnostics/type_not_defined.rb
Overview
TypeNotDefined reports methods with undefined return types, untagged parameters, and invalid param tags.
Instance Method Summary collapse
Instance Method Details
#diagnose(source, api_map) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/solargraph/diagnostics/type_not_defined.rb', line 7 def diagnose source, api_map result = [] api_map.document_symbols(source.filename).each do |pin| next unless pin.kind == Pin::METHOD or pin.kind == Pin::ATTRIBUTE result.concat check_return_type(pin, api_map, source) result.concat check_param_types(pin, api_map, source) result.concat (pin, api_map, source) end result end |