Class: Yoda::Typing::Traces::Send

Inherits:
Base
  • Object
show all
Defined in:
lib/yoda/typing/traces/send.rb

Overview

Store evaluation result for each ast node.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#values

Constructor Details

#initialize(context, functions, type) ⇒ Send

Returns a new instance of Send.

Parameters:



18
19
20
21
22
# File 'lib/yoda/typing/traces/send.rb', line 18

def initialize(context, functions, type)
  @context = context
  @functions = functions
  @type = type
end

Instance Attribute Details

#contextContexts::BaseContext (readonly)



7
8
9
# File 'lib/yoda/typing/traces/send.rb', line 7

def context
  @context
end

#functionsArray<Model::FunctionSignatures::Base> (readonly)



10
11
12
# File 'lib/yoda/typing/traces/send.rb', line 10

def functions
  @functions
end

#typeModel::TypeExpressions::Base (readonly)



13
14
15
# File 'lib/yoda/typing/traces/send.rb', line 13

def type
  @type
end