Skip to content

class Crystal::Match
inherits Reference

A method lookup match.

Class methods

.new(def __arg2, arg_types, context, named_arg_types = nil)

View source

Methods

#arg_types : Array(Type)

The type of the arguments of the matched method. These might be a subset of the types of the method call because of restrictions and overloads.

View source

#context : MatchContext

Context information associated with this match

View source

#def : Def

The method that was matched

View source

#named_arg_types : Array(NamedArgumentType)?

The type of the named arguments of the matched method. These might be a subset of the types of the method call because of restrictions and overloads.

View source

#remove_literals

View source