Class: Rsense::Server::Command::TypeInferenceMethod

Inherits:
Java::org.cx4a.rsense.typing.runtime::SpecialMethod
  • Object
show all
Defined in:
lib/rsense/server/command/type_inference_method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTypeInferenceMethod

Returns a new instance of TypeInferenceMethod.



12
13
14
# File 'lib/rsense/server/command/type_inference_method.rb', line 12

def initialize
  super
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



10
11
12
# File 'lib/rsense/server/command/type_inference_method.rb', line 10

def context
  @context
end

Instance Method Details

#call(runtime, receivers, args, blcck, result) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/rsense/server/command/type_inference_method.rb', line 16

def call(runtime, receivers, args, blcck, result)
  receivers.each do |receiver|
    @context.typeSet.add(receiver)
  end
  result.setResultTypeSet(receivers)
  result.setNeverCallAgain(true)
end