Class: Rubyzen::Collections::ArgumentsCollection

Inherits:
ExpressionsCollection show all
Defined in:
lib/rubyzen/collections/arguments_collection.rb

Overview

Collection of Declarations::ExpressionDeclaration representing the arguments passed at a call site.

A specialization of ExpressionsCollection: arguments are value-expressions, so this inherits the value-expression filters (‘#hash_literals`, `#constants`) and remains a drop-in `ExpressionsCollection`. It exists as a distinct type so argument-specific filters (e.g. positional vs keyword) can be added later without a breaking change.

Examples:

call_site.arguments.first.constant_name

Method Summary

Methods inherited from ExpressionsCollection

#constants, #hash_literals

Methods included from Providers::CollectionFilterProvider

#with_name, #with_name_ending_with, #with_name_including, #with_name_starting_with, #without_name, #without_name_ending_with, #without_name_including, #without_name_starting_with

Methods inherited from BaseCollection

#filter