Class: Kumi::Core::NAST::ImportCall
- Defined in:
- lib/kumi/core/nast.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#fn_name ⇒ Object
readonly
Returns the value of attribute fn_name.
-
#input_mapping_keys ⇒ Object
readonly
Returns the value of attribute input_mapping_keys.
-
#source_module ⇒ Object
readonly
Returns the value of attribute source_module.
Attributes inherited from Node
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
- #children ⇒ Object
-
#initialize(fn_name:, args:, input_mapping_keys:, source_module:, **k) ⇒ ImportCall
constructor
A new instance of ImportCall.
Methods inherited from Node
Constructor Details
#initialize(fn_name:, args:, input_mapping_keys:, source_module:, **k) ⇒ ImportCall
Returns a new instance of ImportCall.
113 114 115 116 117 118 119 |
# File 'lib/kumi/core/nast.rb', line 113 def initialize(fn_name:, args:, input_mapping_keys:, source_module:, **k) super(**k) @fn_name = fn_name.to_sym @args = args @input_mapping_keys = input_mapping_keys @source_module = source_module end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
111 112 113 |
# File 'lib/kumi/core/nast.rb', line 111 def args @args end |
#fn_name ⇒ Object (readonly)
Returns the value of attribute fn_name.
111 112 113 |
# File 'lib/kumi/core/nast.rb', line 111 def fn_name @fn_name end |
#input_mapping_keys ⇒ Object (readonly)
Returns the value of attribute input_mapping_keys.
111 112 113 |
# File 'lib/kumi/core/nast.rb', line 111 def input_mapping_keys @input_mapping_keys end |
#source_module ⇒ Object (readonly)
Returns the value of attribute source_module.
111 112 113 |
# File 'lib/kumi/core/nast.rb', line 111 def source_module @source_module end |
Instance Method Details
#accept(visitor) ⇒ Object
121 122 123 |
# File 'lib/kumi/core/nast.rb', line 121 def accept(visitor) visitor.respond_to?(:visit_import_call) ? visitor.visit_import_call(self) : super end |
#children ⇒ Object
125 |
# File 'lib/kumi/core/nast.rb', line 125 def children = args |