Class: Ryac::TypeOracle::CallerInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/ryac/analysis/type_oracle.rb,
sig/ryac/analysis/type_oracle.rbs

Overview

One record per call site that dispatches to the method, as plain data:

prism_node       the call in the syntax tree (nil for a super with no
               syntactic call node of its own, and for a dispatch
               synthesized inside an RBS declaration)
super            true for `super` 

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ CallerInfo

Returns a new instance of CallerInfo.

Parameters:

  • prism_node: (Prism::Node, nil)
  • super: (Boolean)
  • caller_cpath: (Array[Symbol], nil)
  • receiver: (Boolean)
  • keyword_entries: (Array[[Prism::Node, Prism::Node]], nil)
  • keyword_splat: (Boolean)


18
# File 'sig/ryac/analysis/type_oracle.rbs', line 18

def initialize: (?prism_node: Prism::Node?, ?super: bool, ?caller_cpath: Array[Symbol]?, ?receiver: bool, ?keyword_entries: Array[[Prism::Node, Prism::Node]]?, ?keyword_splat: bool) -> void

Instance Attribute Details

#caller_cpath ⇒ Object

Returns the value of attribute caller_cpath

Returns:

  • (Object) —

    the current value of caller_cpath



125
126
127
# File 'lib/ryac/analysis/type_oracle.rb', line 125

def caller_cpath
  @caller_cpath
end

#keyword_entries ⇒ Object

Returns the value of attribute keyword_entries

Returns:

  • (Object) —

    the current value of keyword_entries



125
126
127
# File 'lib/ryac/analysis/type_oracle.rb', line 125

def keyword_entries
  @keyword_entries
end

#keyword_splat ⇒ Object

Returns the value of attribute keyword_splat

Returns:

  • (Object) —

    the current value of keyword_splat



125
126
127
# File 'lib/ryac/analysis/type_oracle.rb', line 125

def keyword_splat
  @keyword_splat
end

#prism_node ⇒ Object

Returns the value of attribute prism_node

Returns:

  • (Object) —

    the current value of prism_node



125
126
127
# File 'lib/ryac/analysis/type_oracle.rb', line 125

def prism_node
  @prism_node
end

#receiver ⇒ Object

Returns the value of attribute receiver

Returns:

  • (Object) —

    the current value of receiver



125
126
127
# File 'lib/ryac/analysis/type_oracle.rb', line 125

def receiver
  @receiver
end

#super ⇒ Object

Returns the value of attribute super

Returns:

  • (Object) —

    the current value of super



125
126
127
# File 'lib/ryac/analysis/type_oracle.rb', line 125

def super
  @super
end