Class: Steep::TypeInference::MethodCall::Error

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/type_inference/method_call.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#context, #method_name, #node, #receiver_type, #return_type

Instance Method Summary collapse

Methods inherited from Base

#==, #hash, #with_return_type

Constructor Details

#initialize(node:, context:, method_name:, receiver_type:, errors:, method_decls: Set[], return_type: AST::Types::Any.instance) ⇒ Error

Returns a new instance of Error.



191
192
193
194
195
# File 'lib/steep/type_inference/method_call.rb', line 191

def initialize(node:, context:, method_name:, receiver_type:, errors:, method_decls: Set[], return_type: AST::Types::Any.instance)
  super(node: node, context: context, method_name: method_name, receiver_type: receiver_type, return_type: return_type)
  @method_decls = method_decls
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



188
189
190
# File 'lib/steep/type_inference/method_call.rb', line 188

def errors
  @errors
end

#method_declsObject (readonly)

Returns the value of attribute method_decls.



189
190
191
# File 'lib/steep/type_inference/method_call.rb', line 189

def method_decls
  @method_decls
end