Class: Solargraph::TypeChecker::Problem

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/type_checker/problem.rb

Overview

A problem reported by TypeChecker.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location, message, pin: nil, suggestion: nil) ⇒ Problem

Returns a new instance of Problem.

Parameters:



24
25
26
27
28
29
# File 'lib/solargraph/type_checker/problem.rb', line 24

def initialize location, message, pin: nil, suggestion: nil
  @location = location
  @message = message
  @pin = pin
  @suggestion = suggestion
end

Instance Attribute Details

#locationSolargraph::Location (readonly)



9
10
11
# File 'lib/solargraph/type_checker/problem.rb', line 9

def location
  @location
end

#messageString (readonly)

Returns:

  • (String)


12
13
14
# File 'lib/solargraph/type_checker/problem.rb', line 12

def message
  @message
end

#pinPin::Base (readonly)

Returns:



15
16
17
# File 'lib/solargraph/type_checker/problem.rb', line 15

def pin
  @pin
end

#suggestionString? (readonly)

Returns:

  • (String, nil)


18
19
20
# File 'lib/solargraph/type_checker/problem.rb', line 18

def suggestion
  @suggestion
end