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.
185 186 187 188 189 |
# File 'lib/steep/type_inference/method_call.rb', line 185 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.
182 183 184 |
# File 'lib/steep/type_inference/method_call.rb', line 182 def errors @errors end |
#method_decls ⇒ Object (readonly)
Returns the value of attribute method_decls.
183 184 185 |
# File 'lib/steep/type_inference/method_call.rb', line 183 def method_decls @method_decls end |