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:


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

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

Instance Attribute Details

#locationSolargraph::Location (readonly)


7
8
9
# File 'lib/solargraph/type_checker/problem.rb', line 7

def location
  @location
end

#messageString (readonly)

Returns:

  • (String)

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

def message
  @message
end

#pinPin::Base (readonly)

Returns:


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

def pin
  @pin
end

#suggestionString? (readonly)

Returns:

  • (String, nil)

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

def suggestion
  @suggestion
end