Class: Steep::TypeInference::MethodCall::Error
- Defined in:
- lib/steep/type_inference/method_call.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#method_decls ⇒ Object
readonly
Returns the value of attribute method_decls.
Attributes inherited from Base
#context, #method_name, #node, #receiver_type, #return_type
Instance Method Summary collapse
-
#initialize(node:, context:, method_name:, receiver_type:, errors:, method_decls: Set[], return_type: AST::Types::Any.instance) ⇒ Error
constructor
A new instance of Error.
Methods inherited from Base
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
#errors ⇒ Object (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_decls ⇒ Object (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 |