Class: Kumi::Core::NAST::ImportCall

Inherits:
Node
  • Object
show all
Defined in:
lib/kumi/core/nast.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#id, #loc, #meta

Instance Method Summary collapse

Constructor Details

#initialize(fn_name:, args:, input_mapping_keys:, source_module:, **k) ⇒ ImportCall

Returns a new instance of ImportCall.



107
108
109
110
111
112
113
# File 'lib/kumi/core/nast.rb', line 107

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

#argsObject (readonly)

Returns the value of attribute args.



105
106
107
# File 'lib/kumi/core/nast.rb', line 105

def args
  @args
end

#fn_nameObject (readonly)

Returns the value of attribute fn_name.



105
106
107
# File 'lib/kumi/core/nast.rb', line 105

def fn_name
  @fn_name
end

#input_mapping_keysObject (readonly)

Returns the value of attribute input_mapping_keys.



105
106
107
# File 'lib/kumi/core/nast.rb', line 105

def input_mapping_keys
  @input_mapping_keys
end

#source_moduleObject (readonly)

Returns the value of attribute source_module.



105
106
107
# File 'lib/kumi/core/nast.rb', line 105

def source_module
  @source_module
end

Instance Method Details

#accept(visitor) ⇒ Object



115
116
117
# File 'lib/kumi/core/nast.rb', line 115

def accept(visitor)
  visitor.respond_to?(:visit_import_call) ? visitor.visit_import_call(self) : super
end