Class: Ryac::TypeOracle::CallerInfo
- Inherits:
-
Struct
- Object
- Struct
- Ryac::TypeOracle::CallerInfo
- 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
-
#caller_cpath ⇒ Object
Returns the value of attribute caller_cpath.
-
#keyword_entries ⇒ Object
Returns the value of attribute keyword_entries.
-
#keyword_splat ⇒ Object
Returns the value of attribute keyword_splat.
-
#prism_node ⇒ Object
Returns the value of attribute prism_node.
-
#receiver ⇒ Object
Returns the value of attribute receiver.
-
#super ⇒ Object
Returns the value of attribute super.
Instance Method Summary collapse
-
#initialize ⇒ CallerInfo
constructor
A new instance of CallerInfo.
Constructor Details
#initialize ⇒ CallerInfo
Returns a new instance of CallerInfo.
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
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
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
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
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
125 126 127 |
# File 'lib/ryac/analysis/type_oracle.rb', line 125 def receiver @receiver end |
#super ⇒ Object
Returns the value of attribute super
125 126 127 |
# File 'lib/ryac/analysis/type_oracle.rb', line 125 def super @super end |