class Solargraph::Source::Chain::Call

def process_macro pin, api_map, context, locals

Returns:
  • (Pin::Base) -

Parameters:
  • locals (Enumerable) --
  • context (ComplexType) --
  • api_map (ApiMap) --
  • pin (Pin::Base) --
def process_macro pin, api_map, context, locals
  pin.macros.each do |macro|
    # @todo 'Wrong argument type for

    #   Solargraph::Source::Chain::Call#inner_process_macro:

    #   macro expected YARD::Tags::MacroDirective, received

    #   generic<Elem>' is because we lose 'rooted' information

    #   in the 'Chain::Array' class internally, leaving

    #   ::Array#each shadowed when it shouldn't be.

    result = inner_process_macro(pin, macro, api_map, context, locals)
    return result unless result.return_type.undefined?
  end
  Pin::ProxyType.anonymous(ComplexType::UNDEFINED)
end